Skip to content

[SYCL][NATIVECPU] async ops, wait for dependencies in threads #19537

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

Open
wants to merge 55 commits into
base: sycl
Choose a base branch
from

Conversation

uwedolinsky
Copy link
Contributor

@uwedolinsky uwedolinsky commented Jul 21, 2025

Makes most operations including memory copies asynchronous except enqueueBufferMap

Worker threads wait for dependent events instead of the main thread.

The state struct is now constructed by the threads instead of being constructed by the main thread and copied which

  1. reduces the capturing overhead in the enqueue lambda
  2. enabled removing mutable from enqueue lambda

Also removing #ifdef NATIVECPU_USE_OCK

@uwedolinsky uwedolinsky requested a review from a team as a code owner July 21, 2025 18:31
@uwedolinsky uwedolinsky marked this pull request as draft July 21, 2025 18:33
@uwedolinsky uwedolinsky changed the title [SYCL][NATIVECPU] faster enqueues and async ops [SYCL][NATIVECPU] async ops, wait for dependencies in threads Jul 28, 2025
@uwedolinsky uwedolinsky marked this pull request as ready for review July 29, 2025 17:01
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