From a4126d1c016e778f81b37096912eff1fe63c12b2 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Wed, 12 Jan 2022 14:35:45 -0500 Subject: CUDAToolkit: Add CUDA::cufft_static_nocallback target Fixes: #23098 --- .../dev/FindCUDAToolkit-target-for-cufft_static_nocallback.rst | 5 +++++ Modules/FindCUDAToolkit.cmake | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 Help/release/dev/FindCUDAToolkit-target-for-cufft_static_nocallback.rst 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 de5f376..f0fc50d 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 @@ -928,6 +929,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) -- cgit v0.12