[SYCL][Graph] Support handler-based restricted host task with native recording#22746
Open
mmichel11 wants to merge 1 commit into
Open
[SYCL][Graph] Support handler-based restricted host task with native recording#22746mmichel11 wants to merge 1 commit into
mmichel11 wants to merge 1 commit into
Conversation
mmichel11
force-pushed
the
matt/native_host_task_handler
branch
from
July 24, 2026 20:08
59ed0de to
7390a91
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends SYCL Graph native recording support for handler-based restricted host tasks by adding UR event signaling and honoring wait-event dependencies, including fork/join cases where a non-recording queue joins an in-progress capture via dependencies.
Changes:
- Add native-recording host-task event signaling/waiting support in
handler::finalize()forCGType::NativeHostTask. - Enhance native-graph discovery to support fork/join scenarios by considering dependency events’ worker queues.
- Add new end-to-end tests covering fork/join event dependencies for restricted host tasks in native recording mode.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sycl/source/handler.cpp | Adds native-recorded host-task UR wait/signal event handling and graph lookup via dependency events. |
| sycl/test-e2e/Graph/RecordReplay/Inputs/enqueue_func_host_task_event.cpp | New shared test logic for handler-based restricted host task fork/join with event dependencies. |
| sycl/test-e2e/Graph/RecordReplay/NativeRecording/enqueue_func_host_task_event.cpp | Native-recording wrapper test enabling the new behavior under the native recording configuration. |
mmichel11
force-pushed
the
matt/native_host_task_handler
branch
from
July 24, 2026 20:37
7390a91 to
33d6a19
Compare
mmichel11
marked this pull request as ready for review
July 24, 2026 22:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #22143.
This PR adds event signaling and waiting to the native graph recording of host tasks. This enables the handler based restricted host task to signal a UR backed SYCL event and respect wait event dependencies. Special handling is added to enable graph forks.