diff --git a/include/oneapi/dpl/internal/binary_search_impl.h b/include/oneapi/dpl/internal/binary_search_impl.h index f57e9e0faf..d8fa53d68d 100644 --- a/include/oneapi/dpl/internal/binary_search_impl.h +++ b/include/oneapi/dpl/internal/binary_search_impl.h @@ -45,6 +45,11 @@ struct custom_brick : oneapi::dpl::unseq_backend::walk_scalar_base<_Range> T size; bool use_32bit_indexing; + custom_brick(Comp comp, T size, bool use_32bit_indexing) + : comp(comp), size(size), use_32bit_indexing(use_32bit_indexing) + { + } + template void search_impl(_ItemId idx, _Acc acc) const @@ -163,7 +168,7 @@ lower_bound_impl(__internal::__hetero_tag<_BackendTag>, Policy&& policy, InputIt __bknd::__parallel_for( _BackendTag{}, ::std::forward(policy), custom_brick{ - {}, comp, size, use_32bit_indexing}, + comp, size, use_32bit_indexing}, value_size, zip_vw) .__deferrable_wait(); return result + value_size; @@ -196,7 +201,7 @@ upper_bound_impl(__internal::__hetero_tag<_BackendTag>, Policy&& policy, InputIt __bknd::__parallel_for( _BackendTag{}, std::forward(policy), custom_brick{ - {}, comp, size, use_32bit_indexing}, + comp, size, use_32bit_indexing}, value_size, zip_vw) .__deferrable_wait(); return result + value_size; @@ -229,7 +234,7 @@ binary_search_impl(__internal::__hetero_tag<_BackendTag>, Policy&& policy, Input __bknd::__parallel_for( _BackendTag{}, std::forward(policy), custom_brick{ - {}, comp, size, use_32bit_indexing}, + comp, size, use_32bit_indexing}, value_size, zip_vw) .__deferrable_wait(); return result + value_size; diff --git a/include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h b/include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h index 8f8c81d653..94846618be 100644 --- a/include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h +++ b/include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h @@ -1986,7 +1986,7 @@ __pattern_shift_left(__hetero_tag<_BackendTag>, _ExecutionPolicy&& __exec, _Rang auto __brick = unseq_backend::walk2_vectors_or_scalars<_ExecutionPolicy, _Function, decltype(__src), decltype(__dst)>{ - {}, _Function{}, static_cast(__size_res)}; + _Function{}, static_cast(__size_res)}; oneapi::dpl::__par_backend_hetero::__parallel_for(_BackendTag{}, ::std::forward<_ExecutionPolicy>(__exec), __brick, __size_res, __src, __dst) diff --git a/include/oneapi/dpl/pstl/hetero/histogram_impl_hetero.h b/include/oneapi/dpl/pstl/hetero/histogram_impl_hetero.h index e4835971a8..937608bfc3 100644 --- a/include/oneapi/dpl/pstl/hetero/histogram_impl_hetero.h +++ b/include/oneapi/dpl/pstl/hetero/histogram_impl_hetero.h @@ -144,7 +144,7 @@ __pattern_histogram(__hetero_tag<_BackendTag>, _ExecutionPolicy&& __exec, _Rando auto __init_event = oneapi::dpl::__par_backend_hetero::__parallel_for( _BackendTag{}, oneapi::dpl::__par_backend_hetero::make_wrapped_policy<__hist_fill_zeros_wrapper>(__exec), unseq_backend::walk1_vector_or_scalar<_ExecutionPolicy, decltype(__fill_func), decltype(__bins)>{ - {}, __fill_func, static_cast(__num_bins)}, + __fill_func, static_cast(__num_bins)}, __num_bins, __bins); if (__n > 0)