Skip to content

[SYCL][Docs] Allow discarded events case for ext_oneapi_get_last_event #15638

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

Merged

Conversation

steffenlarsen
Copy link
Contributor

This commit changes the behavior for queue::ext_oneapi_get_last_event when the queue either does not currently have a last event or the last event was discarded. In these cases, the implementation will now insert a marker event at the end of the queue which signifies the work related to the last command in the queue.

Additionally, this allows us to relax the requirements for the extension to now allow it to be used on queues where discarding of events is enabled.

This commit changes the behavior for queue::ext_oneapi_get_last_event
when the queue either does not currently have a last event or the last
event was discarded. In these cases, the implementation will now insert
a marker event at the end of the queue which signifies the work related
to the last command in the queue.

Additionally, this allows us to relax the requirements for the extension
to now allow it to be used on queues where discarding of events is
enabled.

Signed-off-by: Larsen, Steffen <[email protected]>
Copy link
Contributor

@gmlueck gmlueck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spec changes OK

@steffenlarsen steffenlarsen merged commit 65849fd into intel:sycl Oct 15, 2024
14 checks passed
@steffenlarsen steffenlarsen deleted the steffen/allow_discarded_events_last branch October 15, 2024 05:43
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.

4 participants