Skip to content

Commit

Permalink
[SYCL][PI] Provide a preprocessor macro to locate the CUPTI library f…
Browse files Browse the repository at this point in the history
…or XPTI tracing (intel#11866)

This is a prerequisite for implementing dynamic loading of the CUPTI
library when XPTI tracing is enabled.

See oneapi-src/unified-runtime#1070
  • Loading branch information
pasaulais committed Nov 15, 2023
1 parent 5a8c872 commit e15ebd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sycl/plugins/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@ if (SYCL_ENABLE_XPTI_TRACING)
)
endif()

if(CUDA_cupti_LIBRARY)
target_compile_definitions(pi_cuda PRIVATE
"-DCUPTI_LIB_PATH=\"${CUDA_cupti_LIBRARY}\"")
endif()

set_target_properties(pi_cuda PROPERTIES LINKER_LANGUAGE CXX)

0 comments on commit e15ebd0

Please sign in to comment.