diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2018-08-15 15:53:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-08-23 18:43:31 (GMT) |
commit | 122c79748c30fb80d911591472cba8d6efdb75ae (patch) | |
tree | bbcadf918c0ff404ef3fa22058d305303baf55e7 /Modules/Platform/Windows-NVIDIA-CUDA.cmake | |
parent | c4ab098097f4fe1bc85ee29c6de390dff435f63f (diff) | |
download | CMake-122c79748c30fb80d911591472cba8d6efdb75ae.zip CMake-122c79748c30fb80d911591472cba8d6efdb75ae.tar.gz CMake-122c79748c30fb80d911591472cba8d6efdb75ae.tar.bz2 |
CUDA: Avoid using deprecated cublas_device to identify device lib dirs
Use `curand_static` to identify directories containing device libraries
because `cublas_device` is deprecated and will be removed in the future.
Issue: #18290
Diffstat (limited to 'Modules/Platform/Windows-NVIDIA-CUDA.cmake')
-rw-r--r-- | Modules/Platform/Windows-NVIDIA-CUDA.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-NVIDIA-CUDA.cmake b/Modules/Platform/Windows-NVIDIA-CUDA.cmake index f1c1f2d..ba1638f 100644 --- a/Modules/Platform/Windows-NVIDIA-CUDA.cmake +++ b/Modules/Platform/Windows-NVIDIA-CUDA.cmake @@ -44,7 +44,7 @@ if(__IMPLICT_DLINK_DIRS) endif() set(__IMPLICT_DLINK_FLAGS ) foreach(dir ${__IMPLICT_DLINK_DIRS}) - if(EXISTS "${dir}/cublas_device.lib") + if(EXISTS "${dir}/curand_static.lib") string(APPEND __IMPLICT_DLINK_FLAGS " -L\"${dir}\"") endif() endforeach() |