Skip to content

Commit 5d88fc7

Browse files
committed
Merge branch 'aaron/clCTSKernelExecInfoFix' into aaron/clCTSFixMegaBranch
2 parents 690fef3 + c5fbda0 commit 5d88fc7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/adapters/opencl/kernel.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,14 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelSetExecInfo(
285285
return UR_RESULT_SUCCESS;
286286
}
287287
case UR_KERNEL_EXEC_INFO_CACHE_CONFIG: {
288-
/* Setting the cache config is unsupported in OpenCL */
289-
return UR_RESULT_ERROR_INVALID_ENUMERATION;
288+
// Setting the cache config is unsupported in OpenCL, but this is just a
289+
// hint.
290+
return UR_RESULT_SUCCESS;
290291
}
291292
case UR_KERNEL_EXEC_INFO_USM_PTRS: {
292293
CL_RETURN_ON_FAILURE(clSetKernelExecInfo(
293-
cl_adapter::cast<cl_kernel>(hKernel), propName, propSize, pPropValue));
294+
cl_adapter::cast<cl_kernel>(hKernel),
295+
CL_KERNEL_EXEC_INFO_USM_PTRS_INTEL, propSize, pPropValue));
294296
return UR_RESULT_SUCCESS;
295297
}
296298
default: {

0 commit comments

Comments
 (0)