Skip to content

Commit f17523d

Browse files
authored
Forward execution policy in __pattern_walk1 of hetero backend (#2121)
Signed-off-by: Matthew Michel <[email protected]>
1 parent 20fa68c commit f17523d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ __pattern_walk1(__hetero_tag<_BackendTag>, _ExecutionPolicy&& __exec, _ForwardIt
5757
auto __buf = __keep(__first, __last);
5858

5959
oneapi::dpl::__par_backend_hetero::__parallel_for(
60-
_BackendTag{}, __exec,
60+
_BackendTag{}, std::forward<_ExecutionPolicy>(__exec),
6161
unseq_backend::walk1_vector_or_scalar<_ExecutionPolicy, _Function, decltype(__buf.all_view())>{
6262
__f, static_cast<std::size_t>(__n)},
6363
__n, __buf.all_view())

0 commit comments

Comments
 (0)