summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-13 20:24:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-01-13 20:24:39 (GMT)
commita20d9e1463eaa8df1c11fcc244d324f2344e21f5 (patch)
tree9e95f9f6753a182bcc96eb2ae31ebc1178c06fae /Modules
parent874ae8045a85f1667ed27891647c6aae1ba9a8ba (diff)
parenta4126d1c016e778f81b37096912eff1fe63c12b2 (diff)
downloadCMake-a20d9e1463eaa8df1c11fcc244d324f2344e21f5.zip
CMake-a20d9e1463eaa8df1c11fcc244d324f2344e21f5.tar.gz
CMake-a20d9e1463eaa8df1c11fcc244d324f2344e21f5.tar.bz2
Merge topic 'cudatoolkit_find_cufft_static_nocallback'
a4126d1c01 CUDAToolkit: Add CUDA::cufft_static_nocallback target Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !6856
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDAToolkit.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index b2445a4..d1cd38d 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -177,6 +177,7 @@ Targets Created:
- ``CUDA::cufft``
- ``CUDA::cufftw``
- ``CUDA::cufft_static``
+- ``CUDA::cufft_static_nocallback`` starting in CUDA 9.2, requires CMake 3.23+
- ``CUDA::cufftw_static``
cuRAND
@@ -935,6 +936,9 @@ if(CUDAToolkit_FOUND)
# cuFFTW depends on cuFFT
_CUDAToolkit_find_and_add_import_lib(cufftw DEPS cufft)
_CUDAToolkit_find_and_add_import_lib(cufftw DEPS cufft_static)
+ if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 9.2)
+ _CUDAToolkit_find_and_add_import_lib(cufft_static_nocallback DEPS culibos)
+ endif()
# cuSOLVER depends on cuBLAS, and cuSPARSE
_CUDAToolkit_find_and_add_import_lib(cusolver DEPS cublas cusparse)