Skip to content

[UR] In-order path for OpenCL command-buffers #17056

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
Feb 20, 2025

Conversation

EwanC
Copy link
Contributor

@EwanC EwanC commented Feb 19, 2025

After the spec bump of cl_khr_command_buffer to 0.9.7, in the OpenCL adapter we no longer need to worry about the in-order/out-of-order property of the internal queue used on command-command-buffer creation matching the queue used to enqueue the command-buffer.

We can therefore take advantage of the in-order flag passed on UR command-buffer creation to use an in-order queue for command-buffer creation, and omit using sync points.

Note: This UR patch was previously approved and ready-to-merge prior to the UR repo move in oneapi-src/unified-runtime#2681

@EwanC EwanC marked this pull request as ready for review February 19, 2025 09:06
@EwanC EwanC requested a review from a team as a code owner February 19, 2025 09:06
@EwanC EwanC requested a review from fabiomestre February 19, 2025 09:06
@EwanC EwanC changed the title [SYCL][Graph][UR] In-order path for OpenCL command-buffers [UR] In-order path for OpenCL command-buffers Feb 19, 2025
After the [spec bump of cl_khr_command_buffer to 0.9.7](https://github.com/KhronosGroup/OpenCL-Docs/), in the OpenCL adapter we no longer need to worry about the in-order/out-of-order property of the internal queue used on command-command-buffer creation matching the queue used to enqueue the command-buffer.

We can therefore take advantage of the in-order flag passed on UR command-buffer creation to use an in-order queue for command-buffer creation, and omit using sync points.
@EwanC
Copy link
Contributor Author

EwanC commented Feb 20, 2025

@intel/llvm-gatekeepers This is ready to merge, the single CI fail is on a CUDA job for a known flaky fail #17026 and this PR only touches the OpenCL UR adapter

@martygrant martygrant merged commit 988c477 into intel:sycl Feb 20, 2025
27 of 28 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