From cbb8f30ee651fc8a1cc241df3aeed73d8674a1d8 Mon Sep 17 00:00:00 2001 From: "Marcus D. Hanwell" Date: Wed, 26 Mar 2025 12:53:23 -0400 Subject: 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 --- Modules/FindCUDAToolkit.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index da33be2..57ceaf0 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/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}") -- cgit v0.12