Skip to content

Commit 23e98bf

Browse files
committed
Fix the segmentation logic for gather with MPI_IN_PLACE.
Signed-off-by: George Bosilca <[email protected]>
1 parent f4d106c commit 23e98bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/coll/tuned/coll_tuned_decision_fixed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ int ompi_coll_tuned_gather_intra_dec_fixed(const void *sbuf, int scount,
730730
rank = ompi_comm_rank(comm);
731731

732732
/* Determine block size */
733-
if (rank == root) {
733+
if ( (rank == root) || (MPI_IN_PLACE == sbuf) ) {
734734
ompi_datatype_type_size(rdtype, &dsize);
735735
block_size = dsize * (ptrdiff_t)rcount;
736736
} else {

0 commit comments

Comments
 (0)