diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-01-20 15:38:27 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-01-20 17:05:43 (GMT) |
commit | 2a94c762edc287de4240c0ce064b5ceb229d3a8c (patch) | |
tree | 64d3606e145a1b5491d3f9cd1cc5689cfe7c2fe4 /Modules/FindCUDAToolkit.cmake | |
parent | 06c7e88b9148fce5721335409015892b6fa4faba (diff) | |
download | CMake-2a94c762edc287de4240c0ce064b5ceb229d3a8c.zip CMake-2a94c762edc287de4240c0ce064b5ceb229d3a8c.tar.gz CMake-2a94c762edc287de4240c0ce064b5ceb229d3a8c.tar.bz2 |
FindCUDAToolkit: Add support for CUDA::nvrtc_static
Diffstat (limited to 'Modules/FindCUDAToolkit.cmake')
-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) |