Skip to content

Commit

Permalink
MPI_Startall: avoid returning MPI_ERR_REQUEST on NULL requests and co…
Browse files Browse the repository at this point in the history
…unt = 0

Signed-off-by: Mikhail Kurnosov <[email protected]>
  • Loading branch information
mkurnosov committed Dec 26, 2023
1 parent e5dbcf8 commit 554a397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ompi/mpi/c/startall.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int MPI_Startall(int count, MPI_Request requests[])
if ( MPI_PARAM_CHECK ) {
int rc = MPI_SUCCESS;
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
if (NULL == requests) {
if ((NULL == requests) && (0 != count)) {
rc = MPI_ERR_REQUEST;
} else if (count < 0) {
rc = MPI_ERR_ARG;
Expand Down

0 comments on commit 554a397

Please sign in to comment.