-
Notifications
You must be signed in to change notification settings - Fork 738
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
[SYCL] Implement SYCL 2020 default async_handler behavior #7162
[SYCL] Implement SYCL 2020 default async_handler behavior #7162
Conversation
SYCL 2020 specifies that if no async_handler is given to either the queue nor the context a default async_handler will be used. This default handler must report the problems reported and call `std::terminate` or similar. This commit adds an implementation of the default async_handler. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
{ | ||
std::lock_guard<std::mutex> Lock(MMutex); | ||
MExceptions.PushBack(std::current_exception()); | ||
} |
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 behavior was incorrect. Synchronous errors during submit should not be reported asynchronously.
/verify with intel/llvm-test-suite#1351 |
1 similar comment
/verify with intel/llvm-test-suite#1351 |
@dm-vodopyanov / @intel/llvm-reviewers-runtime - Friendly ping. |
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
/verify with intel/llvm-test-suite#1351 |
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.
Sorry, missed it somehow, LGTM!
Failure on Windows is unrelated. SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp |
SYCL 2020 specifies that if no async_handler is given to either the queue nor the context a default async_handler will be used. This default handler must report the problems reported and call
std::terminate
or similar. This commit adds an implementation of the default async_handler.