mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
15 lines
583 B
CMake
15 lines
583 B
CMake
# Test that we're converging to an accurate mean + stdev without timing out:
|
|
set(test_name nvbench.test.device.noisy_bench)
|
|
add_executable(${test_name} noisy_bench.cu)
|
|
target_link_libraries(${test_name} PRIVATE nvbench::main fmt)
|
|
nvbench_config_target(${test_name})
|
|
add_dependencies(nvbench.test.all ${test_name})
|
|
|
|
if (NVBench_ENABLE_DEVICE_TESTING)
|
|
add_test(NAME ${test_name} COMMAND "$<TARGET_FILE:${test_name}>")
|
|
set_tests_properties(${test_name} PROPERTIES
|
|
# Any timeouts/warnings are hard failures for this test.
|
|
FAIL_REGULAR_EXPRESSION "Warn;timed out"
|
|
)
|
|
endif()
|