Skip to content

Commit

Permalink
Remove the ensure_started not needed anymore
Browse files Browse the repository at this point in the history
as the release happens in the unwrap now.
  • Loading branch information
aurianer committed Jul 31, 2023
1 parent d44a043 commit 7c4321b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions include/dlaf/eigensolver/tridiag_solver/merge.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,7 @@ auto calcTolerance(const SizeType i_begin, const SizeType i_end, Matrix<const T,
};

return ex::when_all(std::move(dmax), std::move(zmax)) |
di::transform(di::Policy<Backend::MC>(), std::move(tol_fn)) |
// TODO: This releases the tiles that are kept in the operation state.
// This is a temporary fix and needs to be replaced by a different
// adaptor or different lifetime guarantees. This is tracked in
// https://github.com/pika-org/pika/issues/479.
ex::ensure_started();
di::transform(di::Policy<Backend::MC>(), std::move(tol_fn));
}

// The index array `out_ptr` holds the indices of elements of `c_ptr` that order it such that
Expand Down Expand Up @@ -442,12 +437,7 @@ auto applyDeflation(const SizeType i_begin, const SizeType i_end, RhoSender&& rh
ex::when_all_vector(tc.read(index)), ex::when_all_vector(tc.readwrite(d)),
ex::when_all_vector(tc.readwrite(z)), ex::when_all_vector(tc.readwrite(c)));

return di::transform(di::Policy<Backend::MC>(), std::move(deflate_fn), std::move(sender)) |
// TODO: This releases the tiles that are kept in the operation state.
// This is a temporary fix and needs to be replaced by a different
// adaptor or different lifetime guarantees. This is tracked in
// https://github.com/pika-org/pika/issues/479.
ex::ensure_started();
return di::transform(di::Policy<Backend::MC>(), std::move(deflate_fn), std::move(sender));
}

// z is an input whose values are destroyed by this call (input + workspace)
Expand Down

0 comments on commit 7c4321b

Please sign in to comment.