Skip to content

[SYCL] Do not take any locks in submit for in-order queue #18687

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
Jun 5, 2025

Conversation

igchor
Copy link
Member

@igchor igchor commented May 27, 2025

in NoEvents mode.

The lock was mainly needed to protect storing LastEvent, which is no longer necessary.

Since the lock also provided a memory barrier, change memory order for load/stores on MNoEventMode to acquire/release to match the guarantees.

@igchor igchor temporarily deployed to WindowsCILock May 27, 2025 17:46 — with GitHub Actions Inactive
@igchor
Copy link
Member Author

igchor commented May 27, 2025

This can only be merged after #18601 as opencl still requires the lock as of now.

@igchor igchor temporarily deployed to WindowsCILock May 27, 2025 18:09 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 27, 2025 18:09 — with GitHub Actions Inactive
@igchor igchor force-pushed the no_lock_on_submit branch from bac3930 to 9ae72c6 Compare May 29, 2025 15:34
@igchor igchor force-pushed the no_lock_on_submit branch from 9ae72c6 to b8d982f Compare May 29, 2025 15:35
@igchor igchor temporarily deployed to WindowsCILock May 29, 2025 15:35 — with GitHub Actions Inactive
@igchor igchor marked this pull request as ready for review May 29, 2025 15:35
@igchor igchor requested a review from a team as a code owner May 29, 2025 15:35
@igchor igchor requested a review from maarquitos14 May 29, 2025 15:35
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM.

@igchor igchor temporarily deployed to WindowsCILock May 29, 2025 16:18 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 29, 2025 16:18 — with GitHub Actions Inactive
@igchor igchor force-pushed the no_lock_on_submit branch from b8d982f to bdcafe0 Compare June 4, 2025 20:13
@igchor igchor temporarily deployed to WindowsCILock June 4, 2025 20:13 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock June 4, 2025 20:37 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock June 4, 2025 20:37 — with GitHub Actions Inactive
in NoEvents mode.

The lock was mainly needed to protect storing LastEvent, which
is no longer necessary.

Since the lock also provided a memory barrier, change memory
order for load/stores on MNoEventMode to acquire/release to
match the guarantees.
@igchor
Copy link
Member Author

igchor commented Jun 5, 2025

@intel/llvm-gatekeepers this is ready to be merged

@dm-vodopyanov dm-vodopyanov merged commit 2758b1b into intel:sycl Jun 5, 2025
23 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