Skip to content

Commit 94f9806

Browse files
committed
Start: check for OMPI_REQUEST_INACTIVE in param check
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent 926af42 commit 94f9806

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
@@ -78,7 +78,8 @@ 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

0 commit comments

Comments
 (0)