-
Notifications
You must be signed in to change notification settings - Fork 803
[SYCL][UR] Implement sycl_ext_oneapi_device_wait #20377
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
Conversation
This commit makes the following changes to the behavior of asynchronous
exception handling:
1. The death of a queue should not consume asynchronous exceptions.
2. Calling wait_and_throw on an event after the associated queue has
died should still consume exceptions that were originally associated
with the queue. This should respect the async_handler priority to
the best of its ability.
3. Calling wait_and_throw or throw_asynchronous on a queue without an
async_handler should fall back to using the async_handler of the
associated context, then the default async_handler if none were
attached to the context.
Additionally, this lays the ground work for
intel#20266 by moving the tracking of
unconsumed asynchronous exception to the devices.
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
This commit removes a test case where the default handler would be used if the queue dies. This test case was unreliable as there was no way to ensure that the runtime was not keeping the queue alive for internal reasons. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
c3570ae to
5c29b43
Compare
pbalcer
left a comment
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.
ur lgtm.
5c29b43 to
93fb400
Compare
93fb400 to
ea69fb9
Compare
ea69fb9 to
1c2995d
Compare
1c2995d to
25c5cd9
Compare
This commit implements the UR functionality for device-wide synchronization and the SYCL APIs using it. The latter implements the sycl_ext_oneapi_device_wait extension. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
25c5cd9 to
bf37568
Compare
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
|
@intel/llvm-reviewers-runtime & @intel/dpcpp-tools-reviewers - Linux drivers now support the device-wide synchronization, so this patch is ready for review! 🥳 |
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
YuriPlyakhin
left a comment
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.
LGTM for dpcpp-tools
|
@intel/llvm-reviewers-runtime - Friendly ping and happy new year! 🎆 |
|
@intel/llvm-gatekeepers please consider merging |
This commit implements the UR functionality for device-wide synchronization and the SYCL APIs using it. The latter implements the sycl_ext_oneapi_device_wait extension.