mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
This is implicitly added by nvcc, and the explicit setting was breaking environments where cudart_static is unavailable, e.g. conda.
28 lines
768 B
CMake
28 lines
768 B
CMake
# Called before project(...)
|
|
macro(nvbench_load_rapids_cmake)
|
|
file(DOWNLOAD
|
|
https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-21.12/RAPIDS.cmake
|
|
"${CMAKE_BINARY_DIR}/RAPIDS.cmake"
|
|
)
|
|
include("${CMAKE_BINARY_DIR}/RAPIDS.cmake")
|
|
|
|
include(rapids-cmake)
|
|
include(rapids-cpm)
|
|
include(rapids-cuda)
|
|
include(rapids-export)
|
|
include(rapids-find)
|
|
|
|
rapids_cuda_init_architectures(NVBench)
|
|
endmacro()
|
|
|
|
# Called after project(...)
|
|
macro(nvbench_init_rapids_cmake)
|
|
rapids_cmake_build_type(Release)
|
|
rapids_cmake_write_version_file("${NVBench_BINARY_DIR}/nvbench/detail/version.cuh")
|
|
rapids_cmake_write_git_revision_file(
|
|
nvbench_git_revision
|
|
"${NVBench_BINARY_DIR}/nvbench/detail/git_revision.cuh"
|
|
)
|
|
rapids_cpm_init()
|
|
endmacro()
|