Repository navigation
Implement error_handler function in libsyclinterface/helper - #683
Merged
oleksandr-pavlyk merged 15 commits intoDec 1, 2021
Merged
Conversation
2 tasks
Collaborator
diptorupd
reviewed
Nov 22, 2021
vlad-perevezentsev
force-pushed
the
error_handler
branch
from
November 26, 2021 00:02
9e0cb3e to
64160ca
Compare
oleksandr-pavlyk
force-pushed
the
error_handler
branch
4 times, most recently
from
November 30, 2021 18:47
6040ec4 to
021045d
Compare
oleksandr-pavlyk
previously approved these changes
Dec 1, 2021
oleksandr-pavlyk
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
PR history requires cleanup though.
Rename dpctl_async_error_handler to dpctl_error_handlers DPCTL_VERBOSITY env handling is introduced. Recognized values: none (default), error, info Made sure to run coverage tests with DPCTL_VERBOSITY=error The TestDPCTLSyclQueueInterface.CheckPropertyHandling tests captured error stream in its test. Rename error_handler_callback *error_handler to prevert collisions
oleksandr-pavlyk
force-pushed
the
error_handler
branch
from
December 1, 2021 22:36
d8a4839 to
3e0c061
Compare
oleksandr-pavlyk
approved these changes
Dec 1, 2021
oleksandr-pavlyk
left a comment
Contributor
There was a problem hiding this comment.
Summary of history rewriting:
First commit implements error_handler, renames error handler helper file, renames argument name for functions taking async handler callback.
Then there are commits using error_handler in individual dpct_sycl_*.cpp files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds two overloaded
error_handlerfunctions to pass an exception object and output an error.Change all functions in
dpctl_sycl_plaftorm_interface.cppto use theerror_handler.