Skip to content

[SYCL] Simplify secondary queue usage #18642

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

Draft
wants to merge 4 commits into
base: sycl
Choose a base branch
from

Conversation

steffenlarsen
Copy link
Contributor

Following KhronosGroup/SYCL-Docs#811, the SYCL 2020 specification will not mandate the use nor exception checking of secondary queues. This allows us to relax the interfaces taking a secondary queue to fully ignore it. This commit drops the passing of the secondary queue throughout the pipeline.

The requirement of SYCL submit functions taking a secondary queue does
not mandate more than that the runtime must attempt to enqueue onto the
secondary queue if the it fails to enqueue on the primary queue. Using
this, the SYCL implementation can be simplified to simply retry the
enqueue if the enqueue to the primary queue throws an exception.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen force-pushed the steffen/simplify_secondary_queue_usage branch from 936c1a4 to 8464d43 Compare June 2, 2025 06:29
@@ -456,14 +456,12 @@ class __SYCL_EXPORT handler {
/// is null if no secondary queue is associated with the submission.
/// \param CallerNeedsEvent indicates if the event resulting from this handler
/// is needed by the caller.
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This was redundant.

Signed-off-by: Larsen, Steffen <[email protected]>
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