mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Merge pull request #44 from allisonvacanti/fix_for_conda
Don't explicitly link with cudart.
This commit is contained in:
@@ -51,8 +51,5 @@ rapids_find_package(CUDAToolkit REQUIRED
|
||||
INSTALL_EXPORT_SET nvbench-targets
|
||||
)
|
||||
|
||||
if (CMAKE_CUDA_RUNTIME_LIBRARY STREQUAL "Shared")
|
||||
set(ctk_libraries CUDA::cudart)
|
||||
elseif(CMAKE_CUDA_RUNTIME_LIBRARY STREQUAL "Static")
|
||||
set(ctk_libraries CUDA::cudart_static)
|
||||
endif()
|
||||
# Append CTK targets to this as we add optional deps (NMVL, CUPTI, ...)
|
||||
set(ctk_libraries CUDA::toolkit)
|
||||
|
||||
@@ -13,8 +13,6 @@ macro(nvbench_load_rapids_cmake)
|
||||
include(rapids-find)
|
||||
|
||||
rapids_cuda_init_architectures(NVBench)
|
||||
# Only sets CMAKE_CUDA_RUNTIME_LIBRARY if it is currently unset:
|
||||
rapids_cuda_init_runtime(USE_STATIC TRUE)
|
||||
endmacro()
|
||||
|
||||
# Called after project(...)
|
||||
|
||||
Reference in New Issue
Block a user