mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-25 09:18:53 +00:00
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.
29 lines
821 B
CMake
29 lines
821 B
CMake
macro(nvbench_generate_exports)
|
|
set(nvbench_build_export_code_block "")
|
|
set(nvbench_install_export_code_block "")
|
|
|
|
if (NVBench_ENABLE_NVML)
|
|
string(APPEND nvbench_build_export_code_block
|
|
"include(\"${NVBench_SOURCE_DIR}/cmake/NVBenchNVML.cmake\")\n"
|
|
)
|
|
string(APPEND nvbench_install_export_code_block
|
|
"include(\"\${CMAKE_CURRENT_LIST_DIR}/NVBenchNVML.cmake\")\n"
|
|
)
|
|
endif()
|
|
|
|
rapids_export(BUILD NVBench
|
|
EXPORT_SET nvbench-targets
|
|
NAMESPACE "nvbench::"
|
|
GLOBAL_TARGETS nvbench main
|
|
LANGUAGES CUDA CXX
|
|
FINAL_CODE_BLOCK nvbench_build_export_code_block
|
|
)
|
|
rapids_export(INSTALL NVBench
|
|
EXPORT_SET nvbench-targets
|
|
NAMESPACE "nvbench::"
|
|
GLOBAL_TARGETS nvbench main
|
|
LANGUAGES CUDA CXX
|
|
FINAL_CODE_BLOCK nvbench_install_export_code_block
|
|
)
|
|
endmacro()
|