-
Notifications
You must be signed in to change notification settings - Fork 751
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
[WIP][SYCL][CUDA] Lit exceptions #1304
Conversation
Do not catch unexpected exceptions to return an error code but allow the exception to terminate the tested program. This will result in useful exception-related error output that is otherwise lost. Do not catch and then ignore an unexpected exception but re-throw it. Explicitly returning error codes. Abort when catching asynchronous exceptions. Signed-off-by: Bjoern Knafla <bjoern@codeplay.com>
Allow unexpected exceptions to terminate the LIT test as this outputs extra information. Signed-off-by: Bjoern Knafla <bjoern@codeplay.com>
|
Aren't assertions enabled by default and should be explicitly disabled with |
@bader You are right and my PRs to replace I seemingly got confused due to working for too long with CMake and explicit |
# Conflicts: # sycl/test/basic_tests/image_api.cpp
@bjoernknafla, do you want to proceed with these changes? |
I need/want to rework this a bit - should I close and reopen it once ready or keep it open and marked as WIP? |
As I learned from you, I striked that old comment through now to prevent future confusion. |
This PR is old and outdated and I won't be able to get back to it for a while. While the LIT tests could need another revisit to ensure that exceptions are not ignored I suggest to close this PR. |
Thanks for the update. |
Fix LIT tests that are not compiled with assertions enabled but call
assert.
Only done for LIT tests that require fixes during work on CUDA.
Signed-off-by: Bjoern Knafla bjoern@codeplay.com