浏览代码

Merge topic 'FindCUDA-deprecate-cublas_device'

bdf1f36135 FindCUDA: Do not find cublas_device on CUDA >= 9.2

Acked-by: Kitware Robot <[email protected]>
Merge-request: !2298
Brad King 7 年之前
父节点
当前提交
e90670925f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Modules/FindCUDA.cmake

+ 2 - 1
Modules/FindCUDA.cmake

@@ -971,7 +971,8 @@ if(NOT CUDA_VERSION VERSION_LESS "3.2")
     find_cuda_helper_libs(nvcuvid)
     find_cuda_helper_libs(nvcuvid)
   endif()
   endif()
 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)
   find_cuda_helper_libs(cublas_device)
 endif()
 endif()