Skip to content

Commit 88bb627

Browse files
authored
Merge pull request #10552 from devreal/mpi-start-part-inactive-v4.1.x
Start fixes: parameter check and return code [v4.1.x]
2 parents bbcab84 + 31f7f77 commit 88bb627

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mpi/c/start.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ int MPI_Start(MPI_Request *request)
6868
switch((*request)->req_type) {
6969
case OMPI_REQUEST_PML:
7070
case OMPI_REQUEST_COLL:
71-
if ( MPI_PARAM_CHECK && !(*request)->req_persistent) {
71+
if ( MPI_PARAM_CHECK && !((*request)->req_persistent &&
72+
OMPI_REQUEST_INACTIVE == (*request)->req_state)) {
7273
return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_REQUEST, FUNC_NAME);
7374
}
7475
OPAL_CR_ENTER_LIBRARY();

0 commit comments

Comments
 (0)