Browse Source

CUDAToolkit: Restore ability to find cupti library

In commit f69b9b7305 (CUDAToolkit: Restore ability to find cupti
headers, 2023-12-08, v3.28.1~8^2) we did not update the CUPTI library
searches to add the extra search path needed for certain install layouts
(only the header search path). Add the additional library search paths.

Fixes: #26770
Issue: #25484
Marcus D. Hanwell 8 months ago
parent
commit
cbb8f30ee6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Modules/FindCUDAToolkit.cmake

+ 3 - 1
Modules/FindCUDAToolkit.cmake

@@ -1298,7 +1298,9 @@ if(CUDAToolkit_FOUND)
     set(_cmake_cupti_extra_paths extras/CUPTI/lib64/
                                  extras/CUPTI/lib/
                                  ../extras/CUPTI/lib64/
-                                 ../extras/CUPTI/lib/)
+                                 ../extras/CUPTI/lib/
+                                 ../../../extras/CUPTI/lib64/
+                                 ../../../extras/CUPTI/lib/)
     _CUDAToolkit_find_and_add_import_lib(cupti
                                         EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
                                         EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")