-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Add error handling for sycl::event::get_profiling_info() #5623
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] Add error handling for sycl::event::get_profiling_info() #5623
Conversation
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.
As mentioned in the comment, I think it would be safer to check early and use that during checks. Otherwise we could have queue disappear before we do profiling, which would allow profiling calls even if the queue didn't have it enabled.
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.
Just two more suggestions, then I think I am happy with it!
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.
Good stuff! Thanks for addressing my concerns. LGTM.
I'll investigate what is wrong with llvm-test-suite/Plugin/level_zero_queue_profiling.cpp |
/verify with intel/llvm-test-suite#863 |
llvm-test-suite/Plugin/level_zero_queue_profiling.cpp changed. PR in intel/llvm-test-suite is approved. Changes passed verification. |
/verify with intel/llvm-test-suite#863 |
/verify with intel/llvm-test-suite#863 |
/verify with intel/llvm-test-suite#863 |
/verify with intel/llvm-test-suite#863 |
@steffenlarsen could you please approve PR? Nothing except clang format has changed. |
/verify with intel/llvm-test-suite#863 |
/verify with intel/llvm-test-suite#863 |
@steffenlarsen Please, take a look on that fix. I added skips for HIP and CUDA backends in my unittests. |
/verify with intel/llvm-test-suite#863 |
/verify with intel/llvm-test-suite#863 |
Some tests, which are failing, was fixed in related PR to intel/llvm-test-suite link to PR |
This patch change test level_zero_queue_profiling.cpp because of changes, implemented by intel/llvm#5623
This patch change test level_zero_queue_profiling.cpp because of changes, implemented by intel#5623
This patch implements a throwing of
sycl::exception
ifsycl::event::get_profiling_info()
called whensycl::queue
does not have aproperty::queue::enable_profiling
in itssycl::property_list
.This PR fixes #5574