diff options
author | Brad King <brad.king@kitware.com> | 2022-12-14 14:00:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-12-14 14:00:29 (GMT) |
commit | 7ca90d04fc3c476a90ff679ecf6c87ee5c449f72 (patch) | |
tree | bf8aa78406e04b79441ac5414f939d095a724683 /Modules | |
parent | ac3b6b5f50b75ceb415e1267d5c22ca9b63f4ebf (diff) | |
parent | d37d9c098c28beafcc5ea49795f471deafe034ad (diff) | |
download | CMake-7ca90d04fc3c476a90ff679ecf6c87ee5c449f72.zip CMake-7ca90d04fc3c476a90ff679ecf6c87ee5c449f72.tar.gz CMake-7ca90d04fc3c476a90ff679ecf6c87ee5c449f72.tar.bz2 |
Merge topic 'find_cudatoolkit_add_nvjitlink'
d37d9c098c FindCUDAToolkit: Support the new `nvJitLink` library in CUDA 12
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8014
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index 5df31da..f104bfc 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -380,6 +380,18 @@ Targets Created: - ``CUDA::nvrtc`` +.. _`cuda_toolkit_nvjitlink`: + +nvJitLink +""""""""" + +The `nvJItLink <https://docs.nvidia.com/cuda/>`_ (Runtime LTO Linking) library. + +Targets Created: + +- ``CUDA::nvJitLink`` starting in CUDA 12.0 +- ``CUDA::nvJitLink_static`` starting in CUDA 12.0 + .. _`cuda_toolkit_nvml`: nvidia-ML @@ -1094,6 +1106,11 @@ if(CUDAToolkit_FOUND) endif() endif() + if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.0.0) + _CUDAToolkit_find_and_add_import_lib(nvJitLink DEPS cuda_driver) + _CUDAToolkit_find_and_add_import_lib(nvJitLink_static DEPS cuda_driver) + endif() + _CUDAToolkit_find_and_add_import_lib(nvml ALT nvidia-ml nvml) if(WIN32) |