Skip to content

Commit 34b764c

Browse files
committed
fix MPI_Sendrecv_replace
do ignore the status returned by opal_convertor_pack() since it is *not* MPI_SUCCESS in case of success. This fixes a regression introduced in 0b38190 Refs. #8907 Thanks Lisandro Dalcin for reporting this issue. Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 9f74df9 commit 34b764c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ompi/mpi/c/sendrecv_replace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ int MPI_Sendrecv_replace(void * buf, int count, MPI_Datatype datatype,
131131
}
132132
max_data = packed_size;
133133
iov_count = 1;
134-
rc = opal_convertor_pack(&convertor, &iov, &iov_count, &max_data);
135-
if(OMPI_SUCCESS != rc) {
136-
goto cleanup_and_return;
137-
}
134+
(void)opal_convertor_pack(&convertor, &iov, &iov_count, &max_data);
138135

139136
/* receive into the buffer */
140137
rc = MCA_PML_CALL(irecv(buf, count, datatype,

0 commit comments

Comments
 (0)