diff options
author | Brad King <brad.king@kitware.com> | 2015-01-22 14:50:42 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-01-22 14:50:42 (GMT) |
commit | 57f4c8346206d129d2ec6576b3fb0b7862566311 (patch) | |
tree | 6461f60bdca4a5c4826fdbc6c9df389aead1d6f1 /Modules | |
parent | 3eda92df914f9e07775f5026ebc32580e743ea70 (diff) | |
parent | e56c93279523701d8f044372fcc451ce50369b93 (diff) | |
download | CMake-57f4c8346206d129d2ec6576b3fb0b7862566311.zip CMake-57f4c8346206d129d2ec6576b3fb0b7862566311.tar.gz CMake-57f4c8346206d129d2ec6576b3fb0b7862566311.tar.bz2 |
Merge topic 'FindCUDA-cusolver'
e56c9327 FindCUDA: Add cuSOLVER library from CUDA 7.0
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 4f1f09a..cae9214 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -276,6 +276,8 @@ # Only available for CUDA version 4.0+. # CUDA_curand_LIBRARY -- CUDA Random Number Generation library. # Only available for CUDA version 3.2+. +# CUDA_cusolver_LIBRARY -- CUDA Direct Solver library. +# Only available for CUDA version 7.0+. # CUDA_cusparse_LIBRARY -- CUDA Sparse Matrix library. # Only available for CUDA version 3.2+. # CUDA_npp_LIBRARY -- NVIDIA Performance Primitives lib. @@ -518,6 +520,7 @@ macro(cuda_unset_include_and_libraries) unset(CUDA_cufft_LIBRARY CACHE) unset(CUDA_cufftemu_LIBRARY CACHE) unset(CUDA_curand_LIBRARY CACHE) + unset(CUDA_cusolver_LIBRARY CACHE) unset(CUDA_cusparse_LIBRARY CACHE) unset(CUDA_npp_LIBRARY CACHE) unset(CUDA_nppc_LIBRARY CACHE) @@ -754,6 +757,10 @@ if(CUDA_VERSION VERSION_GREATER "5.0") elseif(NOT CUDA_VERSION VERSION_LESS "4.0") find_cuda_helper_libs(npp) endif() +if(NOT CUDA_VERSION VERSION_LESS "7.0") + # cusolver showed up in version 7.0 + find_cuda_helper_libs(cusolver) +endif() if (CUDA_BUILD_EMULATION) set(CUDA_CUFFT_LIBRARIES ${CUDA_cufftemu_LIBRARY}) |