Skip to content

Commit 5e9fde8

Browse files
authored
Merge pull request #10543 from devreal/mpi-start-part-inactive
Start[all] fixes: parameter check and return code
2 parents 4d879ff + 0c89805 commit 5e9fde8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ompi/mpi/c/start.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,14 @@ int MPI_Start(MPI_Request *request)
7878
case OMPI_REQUEST_PML:
7979
case OMPI_REQUEST_COLL:
8080
case OMPI_REQUEST_PART:
81-
if ( MPI_PARAM_CHECK && !(*request)->req_persistent) {
81+
if ( MPI_PARAM_CHECK && !((*request)->req_persistent &&
82+
OMPI_REQUEST_INACTIVE == (*request)->req_state)) {
8283
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_REQUEST, FUNC_NAME);
8384
}
8485

8586
ret = (*request)->req_start(1, request);
8687

87-
return ret;
88+
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(ret, FUNC_NAME);
8889

8990
case OMPI_REQUEST_NOOP:
9091
/**

ompi/mpi/c/startall.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ int MPI_Startall(int count, MPI_Request requests[])
6969
! requests[i]->req_persistent ||
7070
(OMPI_REQUEST_PML != requests[i]->req_type &&
7171
OMPI_REQUEST_COLL != requests[i]->req_type &&
72+
OMPI_REQUEST_PART != requests[i]->req_type &&
7273
OMPI_REQUEST_NOOP != requests[i]->req_type)) {
7374
rc = MPI_ERR_REQUEST;
7475
break;

0 commit comments

Comments
 (0)