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 - remove extra logic from __merge_sort_global_submitter::eval_nd_range_params

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
  • Loading branch information
SergeyKopienko committed Dec 20, 2024
1 parent e0388c4 commit 247dda9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,8 @@ struct __merge_sort_global_submitter<_IndexT,
const std::uint32_t __chunk = __is_cpu ? 32 : 4;
const std::size_t __steps = oneapi::dpl::__internal::__dpl_ceiling_div(__rng_size, __chunk);

// TODO required to evaluate this value based on available SLM size for each work-group.
_IndexT __base_diag_count = 32 * 1'024; // 32 Kb

while (__n_sorted <= __base_diag_count)
__n_sorted = __n_sorted * 2;
__base_diag_count = __n_sorted / 2;

_IndexT __steps_between_two_base_diags = oneapi::dpl::__internal::__dpl_ceiling_div(__steps, __base_diag_count);

return { __base_diag_count, __steps_between_two_base_diags, __chunk, __steps };
Expand Down

0 comments on commit 247dda9

Please sign in to comment.