From a5ff7ee6d2ac10656a40cc6025a496189748b6de Mon Sep 17 00:00:00 2001 From: Seung Whan Chung Date: Fri, 6 Sep 2024 09:41:12 -0700 Subject: [PATCH] bug fix on Matrix::gather --- lib/linalg/Matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linalg/Matrix.cpp b/lib/linalg/Matrix.cpp index b318aa567..f1e165822 100644 --- a/lib/linalg/Matrix.cpp +++ b/lib/linalg/Matrix.cpp @@ -1094,7 +1094,7 @@ Matrix::gather() } double *d_new_mat = new double [new_size] {0.0}; - CAROM_VERIFY(MPI_Allgatherv(d_mat, d_alloc_size, MPI_DOUBLE, + CAROM_VERIFY(MPI_Allgatherv(d_mat, d_num_rows * d_num_cols, MPI_DOUBLE, d_new_mat, data_cnts, data_offsets, MPI_DOUBLE, MPI_COMM_WORLD) == MPI_SUCCESS);