mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-23 00:08:53 +00:00
- /W4 on MSVC - -Wall -Wextra + others on gcc/clang - New NVBench_ENABLE_WERROR option to toggle "warnings as errors" - Mark the nlohmann_json library as IMPORTED to switch to system includes - Rename nvbench_main -> nvbench.main to follow target name conventions - Explicitly suppress some cudafe warnings when compiling templates in nlohmann_json headers. - Explicitly suppress some warnings from Thrust headers. - Various fixes for warnings exposed by new flags. - Disable CUPTI on CTK < 11.3 (See #52).
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
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()
|
|
|
|
if (NVBench_ENABLE_CUPTI)
|
|
string(APPEND nvbench_build_export_code_block
|
|
"include(\"${NVBench_SOURCE_DIR}/cmake/NVBenchCUPTI.cmake\")\n"
|
|
)
|
|
string(APPEND nvbench_install_export_code_block
|
|
"include(\"\${CMAKE_CURRENT_LIST_DIR}/NVBenchCUPTI.cmake\")\n"
|
|
)
|
|
endif()
|
|
|
|
rapids_export(BUILD NVBench
|
|
EXPORT_SET nvbench-targets
|
|
NAMESPACE "nvbench::"
|
|
GLOBAL_TARGETS nvbench main internal_build_interface
|
|
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 internal_build_interface
|
|
LANGUAGES CUDA CXX
|
|
FINAL_CODE_BLOCK nvbench_install_export_code_block
|
|
)
|
|
endmacro()
|