Skip to content

Commit 3cc71b0

Browse files
aarongreigkbenzie
andauthored
[UR] Bump main tag to 0cbacd8 (#12681)
Pulls in changes from oneapi-src/unified-runtime#1212 --------- Co-authored-by: Kenneth Benzie (Benie) <[email protected]>
1 parent 29230c8 commit 3cc71b0

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
100100
endfunction()
101101

102102
set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git")
103-
# commit 1baed0ba696d494a82769366f137e9ddd8af3001
104-
# Merge: 00ca0daa e6dc6d9a
105-
# Author: Piotr Balcer <piotr.balcer@intel.com>
106-
# Date: Wed Jul 3 13:48:27 2024 +0200
107-
# Merge pull request #1771 from igchor/level_zero_v2_dispatcher
108-
# [L0] Initial version of queue dispatcher
109-
set(UNIFIED_RUNTIME_TAG 1baed0ba696d494a82769366f137e9ddd8af3001)
103+
# commit 0cbacd8a0844acb64091ecbb0c7d6a7df1b6160e
104+
# Merge: 022df8ac 2f121cd8
105+
# Author: Kenneth Benzie (Benie) <k.benzie@codeplay.com>
106+
# Date: Thu Jul 4 10:37:58 2024 +0100
107+
# Merge pull request #1212 from aarongreig/aaron/specMotivatedRefactors
108+
# Batch adapter changes: spec motivated refactors
109+
set(UNIFIED_RUNTIME_TAG 0cbacd8a0844acb64091ecbb0c7d6a7df1b6160e)
110110

111111
fetch_adapter_source(level_zero
112112
${UNIFIED_RUNTIME_REPO}

sycl/plugins/unified_runtime/pi2ur.hpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static pi_result ur2piResult(ur_result_t urResult) {
122122
return PI_ERROR_INVALID_BINARY;
123123
case UR_RESULT_ERROR_INVALID_GLOBAL_NAME:
124124
return PI_ERROR_INVALID_VALUE;
125-
case UR_RESULT_ERROR_INVALID_FUNCTION_NAME:
125+
case UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE:
126126
return PI_ERROR_FUNCTION_ADDRESS_IS_NOT_AVAILABLE;
127127
case UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION:
128128
return PI_ERROR_INVALID_WORK_DIMENSION;
@@ -2453,18 +2453,8 @@ inline pi_result piKernelGetInfo(pi_kernel Kernel, pi_kernel_info ParamName,
24532453
break;
24542454
}
24552455
case PI_KERNEL_INFO_NUM_ARGS: {
2456-
size_t NumArgs = 0;
2457-
HANDLE_ERRORS(urKernelGetInfo(UrKernel, UR_KERNEL_INFO_NUM_ARGS,
2458-
sizeof(NumArgs), &NumArgs, nullptr));
2459-
if (ParamValueSizeRet) {
2460-
*ParamValueSizeRet = sizeof(uint32_t);
2461-
}
2462-
if (ParamValue) {
2463-
if (ParamValueSize != sizeof(uint32_t))
2464-
return PI_ERROR_INVALID_BUFFER_SIZE;
2465-
*static_cast<uint32_t *>(ParamValue) = static_cast<uint32_t>(NumArgs);
2466-
}
2467-
return PI_SUCCESS;
2456+
UrParamName = UR_KERNEL_INFO_NUM_ARGS;
2457+
break;
24682458
}
24692459
case PI_KERNEL_INFO_REFERENCE_COUNT: {
24702460
UrParamName = UR_KERNEL_INFO_REFERENCE_COUNT;

0 commit comments

Comments
 (0)