-
Notifications
You must be signed in to change notification settings - Fork 795
[UR][Offload] Event waiting #19594
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
base: sycl
Are you sure you want to change the base?
[UR][Offload] Event waiting #19594
Conversation
Implement urEventsWait[WithBarrier] and respect the waitlist of enqueue functions.
|
||
olWaitEvents(Queue, OlEvents.data(), NumEvents); | ||
} | ||
return nullptr; |
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.
Nitpick: OL_SUCCESS
is clearer to someone less familiar with the Offload API
OlEvents.push_back(UrEvents[I]->OffloadEvent); | ||
} | ||
|
||
olWaitEvents(Queue, OlEvents.data(), NumEvents); |
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.
This result is never checked
|
||
// Create events on each active queue for an arbitrary thread to block on | ||
// TODO: Can we efficiently check if each thread is "finished" rather than | ||
// creating an event? |
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.
stream_queue_t::syncEvents
has some optimizations to only sync streams that need to be
Implement urEventsWait[WithBarrier] and respect the waitlist of enqueue
functions.