Skip to content

Commit 025ad53

Browse files
[SYCL] Make message about UR error more informative (#17113)
Changes to make message about error more informative. i.e. before changes `failed: unexpected exception with message: 'UR error'; expression was: {Unknown expression after the reported line}` This message will show error code and its name after changes. --------- Co-authored-by: Sergey Semenov <[email protected]>
1 parent cce5dac commit 025ad53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/source/detail/error_handling/error_handling.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,9 @@ void handleErrorOrWarning(ur_result_t Error, const device_impl &DeviceImpl,
466466

467467
default:
468468
throw detail::set_ur_error(
469-
exception(make_error_code(errc::runtime), "UR error"), Error);
469+
exception(make_error_code(errc::runtime),
470+
"UR error: " + sycl::detail::codeToString(Error)),
471+
Error);
470472
}
471473
}
472474

0 commit comments

Comments
 (0)