- 
                Notifications
    You must be signed in to change notification settings 
- Fork 31
Implement error_handler function in libsyclinterface/helper #683
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
Implement error_handler function in libsyclinterface/helper #683
Conversation
9e0cb3e    to
    64160ca      
    Compare
  
    6040ec4    to
    021045d      
    Compare
  
    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!
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
d8a4839    to
    3e0c061      
    Compare
  
    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.
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 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.