Skip to content

Conversation

@rafbiels
Copy link
Contributor

Fix-up for #17315 which used incorrect CMake variables for CUPTI:

  • CUDAToolkit_cupti_INCLUDE_DIR should be CUDAToolkit_CUPTI_INCLUDE_DIR
  • CUDAToolkit_cupti_LIBRARY should be CUDA_cupti_LIBRARY

In addition, we discovered that FindCUDAToolkit:

Fix the variable names and retry the searches with extra paths if the header/library are not found. The REQUIRED option is enabled in the retry, which ensures that if CUPTI is not found then the build fails at CMake configuration instead of later during compilation or linking.

Fix-up for intel#17315 which used incorrect CMake variables for CUPTI:
* CUDAToolkit_cupti_INCLUDE_DIR should be CUDAToolkit_CUPTI_INCLUDE_DIR
* CUDAToolkit_cupti_LIBRARY should be CUDA_cupti_LIBRARY

In addition, we discovered that FindCUDAToolkit:
* does not set the INCLUDE variable until CMake 3.24
* fails to find the library in CUDA toolkits installed from runfile (https://gitlab.kitware.com/cmake/cmake/-/issues/26770)

Fix the variable names and retry the searches with extra paths
if the header/library are not found. The REQUIRED option is enabled
in the retry, which ensures that if CUPTI is not available in the
system then the build fails at CMake configuration instead of later
during compilation or linking.
@rafbiels rafbiels requested review from a team as code owners March 13, 2025 23:25
@npmiller
Copy link
Contributor

@intel/llvm-gatekeepers this is ready to merge

@sommerlukas sommerlukas merged commit d6214ad into intel:sycl Mar 17, 2025
44 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SYCL][CUDA] Build issue with CUPTI header for CUDA trace

5 participants