Skip to content

Commit

Permalink
Remove useless const qualifiers from helper function return types.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongreig committed Nov 6, 2023
1 parent 3029501 commit c3b5e86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/adapters/opencl/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ convertURProfilingInfoToCL(const ur_profiling_info_t PropName) {
}
}

const ur_command_t
ur_command_t
convertCLCommandTypeToUR(const cl_command_type &CommandType) {
/* Note: the following enums don't have a CL equivalent:
UR_COMMAND_USM_FILL_2D
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/opencl/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/opencl/usm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c3b5e86

Please sign in to comment.