Skip to content

Commit 2e2010e

Browse files
authored
[UR] Add DEVICE_NOT_AVAILABLE UR error code and PI translation for same. (#13206)
1 parent 38e663e commit 2e2010e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
8282
endfunction()
8383

8484
set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git")
85-
# commit 0816206d9e863b88feadf9139c9bb829dcc0d2de
86-
# Merge: 0c0f48db 46f69b9f
85+
# commit 3a7d00f136cf5d69e61bf1e235393dfc56f55525
86+
# Merge: cd5ad7b5 9e5c6203
8787
# Author: aarongreig <[email protected]>
88-
# Date: Mon Apr 1 10:22:25 2024 +0100
89-
# Merge pull request #1460 from hdelan/remove-unused-prototypes
90-
# [HIP][CUDA] Remove function prototypes from enqueue.hpp
91-
set(UNIFIED_RUNTIME_TAG 0816206d9e863b88feadf9139c9bb829dcc0d2de)
88+
# Date: Mon Apr 1 15:16:30 2024 +0100
89+
# Merge pull request #1485 from aarongreig/aaron/addDeviceNotAvailableErrC
90+
# Add UR_ERROR_DEVICE_NOT_AVAILABLE and appropriate translation for CL.
91+
set(UNIFIED_RUNTIME_TAG 3a7d00f136cf5d69e61bf1e235393dfc56f55525)
9292

9393
if(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO)
9494
set(UNIFIED_RUNTIME_REPO "${SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO}")

sycl/plugins/unified_runtime/pi2ur.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ static pi_result ur2piResult(ur_result_t urResult) {
5757
return PI_ERROR_INVALID_DEVICE;
5858
case UR_RESULT_ERROR_DEVICE_REQUIRES_RESET:
5959
case UR_RESULT_ERROR_DEVICE_LOST:
60+
case UR_RESULT_ERROR_DEVICE_NOT_AVAILABLE:
6061
return PI_ERROR_DEVICE_NOT_AVAILABLE;
6162
case UR_RESULT_ERROR_DEVICE_PARTITION_FAILED:
6263
return PI_ERROR_DEVICE_PARTITION_FAILED;

0 commit comments

Comments
 (0)