-
Notifications
You must be signed in to change notification settings - Fork 822
[SYCL] Improve enqueue function host task #21679
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
base: sycl
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||
| // Only L0V2 supports urEnqueueHostTaskExp. | ||||||
| // REQUIRES: level_zero | ||||||
|
|
||||||
| // RUN: %{build} -o %t.out | ||||||
| // RUN: %{run} SYCL_UR_USE_LEVEL_ZERO_V2=1 SYCL_UR_TRACE=2 %t.out | FileCheck %s | ||||||
|
||||||
| // RUN: %{run} SYCL_UR_USE_LEVEL_ZERO_V2=1 SYCL_UR_TRACE=2 %t.out | FileCheck %s | |
| // RUN: env SYCL_UR_USE_LEVEL_ZERO_V2=1 SYCL_UR_TRACE=2 %{run} %t.out 2>&1 | FileCheck %s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path enqueues
urEnqueueHostTaskExpwithout requesting an output event (phEvent == nullptr) and then immediately proceeds toNotifyHostTaskCompletionlater inDispatchHostTask::operator(). If the UR host task executes asynchronously (as implied by UR’s API + conformance tests), the scheduler may treat the host task as complete too early, breaking dependency ordering across queues and making host-task profiling/async-exception behavior diverge. Request a UR event here and delay completion notification until that event signals (eitherurEventWaitin this thread or an event callback-based completion path).