Skip to content

Commit

Permalink
added mpi_request_null checks for test_/wait_xxx
Browse files Browse the repository at this point in the history
Signed-off-by: HawkmoonEternal <domi.huber@tum.de>
  • Loading branch information
HawkmoonEternal committed May 6, 2024
1 parent 4890203 commit da18f8e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ompi/mpi/c/testall.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ int MPI_Testall(int count, MPI_Request requests[], int *flag,
}
if (&ompi_request_empty == requests[i]) {
continue;
} else if (&ompi_request_null == requests[i]) {
continue;
} else if (NULL == requests[i]->req_mpi_object.comm) {
continue;
} else if (NULL == check_req) {
Expand Down
2 changes: 2 additions & 0 deletions ompi/mpi/c/testany.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ int MPI_Testany(int count, MPI_Request requests[], int *indx, int *completed, MP
}
if (&ompi_request_empty == requests[i]) {
continue;
} else if (&ompi_request_null == requests[i]) {
continue;
} else if (NULL == requests[i]->req_mpi_object.comm) {
continue;
} else if (NULL == check_req) {
Expand Down
2 changes: 2 additions & 0 deletions ompi/mpi/c/testsome.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ int MPI_Testsome(int incount, MPI_Request requests[],
}
if (&ompi_request_empty == requests[indx]) {
continue;
} else if (&ompi_request_null == requests[indx]) {
continue;
} else if (NULL == requests[indx]->req_mpi_object.comm) {
continue;
} else if (NULL == check_req) {
Expand Down
2 changes: 2 additions & 0 deletions ompi/mpi/c/waitall.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ int MPI_Waitall(int count, MPI_Request requests[], MPI_Status statuses[])
}
if (&ompi_request_empty == requests[i]) {
continue;
} else if (&ompi_request_null == requests[i]) {
continue;
} else if (NULL == requests[i]->req_mpi_object.comm) {
continue;
} else if (NULL == check_req) {
Expand Down
2 changes: 2 additions & 0 deletions ompi/mpi/c/waitany.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ int MPI_Waitany(int count, MPI_Request requests[], int *indx, MPI_Status *status
}
if (requests[i] == &ompi_request_empty) {
continue;
} else if (&ompi_request_null == requests[i]) {
continue;
} else if (NULL == requests[i]->req_mpi_object.comm) {
continue;
} else if (NULL == check_req) {
Expand Down
2 changes: 2 additions & 0 deletions ompi/mpi/c/waitsome.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ int MPI_Waitsome(int incount, MPI_Request requests[],
}
if (&ompi_request_empty == requests[indx]) {
continue;
} else if (&ompi_request_null == requests[indx]) {
continue;
} else if (NULL == requests[indx]->req_mpi_object.comm) {
continue;
} else if (NULL == check_req) {
Expand Down

0 comments on commit da18f8e

Please sign in to comment.