Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge_sort…
Browse files Browse the repository at this point in the history
….h - rename __find_or_eval_sp to __lookup_sp

Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Dec 22, 2024
1 parent 46d6a38 commit 7251041
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ struct __merge_sort_global_submitter<_IndexT, __internal::__optional_kernel_name

template <typename DropViews, typename _Compare, typename _BaseDiagonalsSPStorage>
inline static _merge_split_point_t
__find_or_eval_sp(const std::size_t __global_idx, const nd_range_params& __nd_range_params,
__lookup_sp(const std::size_t __global_idx, const nd_range_params& __nd_range_params,
const WorkDataArea& __data_area, const DropViews& __views, _Compare __comp,
_BaseDiagonalsSPStorage __base_diagonals_sp_global_ptr)
{
Expand Down Expand Up @@ -516,18 +516,16 @@ struct __merge_sort_global_submitter<_IndexT, __internal::__optional_kernel_name
{
DropViews __views(__dst, __data_area);

const auto __sp =
__find_or_eval_sp(__linear_id /* __global_idx */, __nd_range_params, __data_area,
__views, __comp, __base_diagonals_sp_global_ptr);
const auto __sp = __lookup_sp(__linear_id /* __global_idx */, __nd_range_params,
__data_area, __views, __comp, __base_diagonals_sp_global_ptr);
__serial_merge_w(__nd_range_params, __data_area, __views, __rng, __sp, __comp);
}
else
{
DropViews __views(__rng, __data_area);

const auto __sp =
__find_or_eval_sp(__linear_id /* __global_idx */, __nd_range_params, __data_area,
__views, __comp, __base_diagonals_sp_global_ptr);
const auto __sp = __lookup_sp(__linear_id /* __global_idx */, __nd_range_params,
__data_area, __views, __comp, __base_diagonals_sp_global_ptr);
__serial_merge_w(__nd_range_params, __data_area, __views, __dst, __sp, __comp);
}
}
Expand Down

0 comments on commit 7251041

Please sign in to comment.