Skip to content

Commit e15ebd0

Browse files
author
Pierre-Andre Saulais
authored
[SYCL][PI] Provide a preprocessor macro to locate the CUPTI library for XPTI tracing (#11866)
This is a prerequisite for implementing dynamic loading of the CUPTI library when XPTI tracing is enabled. See oneapi-src/unified-runtime#1070
1 parent 5a8c872 commit e15ebd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/plugins/cuda/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,10 @@ if (SYCL_ENABLE_XPTI_TRACING)
6363
)
6464
endif()
6565

66+
if(CUDA_cupti_LIBRARY)
67+
target_compile_definitions(pi_cuda PRIVATE
68+
"-DCUPTI_LIB_PATH=\"${CUDA_cupti_LIBRARY}\"")
69+
endif()
70+
6671
set_target_properties(pi_cuda PROPERTIES LINKER_LANGUAGE CXX)
6772

0 commit comments

Comments
 (0)