Skip to content
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

Merged

Conversation

steffenlarsen
Copy link
Contributor

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.

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());
}
Copy link
Contributor Author

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.

@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1351

1 similar comment
@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1351

@steffenlarsen
Copy link
Contributor Author

@dm-vodopyanov / @intel/llvm-reviewers-runtime - Friendly ping.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1351

Copy link
Contributor

@dm-vodopyanov dm-vodopyanov left a 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!

@steffenlarsen
Copy link
Contributor Author

Failure on Windows is unrelated.

SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp

@steffenlarsen steffenlarsen merged commit cd93d8f into intel:sycl Nov 3, 2022
steffenlarsen added a commit to intel/llvm-test-suite that referenced this pull request Nov 9, 2022
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
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.

3 participants