Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h - fix __parall…
Browse files Browse the repository at this point in the history
…el_partial_sort without wait/get
  • Loading branch information
Sergey Kopienko committed Mar 21, 2024
1 parent cdffb29 commit c1baf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ __pattern_partial_sort_copy(__hetero_tag<_BackendTag> __tag, _ExecutionPolicy&&
__par_backend_hetero::make_iter_mode<__par_backend_hetero::access_mode::read_write>(__buf_first),
__par_backend_hetero::make_iter_mode<__par_backend_hetero::access_mode::read_write>(__buf_mid),
__par_backend_hetero::make_iter_mode<__par_backend_hetero::access_mode::read_write>(__buf_last), __comp)
.wait(); // TODO - check if wait really required here
.wait();

return __pattern_walk2(
__tag, __par_backend_hetero::make_wrapped_policy<__copy_back>(::std::forward<_ExecutionPolicy>(__exec)),
Expand Down

0 comments on commit c1baf51

Please sign in to comment.