Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/backend/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ set(CUDA_architecture_build_targets "Auto" CACHE
STRING "The compute architectures targeted by this build. (Options: Auto;3.0;Maxwell;All;Common)")

find_cuda_helper_libs(nvrtc)
find_cuda_helper_libs(nvrtc-builtins)
list(APPEND nvrtc_libs ${CUDA_nvrtc_LIBRARY} ${CUDA_nvrtc-builtins_LIBRARY})
if(NOT WIN32)
find_cuda_helper_libs(nvrtc-builtins)
list(APPEND nvrtc_libs ${CUDA_nvrtc_LIBRARY} ${CUDA_nvrtc-builtins_LIBRARY})
else()
list(APPEND nvrtc_libs ${CUDA_nvrtc_LIBRARY})
endif()

if(UNIX AND AF_WITH_STATIC_CUDA_NUMERIC_LIBS)
# The libraries that may be staticly linked or may be loaded at runtime
Expand Down