Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit abf74c6

Browse files
authored
Merge pull request #1285 from ggouaillardet/topic/v2.x/ompi_coll_base_allgatherv_intra_basic_default
v2.x: fix ompi_coll_base_allgatherv_intra_basic_default
2 parents e5a8612 + 2ae10a5 commit abf74c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/coll/base/coll_base_allgatherv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,14 @@ ompi_coll_base_allgatherv_intra_basic_default(const void *sbuf, int scount,
625625
for (i = 0; i < rank; ++i) {
626626
send_buf += ((ptrdiff_t)rcounts[i] * extent);
627627
}
628+
scount = rcounts[rank];
628629
} else {
629630
send_buf = (char*)sbuf;
630631
send_type = sdtype;
631632
}
632633

633634
err = comm->c_coll.coll_gatherv(send_buf,
634-
rcounts[rank], send_type,rbuf,
635+
scount, send_type,rbuf,
635636
rcounts, disps, rdtype, 0,
636637
comm, comm->c_coll.coll_gatherv_module);
637638
if (MPI_SUCCESS != err) {

0 commit comments

Comments
 (0)