Skip to content

[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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from
Open

Conversation

RossBrunton
Copy link
Contributor

Implement urEventsWait[WithBarrier] and respect the waitlist of enqueue
functions.

@RossBrunton RossBrunton requested a review from a team as a code owner July 25, 2025 14:06
Implement urEventsWait[WithBarrier] and respect the waitlist of enqueue
functions.

olWaitEvents(Queue, OlEvents.data(), NumEvents);
}
return nullptr;
Copy link
Contributor

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);
Copy link
Contributor

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?
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants