Files
nvbench/cmake/NVBenchWriteConfigHeader.cmake
Allison Vacanti b948e79cab Add NVML support for persistence mode, locking clocks.
Locking clocks is currently only implemented for Volta+ devices.

Example usage:

my_bench -d [0,1,3] --persistence-mode 1 --lock-gpu-clocks base

See the cli_help.md docs for more info.
2021-12-17 13:59:43 -05:00

8 lines
203 B
CMake

function(nvbench_write_config_header filepath)
if (NVBench_ENABLE_NVML)
set(NVBENCH_HAS_NVML 1)
endif()
configure_file("${NVBench_SOURCE_DIR}/cmake/config.cuh.in" "${filepath}")
endfunction()