mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
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
This commit is contained in:
1 parent
c4ab098097
commit
bdf1f36135
1 file changed
+2
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user