diff options
author | Brad King <brad.king@kitware.com> | 2023-01-23 15:39:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-01-23 15:40:05 (GMT) |
commit | c9fc146a93b202c6aaba813d16e66cc6f3f6e2ac (patch) | |
tree | 677069eb0b5100b7b8500dd1260696f9577f48a5 /Modules | |
parent | 99bd5eb062b3debb0e42a06ece767776d6218671 (diff) | |
parent | 2a94c762edc287de4240c0ce064b5ceb229d3a8c (diff) | |
download | CMake-c9fc146a93b202c6aaba813d16e66cc6f3f6e2ac.zip CMake-c9fc146a93b202c6aaba813d16e66cc6f3f6e2ac.tar.gz CMake-c9fc146a93b202c6aaba813d16e66cc6f3f6e2ac.tar.bz2 |
Merge topic 'find_cudatoolkit_add_nvrtc_static'
2a94c762ed FindCUDAToolkit: Add support for CUDA::nvrtc_static
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8100
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index d621195..cd44cc6 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -380,6 +380,12 @@ Targets Created: - ``CUDA::nvrtc`` +.. versionadded:: 3.26 + + - ``CUDA::nvrtc_builtins`` + - ``CUDA::nvrtc_static`` starting in CUDA 11.5 + - ``CUDA::nvrtc_builtins_static`` starting in CUDA 11.5 + .. _`cuda_toolkit_nvjitlink`: nvJitLink @@ -1099,7 +1105,6 @@ if(CUDAToolkit_FOUND) EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}") endif() - _CUDAToolkit_find_and_add_import_lib(nvrtc DEPS cuda_driver) if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.1.0) if(NOT TARGET CUDA::nvptxcompiler_static) _CUDAToolkit_find_and_add_import_lib(nvptxcompiler_static DEPS cuda_driver) @@ -1114,6 +1119,13 @@ if(CUDAToolkit_FOUND) _CUDAToolkit_find_and_add_import_lib(nvJitLink_static DEPS cuda_driver) endif() + _CUDAToolkit_find_and_add_import_lib(nvrtc_builtins DEPS cuda_driver) + _CUDAToolkit_find_and_add_import_lib(nvrtc DEPS nvrtc_builtins nvJitLink) + if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.5.0) + _CUDAToolkit_find_and_add_import_lib(nvrtc_builtins_static DEPS cuda_driver) + _CUDAToolkit_find_and_add_import_lib(nvrtc_static DEPS nvrtc_builtins_static nvptxcompiler_static nvJitLink_static) + endif() + _CUDAToolkit_find_and_add_import_lib(nvml ALT nvidia-ml nvml) if(WIN32) |