diff --git a/source/adapters/opencl/event.cpp b/source/adapters/opencl/event.cpp index 44862f319f..87f1f58f1a 100644 --- a/source/adapters/opencl/event.cpp +++ b/source/adapters/opencl/event.cpp @@ -54,8 +54,7 @@ convertURProfilingInfoToCL(const ur_profiling_info_t PropName) { } } -const ur_command_t -convertCLCommandTypeToUR(const cl_command_type &CommandType) { +ur_command_t convertCLCommandTypeToUR(const cl_command_type &CommandType) { /* Note: the following enums don't have a CL equivalent: UR_COMMAND_USM_FILL_2D UR_COMMAND_USM_MEMCPY_2D diff --git a/source/adapters/opencl/queue.cpp b/source/adapters/opencl/queue.cpp index 163d283651..4a39a91ef5 100644 --- a/source/adapters/opencl/queue.cpp +++ b/source/adapters/opencl/queue.cpp @@ -49,7 +49,7 @@ convertURQueuePropertiesToCL(const ur_queue_properties_t *URQueueProperties) { return CLCommandQueueProperties; } -const ur_queue_flags_t +ur_queue_flags_t mapCLQueuePropsToUR(const cl_command_queue_properties &Properties) { ur_queue_flags_t Flags = 0; if (Properties & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) { diff --git a/source/adapters/opencl/usm.cpp b/source/adapters/opencl/usm.cpp index a910a39da5..5d46aec2ef 100644 --- a/source/adapters/opencl/usm.cpp +++ b/source/adapters/opencl/usm.cpp @@ -486,7 +486,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMMemcpy2D( return UR_RESULT_SUCCESS; } -const ur_usm_type_t +ur_usm_type_t mapCLUSMTypeToUR(const cl_unified_shared_memory_type_intel &Type) { switch (Type) { case CL_MEM_TYPE_HOST_INTEL: