Skip to content

Commit

Permalink
Remove unneeded map to UR
Browse files Browse the repository at this point in the history
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
  • Loading branch information
steffenlarsen committed Mar 15, 2024
1 parent cd97612 commit 4dc773c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/adapters/opencl/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueReadHostPipe(
cl_ext::EnqueueReadHostPipeName, &FuncPtr));

if (FuncPtr) {
CL_RETURN_ON_FAILURE(mapCLErrorToUR(
CL_RETURN_ON_FAILURE(
FuncPtr(cl_adapter::cast<cl_command_queue>(hQueue),
cl_adapter::cast<cl_program>(hProgram), pipe_symbol, blocking,
pDst, size, numEventsInWaitList,
cl_adapter::cast<const cl_event *>(phEventWaitList),
cl_adapter::cast<cl_event *>(phEvent))));
cl_adapter::cast<cl_event *>(phEvent)));
}

return UR_RESULT_SUCCESS;
Expand All @@ -441,12 +441,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueWriteHostPipe(
cl_ext::EnqueueWriteHostPipeName, &FuncPtr));

if (FuncPtr) {
CL_RETURN_ON_FAILURE(mapCLErrorToUR(
CL_RETURN_ON_FAILURE(
FuncPtr(cl_adapter::cast<cl_command_queue>(hQueue),
cl_adapter::cast<cl_program>(hProgram), pipe_symbol, blocking,
pSrc, size, numEventsInWaitList,
cl_adapter::cast<const cl_event *>(phEventWaitList),
cl_adapter::cast<cl_event *>(phEvent))));
cl_adapter::cast<cl_event *>(phEvent)));
}

return UR_RESULT_SUCCESS;
Expand Down

0 comments on commit 4dc773c

Please sign in to comment.