Merge topic 'findcudatoolkit-target-for-cufilt'

507b641639 FindCUDAToolkit: Add cufilt target for CUDA 11.4 and above

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !12115
This commit is contained in:
Brad King
2026-05-29 13:34:18 +00:00
committed by Kitware Robot
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
findcudatoolkit-target-for-cufilt
---------------------------------
* The :module:`FindCUDAToolkit` module now provides an imported target
for ``cufilt`` in CUDA 11.4 and above.

View File

@@ -138,6 +138,7 @@ of the following libraries that are part of the CUDAToolkit:
- `nvtx3`_
- `OpenCL`_
- `cuLIBOS`_
- `cufilt`_
CUDA Runtime Library
""""""""""""""""""""
@@ -553,6 +554,20 @@ Target Created:
.. _`NVIDIA Compute Sanitizer`: https://docs.nvidia.com/compute-sanitizer
cufilt
""""""
.. versionadded:: 4.4
The `cu++filt`_ binary utility also provides a static library for demangling
CUDA C++ symbols.
Targets Created:
- ``CUDA::cufilt`` starting in CUDA 11.4
.. _`cu++filt`: https://docs.nvidia.com/cuda/cuda-binary-utilities/index.html#cu-filt
Result Variables
^^^^^^^^^^^^^^^^
@@ -1564,6 +1579,10 @@ if(CUDAToolkit_FOUND)
endif()
endif()
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.4)
_CUDAToolkit_find_and_add_import_lib(cufilt)
endif()
if(_CUDAToolkit_Pop_ROOT_PATH)
list(REMOVE_AT CMAKE_FIND_ROOT_PATH 0)
unset(_CUDAToolkit_Pop_ROOT_PATH)