mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-09 06:25:16 +00:00
Add the Whetstone floating-point benchmark to NuttX applications. The Whetstone benchmark is a widely-used tool for evaluating FPU (floating-point unit) performance. This benchmark is ported from netlib.org whetstone.c which has a custom permissive license requiring attribution. Therefore it depends on ALLOW_CUSTOM_PERMISSIVE_COMPONENTS. Usage: whetstone [loops] Signed-off-by: makejian <makejian@xiaomi.com>
34 lines
872 B
Text
34 lines
872 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config BENCHMARK_WHETSTONE
|
|
tristate "Double Precision Benchmark"
|
|
default n
|
|
depends on ALLOW_CUSTOM_PERMISSIVE_COMPONENTS
|
|
---help---
|
|
Enable a Whetstone test.
|
|
|
|
This benchmark is based on the C converted version from
|
|
https://www.netlib.org/benchmark/whetstone.c which has a
|
|
custom permissive license requiring attribution.
|
|
|
|
if BENCHMARK_WHETSTONE
|
|
|
|
config BENCHMARK_WHETSTONE_PROGNAME
|
|
string "Program name"
|
|
default "whetstone"
|
|
---help---
|
|
This is the name of the program that will be used when the NSH ELF
|
|
program is installed.
|
|
|
|
config BENCHMARK_WHETSTONE_PRIORITY
|
|
int "Whetstone test task priority"
|
|
default 100
|
|
|
|
config BENCHMARK_WHETSTONE_STACKSIZE
|
|
int "Whetstone test stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif
|