Skip to content

Commit 554a397

Browse files
committed
MPI_Startall: avoid returning MPI_ERR_REQUEST on NULL requests and count = 0
Signed-off-by: Mikhail Kurnosov <mkurnosov@gmail.com>
1 parent e5dbcf8 commit 554a397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpi/c/startall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int MPI_Startall(int count, MPI_Request requests[])
5959
if ( MPI_PARAM_CHECK ) {
6060
int rc = MPI_SUCCESS;
6161
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
62-
if (NULL == requests) {
62+
if ((NULL == requests) && (0 != count)) {
6363
rc = MPI_ERR_REQUEST;
6464
} else if (count < 0) {
6565
rc = MPI_ERR_ARG;

0 commit comments

Comments
 (0)