Files
nvbench/testing/CMakeLists.txt
Robert Maynard 344878e9dc Allow users to control iteration via the concept of iteration spaces.
Changes in the work include:
- [x] Internally use linear_space for iterating
- [x] Simplify type and value iteration in `state_iterator::build_axis_configs`
- [x] Store the iteration space in `axes_metadata`
- [x] Expose `tie` and `user` spaces to user
- [x] Add tests for `linear`, `tie`, and `user`
- [x] Add examples for `tie` and `user`
2022-02-25 15:09:51 -05:00

42 lines
1.0 KiB
CMake

set(test_srcs
axes_metadata.cu
axes_iteration_space.cu
benchmark.cu
create.cu
cuda_timer.cu
cpu_timer.cu
enum_type_list.cu
float64_axis.cu
int64_axis.cu
named_values.cu
option_parser.cu
range.cu
ring_buffer.cu
runner.cu
state.cu
state_generator.cu
string_axis.cu
type_axis.cu
type_list.cu
)
# Metatarget for all examples:
add_custom_target(nvbench.test.all)
add_dependencies(nvbench.all nvbench.test.all)
foreach(test_src IN LISTS test_srcs)
get_filename_component(test_name "${test_src}" NAME_WLE)
string(PREPEND test_name "nvbench.test.")
add_executable(${test_name} "${test_src}")
target_include_directories(${test_name} PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
target_link_libraries(${test_name} PRIVATE nvbench::nvbench fmt)
set_target_properties(${test_name} PROPERTIES COMPILE_FEATURES cuda_std_17)
nvbench_config_target(${test_name})
add_test(NAME ${test_name} COMMAND "$<TARGET_FILE:${test_name}>")
add_dependencies(nvbench.test.all ${test_name})
endforeach()
add_subdirectory(cmake)
add_subdirectory(device)