-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][XPTI] Add unique queue ID to trace #11548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
sycl/unittests/xpti_trace/xptitest_subscriber/XPTISubscriber.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
sycl-trace run example:
|
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -448,7 +453,7 @@ void *queue_impl::instrumentationProlog(const detail::code_location &CodeLoc, | |||
DevStr = "ACCELERATOR"; | |||
else | |||
DevStr = "UNKNOWN"; | |||
xpti::addMetadata(WaitEvent, "sycl_device", DevStr); | |||
xpti::addMetadata(WaitEvent, "sycl_device_type", DevStr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
sycl/source/detail/queue_impl.hpp
Outdated
@@ -231,10 +192,18 @@ class queue_impl { | |||
MDevice->is_host() ? 0 : MDevice->getHandleRef())); | |||
} | |||
xpti::addMetadata(TEvent, "is_inorder", MIsInorder); | |||
xpti::addMetadata(TEvent, "queue_id", MQueueID); | |||
if (!MHostQueue) | |||
xpti::addMetadata(PrepareNotify.traceEvent(), "queue_handle", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace "PrepareNotify.traceEvent()" with "TEvent" and avoid a function call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sycl/source/detail/queue_impl.hpp
Outdated
xpti::addMetadata(TEvent, "is_inorder", MIsInorder); | ||
xpti::addMetadata(TEvent, "queue_id", MQueueID); | ||
if (!MHostQueue) | ||
xpti::addMetadata(PrepareNotify.traceEvent(), "queue_handle", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace PrepareNotify.traceEvent() with TEvent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@@ -0,0 +1,189 @@ | |||
//==------------ NodeCreation.cpp --- XPTI integration unit tests ----------==// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//==------------ NodeCreation.cpp --- XPTI integration unit tests ----------==// | |
//==------------ QueueIDCheck.cpp --- XPTI integration unit tests ----------==// |
Not blocking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixing here #11690
@KseniyaTikhomirova Could you please fix post-commit failures after your commit: https://github.com/intel/llvm/actions/runs/6658855529/job/18096640484 |
Fixed here #11682 |
No description provided.