Skip to content

Commit c63a3bf

Browse files
authored
[SYCL][CUDA] Expand search for generated_cuda_meta.h (#18436)
On some systems `CUDA_Toolkit_ROOT` might be emtpy, even though CUDA is properly found in the CMake. This can cause a failed search for `generated_cuda_meta.h`. In that case only a warning is emitted when building `cuda_trace_collector`, but this can fail the `-Werror` build. This patch ensures that if we can find `CUPTI`, we can find this file.
1 parent 72513d2 commit c63a3bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/tools/sycl-trace/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ if(SYCL_BUILD_BACKEND_CUDA)
145145
"${CUDAToolkit_ROOT}/extras/CUPTI/include"
146146
"${CUDAToolkit_INCLUDE_DIRS}/../extras/CUPTI/include"
147147
"${CUDAToolkit_INCLUDE_DIRS}"
148+
"${CUDAToolkit_CUPTI_INCLUDE_DIR}"
149+
"${CUDAToolkit_INCLUDE_DIRS}/../../../extras/CUPTI/include"
148150
NO_DEFAULT_PATH)
149151

150152
if( EXISTS "${GEN_CUDA_META_H_DIR}/generated_cuda_meta.h" )

0 commit comments

Comments
 (0)