@@ -679,11 +679,9 @@ void queue_impl::wait(const detail::code_location &CodeLoc) {
679679void queue_impl::constructorNotification () {
680680#if XPTI_ENABLE_INSTRUMENTATION
681681 if (xptiTraceEnabled ()) {
682- // Making it ABI compatible and not removing the member variable
683- MStreamID = detail::GSYCLStreamID;
684682 constexpr uint16_t NotificationTraceType =
685683 static_cast <uint16_t >(xpti::trace_point_type_t ::queue_create);
686- if (xptiCheckTraceEnabled (MStreamID , NotificationTraceType)) {
684+ if (xptiCheckTraceEnabled (detail::GSYCLStreamID , NotificationTraceType)) {
687685 xpti::utils::StringHelper SH;
688686 std::string AddrStr = SH.addressAsString <size_t >(MQueueID);
689687 std::string QueueName = SH.nameWithAddressString (" queue" , AddrStr);
@@ -711,9 +709,10 @@ void queue_impl::constructorNotification() {
711709 reinterpret_cast <size_t >(getHandleRef ()));
712710 // Also publish to TLS before notification
713711 xpti::framework::stash_tuple (XPTI_QUEUE_INSTANCE_ID_KEY, MQueueID);
714- xptiNotifySubscribers (
715- MStreamID, (uint16_t )xpti::trace_point_type_t ::queue_create, nullptr ,
716- TEvent, MInstanceID, static_cast <const void *>(" queue_create" ));
712+ xptiNotifySubscribers (detail::GSYCLStreamID,
713+ (uint16_t )xpti::trace_point_type_t ::queue_create,
714+ nullptr , TEvent, MInstanceID,
715+ static_cast <const void *>(" queue_create" ));
717716 }
718717 }
719718#endif
@@ -723,10 +722,10 @@ void queue_impl::destructorNotification() {
723722#if XPTI_ENABLE_INSTRUMENTATION
724723 constexpr uint16_t NotificationTraceType =
725724 static_cast <uint16_t >(xpti::trace_point_type_t ::queue_destroy);
726- if (xptiCheckTraceEnabled (MStreamID , NotificationTraceType)) {
725+ if (xptiCheckTraceEnabled (detail::GSYCLStreamID , NotificationTraceType)) {
727726 // Use the cached trace event, stream id and instance IDs for the
728727 // destructor
729- xptiNotifySubscribers (MStreamID , NotificationTraceType, nullptr ,
728+ xptiNotifySubscribers (detail::GSYCLStreamID , NotificationTraceType, nullptr ,
730729 (xpti::trace_event_data_t *)MTraceEvent, MInstanceID,
731730 static_cast <const void *>(" queue_destroy" ));
732731 xptiReleaseEvent ((xpti::trace_event_data_t *)MTraceEvent);
0 commit comments