Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ompi/mpi/c/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,14 @@ int MPI_Start(MPI_Request *request)
case OMPI_REQUEST_PML:
case OMPI_REQUEST_COLL:
case OMPI_REQUEST_PART:
if ( MPI_PARAM_CHECK && !(*request)->req_persistent) {
if ( MPI_PARAM_CHECK && !((*request)->req_persistent &&
OMPI_REQUEST_INACTIVE == (*request)->req_state)) {
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(MPI_ERR_REQUEST, FUNC_NAME);
}

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

return ret;
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(ret, FUNC_NAME);

case OMPI_REQUEST_NOOP:
/**
Expand Down
1 change: 1 addition & 0 deletions ompi/mpi/c/startall.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ int MPI_Startall(int count, MPI_Request requests[])
! requests[i]->req_persistent ||
(OMPI_REQUEST_PML != requests[i]->req_type &&
OMPI_REQUEST_COLL != requests[i]->req_type &&
OMPI_REQUEST_PART != requests[i]->req_type &&
OMPI_REQUEST_NOOP != requests[i]->req_type)) {
rc = MPI_ERR_REQUEST;
break;
Expand Down