Skip to content

Commit 09cbf61

Browse files
committed
[OpenCL] map error CL_INVALID_PROGRAM/PROGRAM_EXECUTABLE
Fix UR_RESULT_ERROR_UNKNOWN is returned for CL_INVALID_PROGRAM and UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE.
1 parent 717791b commit 09cbf61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/adapters/opencl/common.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ ur_result_t mapCLErrorToUR(cl_int Result) {
4646
return UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST;
4747
case CL_INVALID_BINARY:
4848
return UR_RESULT_ERROR_INVALID_BINARY;
49+
case CL_INVALID_PROGRAM:
50+
return UR_RESULT_ERROR_INVALID_PROGRAM;
51+
case CL_INVALID_PROGRAM_EXECUTABLE:
52+
return UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE;
4953
case CL_INVALID_KERNEL_NAME:
5054
return UR_RESULT_ERROR_INVALID_KERNEL_NAME;
5155
case CL_BUILD_PROGRAM_FAILURE:

0 commit comments

Comments
 (0)