summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-12-12 18:28:50 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2022-12-12 18:28:50 (GMT)
commitd37d9c098c28beafcc5ea49795f471deafe034ad (patch)
tree020b088c3602ad3b1e80d365fee7a457d8ec02ad /Tests/Cuda
parent07fe1c9eb84f38f15e182158c1ab9ab842181079 (diff)
downloadCMake-d37d9c098c28beafcc5ea49795f471deafe034ad.zip
CMake-d37d9c098c28beafcc5ea49795f471deafe034ad.tar.gz
CMake-d37d9c098c28beafcc5ea49795f471deafe034ad.tar.bz2
FindCUDAToolkit: Support the new `nvJitLink` library in CUDA 12
Diffstat (limited to 'Tests/Cuda')
-rw-r--r--Tests/Cuda/Toolkit/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/Cuda/Toolkit/CMakeLists.txt b/Tests/Cuda/Toolkit/CMakeLists.txt
index e6b298d..b67aa32 100644
--- a/Tests/Cuda/Toolkit/CMakeLists.txt
+++ b/Tests/Cuda/Toolkit/CMakeLists.txt
@@ -22,6 +22,9 @@ set(cuda_libs cudart cuda_driver cublas cufft cufftw curand cusolver cusparse)
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 10.1)
list(APPEND cuda_libs cublasLt)
endif()
+if(CUDAToolkit_VERSION_MAJOR VERSION_GREATER 11)
+ list(APPEND cuda_libs nvJitLink)
+endif()
if(CUDAToolkit_VERSION_MAJOR VERSION_LESS 11)
list(APPEND cuda_libs nvgraph)
endif()