Skip to content

Commit

Permalink
add grain size todo
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
  • Loading branch information
danhoeflinger committed Dec 20, 2024
1 parent e7d3952 commit e95689d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/oneapi/dpl/pstl/algorithm_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4342,6 +4342,7 @@ __pattern_histogram(__parallel_tag<_IsVector>, _ExecutionPolicy&& __exec, _Rando
oneapi::dpl::__internal::__make_thread_enumerable_storage(__num_bins, _HistogramValueT{0});

//main histogram loop
//TODO: add defaulted grain-size option for __parallel_for and use larger one here to account for overhead
__par_backend::__parallel_for(__backend_tag{}, ::std::forward<_ExecutionPolicy>(__exec), __first, __last,
[__func, &__thread_enumerable_storage](_RandomAccessIterator1 __first_local,
_RandomAccessIterator1 __last_local) {
Expand Down

0 comments on commit e95689d

Please sign in to comment.