Commit a91f178a authored by Huiwei Lu's avatar Huiwei Lu Committed by Wesley Bland
Browse files

Adds checking VC state in MPID_Send



MPID_Send should first check the state of a VC to see if it is valid
before creating a group, request or communicator.

In the case of fault tolerance, if VC has already been revoked or marked
as terminated (e.g., in test/mpi/ft/senddead). The send operation
evolved should exit without creating any memory objects of request,
group or communicator.
Signed-off-by: default avatarWesley Bland <wbland@anl.gov>
parent 96deece2
......@@ -72,6 +72,7 @@ int MPID_Send(const void * buf, int count, MPI_Datatype datatype, int rank,
}
MPIDI_Comm_get_vc_set_active(comm, rank, &vc);
MPIU_ERR_CHKANDJUMP1(vc->state == MPIDI_VC_STATE_MORIBUND, mpi_errno, MPIX_ERR_PROC_FAILED, "**comm_fail", "**comm_fail %d", rank);
#ifdef ENABLE_COMM_OVERRIDES
if (vc->comm_ops && vc->comm_ops->send)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment