Skip to content

Commit

Permalink
Fix review comments: __current_iters_per_work_item is not required
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Aug 9, 2024
1 parent b2af0e8 commit 4922f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1186,9 +1186,9 @@ struct __parallel_find_or_nd_range_tuner<oneapi::dpl::__internal::__device_backe

if (__iters_per_work_item < __desired_iters_per_work_item)
{
auto __k = __desired_iters_per_work_item / __iters_per_work_item;
__k = std::pow(2, std::ceil(std::log2(__k)));
__n_groups = (std::size_t)std::ceil(__n_groups / __k);
auto __k = oneapi::dpl::__internal::__dpl_bit_ceil(
(std::size_t)std::ceil(__desired_iters_per_work_item / __iters_per_work_item));
__n_groups = oneapi::dpl::__internal::__dpl_ceiling_div(__n_groups, __k);

assert(oneapi::dpl::__internal::__dpl_ceiling_div(__rng_n, __n_groups * __wgroup_size) <=
__desired_iters_per_work_item);
Expand Down

0 comments on commit 4922f46

Please sign in to comment.