Skip to content

Commit

Permalink
[SYCL] Fix try-catch block
Browse files Browse the repository at this point in the history
Signed-off-by: Hu, Peisen <peisen.hu@intel.com>
  • Loading branch information
HPS-1 committed Mar 5, 2024
1 parent b4563c4 commit 0ec13d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/source/detail/event_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ std::string event_impl::get_backend_info<info::platform::version>() const {
return Queue->getDeviceImplPtr()
->get_platform()
.get_info<info::platform::version>();
} catch () {
} catch (...) {
std::rethrow_exception(std::current_exception());
}
}
Expand All @@ -422,7 +422,7 @@ std::string event_impl::get_backend_info<info::device::version>() const {
if (QueueImplPtr Queue = MQueue.lock()) {
try {
return Queue->getDeviceImplPtr()->get_info<info::device::version>();
} catch () {
} catch (...) {
std::rethrow_exception(std::current_exception());
}
}
Expand Down

0 comments on commit 0ec13d6

Please sign in to comment.