Skip to content

Commit 06cb1b9

Browse files
authored
Merge pull request #1531 from wenju-he/opencl-CL_INVALID_PROGRAM
[OpenCL] map error CL_INVALID_PROGRAM/PROGRAM_EXECUTABLE
2 parents f3a8669 + 09cbf61 commit 06cb1b9

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)