@@ -42,25 +42,17 @@ constexpr const char *GVerStr = SYCL_VERSION_STR;
4242inline constexpr const char *SYCL_STREAM_NAME = " sycl" ;
4343inline constexpr auto SYCL_MEM_ALLOC_STREAM_NAME =
4444 " sycl.experimental.mem_alloc" ;
45- inline constexpr const char *CUDA_CALL_STREAM_NAME =
46- " sycl.experimental.cuda.call" ;
47- inline constexpr const char *CUDA_DEBUG_STREAM_NAME =
48- " sycl.experimental.cuda.debug" ;
4945// Stream name being used to notify about buffer objects.
5046inline constexpr const char *SYCL_BUFFER_STREAM_NAME =
5147 " sycl.experimental.buffer" ;
5248// Stream name being used to notify about image objects.
5349inline constexpr const char *SYCL_IMAGE_STREAM_NAME = " sycl.experimental.image" ;
54- inline constexpr const char *UR_CALL_STREAM_NAME = " ur.call" ;
5550inline constexpr const char *UR_API_STREAM_NAME = " ur.api" ;
5651
5752extern uint8_t GBufferStreamID;
5853extern uint8_t GImageStreamID;
5954extern uint8_t GMemAllocStreamID;
60- extern uint8_t GCudaCallStreamID;
61- extern uint8_t GCudaDebugStreamID;
6255extern uint8_t GSYCLStreamID;
63- extern uint8_t GUrCallStreamID;
6456extern uint8_t GUrApiStreamID;
6557
6658extern xpti::trace_event_data_t *GMemAllocEvent;
@@ -96,18 +88,9 @@ class XPTIRegistry {
9688 // Memory allocation events
9789 GMemAllocStreamID = this ->initializeStream (SYCL_MEM_ALLOC_STREAM_NAME,
9890 GMajVer, GMinVer, GVerStr);
99- // UR call events
100- GUrCallStreamID = this ->initializeStream (UR_CALL_STREAM_NAME, GMajVer,
101- GMinVer, GVerStr);
10291 // UR API events
10392 GUrApiStreamID =
10493 this ->initializeStream (UR_API_STREAM_NAME, GMajVer, GMinVer, GVerStr);
105- // CUDA call events
106- GCudaCallStreamID = this ->initializeStream (CUDA_CALL_STREAM_NAME, GMajVer,
107- GMinVer, GVerStr);
108- // CUDA debug events
109- GCudaDebugStreamID = this ->initializeStream (CUDA_DEBUG_STREAM_NAME,
110- GMajVer, GMinVer, GVerStr);
11194
11295 auto SYCLEventTP = xptiCreateTracepoint (" sycl.application.graph" , nullptr ,
11396 0 , 0 , nullptr );
@@ -144,7 +127,8 @@ class XPTIRegistry {
144127 // / \param VerStr is a string of "MajVer.MinVer" format.
145128 uint8_t initializeStream (const std::string &StreamName, uint32_t MajVer,
146129 uint32_t MinVer, const std::string &VerStr) {
147- uint8_t StreamID = xpti::invalid_id<xpti::stream_id_t >;
130+ // We need to return an invalid ID if XPTI is not enabled
131+ uint8_t StreamID = std::numeric_limits<uint8_t >::max ();
148132#ifdef XPTI_ENABLE_INSTRUMENTATION
149133 StreamID = xptiRegisterStream (StreamName.c_str ());
150134 MActiveStreams.insert (StreamName);
0 commit comments