Skip to content
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

[SYCL][Graph] in-order queue barrier fix #364

Closed
wants to merge 1 commit into from

Conversation

EwanC
Copy link
Collaborator

@EwanC EwanC commented Mar 27, 2024

Fix for intel#13066

The special case for using barriers on an in-order queue is that the last event/node submitted to the queue is used as an event for the barrier to depend on.

Looking at the last command submitted to the queue isn't correct for a graph, because previous commands submitted to a graph could have been added explicitly or from recording another queue. Therefore, there is not guaranteed that the last command submitted by the in-order queue is correct dependency for the barrier node in the graph.

Fix for intel#13066

The special case for using barriers on an in-order queue
is that the last event/node submitted to the queue is used
as an event for the barrier to depend on.

Looking at the last command submitted to the queue isn't
correct for a graph, because previous commands
submitted to a graph could have been added explicitly or
from recording another queue. Therefore, there is not
guaranteed that the last command submitted by the in-order
queue is correct dependency for the barrier node in the graph.
@EwanC EwanC force-pushed the ewan/in_order_barrier_fix branch from 27a2a32 to 04f474c Compare March 28, 2024 14:25
@EwanC EwanC marked this pull request as ready for review March 28, 2024 14:27
@EwanC
Copy link
Collaborator Author

EwanC commented Mar 28, 2024

Going straight to upstream due to urgency of this bug fix intel#13193

@EwanC EwanC closed this Mar 28, 2024
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.

1 participant