Skip to content

Commit a669736

Browse files
aarongreigkbenzie
authored andcommitted
[UR] Add DEVICE_NOT_AVAILABLE UR error code and PI translation for same. (intel#13206)
1 parent 30c1495 commit a669736

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
5757
include(FetchContent)
5858

5959
set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git")
60-
# commit 40b21ccd5fa9b636f56bbaed8d66cacc5dd32454
60+
# commit 74a8f047563d3528fccbf87cd729ceb3dcad6e1d
6161
# Author: aarongreig <[email protected]>
62-
# Date: Mon Apr 1 10:22:25 2024 +0100
63-
# Merge pull request #1460 from hdelan/remove-unused-prototypes
64-
# [HIP][CUDA] Remove function prototypes from enqueue.hpp
65-
set(UNIFIED_RUNTIME_TAG 40b21ccd5fa9b636f56bbaed8d66cacc5dd32454)
62+
# Date: Mon Apr 1 15:16:30 2024 +0100
63+
# Merge pull request #1485 from aarongreig/aaron/addDeviceNotAvailableErrC
64+
# Add UR_ERROR_DEVICE_NOT_AVAILABLE and appropriate translation for CL.
65+
set(UNIFIED_RUNTIME_TAG 74a8f047563d3528fccbf87cd729ceb3dcad6e1d)
6666

6767
if(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO)
6868
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)