Commit bdf1f361 authored by Kenta Kubo's avatar Kenta Kubo Committed by Brad King
Browse files

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
parent c4ab0980
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment