Skip to content

[UR][OpenCL] Add missing mapping for CL_INVALID_KERNEL and CL_INVALID_KERNEL_DEFINITION to UR OpenCL adapter #18182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: sycl
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions unified-runtime/source/adapters/opencl/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ur_result_t mapCLErrorToUR(cl_int Result) {
case CL_INVALID_PROGRAM_EXECUTABLE:
return UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE;
case CL_INVALID_KERNEL_NAME:
case CL_INVALID_KERNEL_DEFINITION:
return UR_RESULT_ERROR_INVALID_KERNEL_NAME;
case CL_BUILD_PROGRAM_FAILURE:
return UR_RESULT_ERROR_PROGRAM_BUILD_FAILURE;
Expand Down Expand Up @@ -93,6 +94,8 @@ ur_result_t mapCLErrorToUR(cl_int Result) {
return UR_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_SIZE;
case CL_INVALID_SPEC_ID:
return UR_RESULT_ERROR_INVALID_SPEC_ID;
case CL_INVALID_KERNEL:
return UR_RESULT_ERROR_INVALID_KERNEL;
default:
return UR_RESULT_ERROR_UNKNOWN;
}
Expand Down
Loading