Skip to content

Commit 1da92ce

Browse files
committed
Try not using the special parallel pattern
1 parent 11035c5 commit 1da92ce

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

include/oneapi/dpl/pstl/algorithm_impl.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,16 +1443,15 @@ __pattern_bounded_copy_if(__parallel_tag<_IsVector>, _ExecutionPolicy&& __exec,
14431443
return __internal::__brick_compute_mask(__first + __i, __len, __pred, __mask + __i, _IsVector{}).first;
14441444
},
14451445
std::plus<_DifferenceType>(), // Combine
1446-
[=](_DifferenceType __i, _DifferenceType __len, _DifferenceType __initial,
1447-
_DifferenceType __len_out) { // Scan
1446+
[=](_DifferenceType __i, _DifferenceType __len, _DifferenceType __initial) { // Scan
14481447
return __internal::__brick_bounded_copy_by_mask(
1449-
__first + __i, __len, __result + __initial, __len_out, __mask + __i,
1448+
__first + __i, __len, __result + __initial, __n_out - initial, __mask + __i,
14501449
[](_RandomAccessIterator1 __x, _RandomAccessIterator2 __z) { *__z = *__x; }, _IsVector{});
14511450
},
14521451
[&__res_in, &__res_out](auto __total_in, auto __total_out) { // Apex
14531452
__res_in = __total_in; __res_out = __total_out;
1454-
},
1455-
__n_out);
1453+
}//,
1454+
/*__n_out*/);
14561455
return std::make_pair(__first + __res_in, __result + __res_out);
14571456
});
14581457
}

0 commit comments

Comments
 (0)