summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorKenta Kubo <kabuto669@icloud.com>2018-08-17 06:35:19 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-23 18:49:46 (GMT)
commitbdf1f361354e3e0ecd4fd5ede2f38d5384a0444a (patch)
tree51e47fe1082880e3967d607a4996f352553ff720 /Modules/FindCUDA.cmake
parentc4ab098097f4fe1bc85ee29c6de390dff435f63f (diff)
downloadCMake-bdf1f361354e3e0ecd4fd5ede2f38d5384a0444a.zip
CMake-bdf1f361354e3e0ecd4fd5ede2f38d5384a0444a.tar.gz
CMake-bdf1f361354e3e0ecd4fd5ede2f38d5384a0444a.tar.bz2
FindCUDA: Do not find cublas_device on CUDA >= 9.2
The `cublas_device` has been deprecated and will be removed in future versions of CUDA. Issue: #18290
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r--Modules/FindCUDA.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 21cace3..1650e55 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -971,7 +971,8 @@ if(NOT CUDA_VERSION VERSION_LESS "3.2")
find_cuda_helper_libs(nvcuvid)
endif()
endif()
-if(CUDA_VERSION VERSION_GREATER "5.0")
+if(CUDA_VERSION VERSION_GREATER "5.0" AND CUDA_VERSION VERSION_LESS "9.2")
+ # In CUDA 9.2 cublas_device was deprecated
find_cuda_helper_libs(cublas_device)
endif()