Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 362b0e6

Browse files
committedSep 25, 2024·
WIP: workaround for oversized 2nd step panel workspace
1 parent 3cbefdb commit 362b0e6

File tree

1 file changed

+8
-3
lines changed
  • include/dlaf/eigensolver/reduction_to_band

1 file changed

+8
-3
lines changed
 

‎include/dlaf/eigensolver/reduction_to_band/ca-impl.h

+8-3
Original file line numberDiff line numberDiff line change
@@ -850,10 +850,15 @@ CARed2BandResult<T, D> CAReductionToBand<B, D, T>::call(comm::CommunicatorGrid&
850850
// copy - set - send
851851
ex::start_detached(ex::when_all(mat_a.read(ij_head), panel_heads.readwrite(idx_panel_head)) |
852852
di::transform(di::Policy<B>(), [=](const auto& head_in, auto&& head) {
853-
// TODO FIXME change copy and if possible just lower
853+
// TODO FIXME workaround for over-sized panel
854+
if (head_in.size() != head.size())
855+
tile::internal::set0(head);
856+
857+
// TODO FIXME change copy and if possible just upper
854858
// matrix::internal::copy(head_in, head);
855-
lapack::lacpy(blas::Uplo::General, head.size().rows(), head.size().cols(),
856-
head_in.ptr(), head_in.ld(), head.ptr(), head.ld());
859+
lapack::lacpy(blas::Uplo::General, head_in.size().rows(),
860+
head_in.size().cols(), head_in.ptr(), head_in.ld(),
861+
head.ptr(), head.ld());
857862
lapack::laset(blas::Uplo::Lower, head.size().rows() - 1,
858863
head.size().cols(), T(0), T(0), head.ptr({1, 0}),
859864
head.ld());

0 commit comments

Comments
 (0)
Please sign in to comment.