Skip to content

[SYCL][Graph] Refine barrier semantics #14363

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
merged 1 commit into from
Jul 2, 2024

Conversation

EwanC
Copy link
Contributor

@EwanC EwanC commented Jul 1, 2024

Changes the semantics of sycl_ext_oneapi_enqueue_barrier commands recorded from a queue into a SYCL-Graph.

The current semantics are that a barrier without a wait-list will depend on all leaf nodes in the graph, and be a dependency of any subsequent node added to the graph.

After discussion with users, this change updates the behavior of barriers to only depend on leaf nodes from the same recording queue, and only commands recorded from the same queue will have a dependency on the barrier.

Changes the semantics of
[sycl_ext_oneapi_enqueue_barrier](https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/supported/sycl_ext_oneapi_enqueue_barrier.asciidoc) commands recorded from a queue into a
SYCL-Graph.

The current semantics are that a barrier without a wait-list will
depend on all leaf nodes in the graph, and be a dependency of any
subsequent node added to the graph.

After discussion with users, this change updates the behavior of
barriers to only depend on leaf nodes from the same recording queue,
and only commands recorded from the same queue will have a dependency
on the barrier.
@EwanC EwanC force-pushed the ewan/barrier_graph_recording branch from 58cb380 to 645a81d Compare July 1, 2024 14:33
@EwanC EwanC temporarily deployed to WindowsCILock July 1, 2024 14:34 — with GitHub Actions Inactive
@EwanC EwanC temporarily deployed to WindowsCILock July 1, 2024 16:05 — with GitHub Actions Inactive
@EwanC EwanC marked this pull request as ready for review July 2, 2024 11:03
@EwanC EwanC requested review from a team as code owners July 2, 2024 11:03
@EwanC EwanC requested a review from steffenlarsen July 2, 2024 11:03
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM!

@EwanC
Copy link
Contributor Author

EwanC commented Jul 2, 2024

@intel/llvm-gatekeepers This is ready to merge, thanks

@steffenlarsen steffenlarsen merged commit 3e06221 into intel:sycl Jul 2, 2024
15 checks passed
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.

3 participants