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 - fix an error in tests

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
  • Loading branch information
SergeyKopienko committed Dec 22, 2024
1 parent 98815fb commit 4574d07
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ struct __merge_sort_global_submitter<_IndexT, __internal::__optional_kernel_name

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

// TODO required to revrite this without loop
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 4574d07

Please sign in to comment.