Skip to content

Commit

Permalink
bug fix on Matrix::gather
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Sep 6, 2024
1 parent ece2946 commit a5ff7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linalg/Matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a5ff7ee

Please sign in to comment.