diff options
author | Brad King <brad.king@kitware.com> | 2019-06-19 11:22:39 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-06-19 11:22:50 (GMT) |
commit | a5d44570832414be3879a8e77f6079811619f1fc (patch) | |
tree | f7b9ba1173690d45132a8e8b8b87e5e0964fa68a /Modules | |
parent | a7e34e6952cf6c74ce2d30824fb460155f743e99 (diff) | |
parent | 421be81413a6020193716a5416da1a060daefbd4 (diff) | |
download | CMake-a5d44570832414be3879a8e77f6079811619f1fc.zip CMake-a5d44570832414be3879a8e77f6079811619f1fc.tar.gz CMake-a5d44570832414be3879a8e77f6079811619f1fc.tar.bz2 |
Merge topic 'FindCUDA-more-libs'
421be81413 FindCUDA: Add nvToolsExt and OpenCL libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3456
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 3315505..b6859aa 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -375,6 +375,11 @@ The script defines the following variables:: CUDA_nvcuvid_LIBRARY -- CUDA Video Decoder library. Only available for CUDA version 3.2+. Windows only. + CUDA_nvToolsExt_LIBRARY + -- NVIDA CUDA Tools Extension library. + Available for CUDA version 5+. + CUDA_OpenCL_LIBRARY -- NVIDA CUDA OpenCL library. + Available for CUDA version 5+. #]=======================================================================] @@ -642,6 +647,8 @@ macro(cuda_unset_include_and_libraries) unset(CUDA_npps_LIBRARY CACHE) unset(CUDA_nvcuvenc_LIBRARY CACHE) unset(CUDA_nvcuvid_LIBRARY CACHE) + unset(CUDA_nvToolsExt_LIBRARY CACHE) + unset(CUDA_OpenCL_LIBRARY CACHE) unset(CUDA_GPU_DETECT_OUTPUT CACHE) endmacro() @@ -973,6 +980,11 @@ if(CUDA_VERSION VERSION_GREATER "5.0" AND CUDA_VERSION VERSION_LESS "9.2") find_cuda_helper_libs(cublas_device) endif() +if(NOT CUDA_VERSION VERSION_LESS "5.0") + find_cuda_helper_libs(nvToolsExt) + find_cuda_helper_libs(OpenCL) +endif() + if(NOT CUDA_VERSION VERSION_LESS "9.0") # In CUDA 9.0 NPP was nppi was removed find_cuda_helper_libs(nppc) |