Skip to content

Commit 199f12a

Browse files
JackAKirkJackAKirk
andauthored
[SYCL][UR] Map UR/PI adapter specific error code. (#9975)
detail/plugin.hpp in SYCL runtime relies on `PI_ERROR_PLUGIN_SPECIFIC_ERROR` here https://github.com/intel/llvm/blob/83f877975c97acdb38d84f94dc146571cd522e0e/sycl/source/detail/plugin.hpp#L119 Currently `UR_RESULT_ERROR_ADAPTER_SPECIFIC` is mapped to `PI_ERROR_UNKNOWN`. This PR fixes this. Signed-off-by: JackAKirk <[email protected]> Co-authored-by: JackAKirk <[email protected]>
1 parent b7ffbc7 commit 199f12a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/plugins/unified_runtime/pi2ur.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ static pi_result ur2piResult(ur_result_t urResult) {
4848
return PI_ERROR_BUILD_PROGRAM_FAILURE;
4949
case UR_RESULT_ERROR_UNINITIALIZED:
5050
return PI_ERROR_UNINITIALIZED;
51+
case UR_RESULT_ERROR_ADAPTER_SPECIFIC:
52+
return PI_ERROR_PLUGIN_SPECIFIC_ERROR;
5153
default:
5254
return PI_ERROR_UNKNOWN;
5355
};

0 commit comments

Comments
 (0)