Skip to content

Commit dd2fec7

Browse files
committed
[UR][L0] Remove UR_DFAILURE from ZE2UR_CALL_THROWS
UR_DFAILURE aborts program before throwing an exception making it impossible to handle it using try catch.
1 parent 6ad86b7 commit dd2fec7

File tree

1 file changed

+0
-2
lines changed
  • unified-runtime/source/adapters/level_zero

1 file changed

+0
-2
lines changed

unified-runtime/source/adapters/level_zero/common.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,6 @@ void zeParseError(ze_result_t ZeError, const char *&ErrorString);
219219
{ \
220220
ze_result_t ZeResult = ZeName ZeArgs; \
221221
if (auto Result = ZeCall().doCall(ZeResult, #ZeName, #ZeArgs, true)) { \
222-
UR_DFAILURE("failed ZE call " #ZeName " with " #ZeArgs ", with result:" \
223-
<< Result); \
224222
throw ze2urResult(Result); \
225223
} \
226224
}

0 commit comments

Comments
 (0)