summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--Help/release/dev/FindCUDAToolkit-target-for-cufft_static_nocallback.rst5
-rw-r--r--Modules/FindCUDAToolkit.cmake4
2 files changed, 9 insertions, 0 deletions
diff --git a/Help/release/dev/FindCUDAToolkit-target-for-cufft_static_nocallback.rst b/Help/release/dev/FindCUDAToolkit-target-for-cufft_static_nocallback.rst
new file mode 100644
index 0000000..91c3feb
--- /dev/null
+++ b/Help/release/dev/FindCUDAToolkit-target-for-cufft_static_nocallback.rst
@@ -0,0 +1,5 @@
+FindCUDAToolkit-target-for-cufft_static_nocallback
+--------------------------------------------------
+
+* The :module:`FindCUDAToolkit` module now provides a target for
+ ``libcufft_static_nocallback``, if found.
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)