From bdf1f361354e3e0ecd4fd5ede2f38d5384a0444a Mon Sep 17 00:00:00 2001 From: Kenta Kubo Date: Fri, 17 Aug 2018 02:35:19 -0400 Subject: 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 --- Modules/FindCUDA.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v0.12