Skip to content

Commit

Permalink
bug fix in communication in QR
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoppe committed Jan 21, 2025
1 parent d0ac81a commit f49ffd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions heat/core/linalg/pd.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ def _in_place_qr_with_q_only(A: DNDarray, procs_to_merge: int = 2) -> None:

if A.comm.rank == i:
# orthogonalize the current block of columns by utilizing PyTorch QR
A.larray, R = torch.linalg.qr(A.larray, mode="reduced")
del R
Q, R = torch.linalg.qr(A.larray, mode="reduced")
A.larray = Q.contiguous()
del Q, R
if i < nprocs - 1:
Q_buf = A.larray

Expand Down

0 comments on commit f49ffd1

Please sign in to comment.