Skip to content

Commit a0a999e

Browse files
committed
coll/base: fix ompi_coll_base_allgatherv_intra_basic_default() with MPI_IN_PLACE
1 parent b8a1ffb commit a0a999e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/coll/base/coll_base_allgatherv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ ompi_coll_base_allgatherv_intra_basic_default(const void *sbuf, int scount,
629629
for (i = 0; i < rank; ++i) {
630630
send_buf += ((ptrdiff_t)rcounts[i] * extent);
631631
}
632+
scount = rcounts[rank];
632633
} else {
633634
send_buf = (char*)sbuf;
634635
send_type = sdtype;

0 commit comments

Comments
 (0)