Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rasolca committed Jul 19, 2023
1 parent a105e6a commit c60310a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/dlaf/eigensolver/band_to_tridiag/mc.h
Original file line number Diff line number Diff line change
Expand Up @@ -718,16 +718,16 @@ TridiagResult<T, Device::CPU> BandToTridiag<Backend::MC, D, T>::call_L(
ex::unique_any_sender<> prev_dep = ex::just();
// Copy the band matrix
for (SizeType k = 0; k < n; ++k) {
SizeType nr_release = nb / b;
SizeType nr_releases = nb / b;
ex::unique_any_sender<> dep = copy_diag(k * nb, mat_a.read(GlobalTileIndex{k, k}));
if (k < n - 1) {
dep = copy_offdiag(k * nb, ex::when_all(std::move(dep), mat_a.read(GlobalTileIndex{k + 1, k})));
}
else {
// Add one to make sure to unlock the last step of the first sweep.
nr_release = ceilDiv(size - k * nb, b) + 1;
nr_releases = ceilDiv(size - k * nb, b) + 1;
}
prev_dep = ex::when_all(ex::just(nr_release, sem), std::move(prev_dep), std::move(dep)) |
prev_dep = ex::when_all(ex::just(nr_releases, sem), std::move(prev_dep), std::move(dep)) |
dlaf::internal::transform(policy_hp, [](SizeType nr, auto&& sem) { sem->release(nr); });
}
ex::start_detached(std::move(prev_dep));
Expand Down

0 comments on commit c60310a

Please sign in to comment.