FindCUDAToolkit: Add cufilt target for CUDA 11.4 and above

Fixes: #26705
This commit is contained in:
Arha Gatram
2026-05-27 15:44:43 -07:00
committed by Brad King
parent 22c962a406
commit 507b641639
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)