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

Add mpir_errflag_t to MPIDI_Request



Non-blocking communication requests need a way to track whether an error
has occurred in a previous part of the NBC schedule. This adds an
errflag to the request object itself so the tracking is possible.
Signed-off-by: default avatarHuiwei Lu <huiweilu@mcs.anl.gov>
parent 3dae6959
......@@ -446,6 +446,9 @@ typedef struct MPIDI_Request {
struct MPIDI_RMA_Lock_entry *lock_queue_entry;
MPI_Request resp_request_handle; /* Handle for get_accumulate response */
/* Errflag for NBC requests. Not used by other requests. */
mpir_errflag_t errflag;
MPIDI_REQUEST_SEQNUM
/* Occasionally, when a message cannot be sent, we need to cache the
......
......@@ -94,6 +94,7 @@ MPID_Request * MPID_Request_create(void)
req->dev.user_buf = NULL;
req->dev.final_user_buf = NULL;
req->dev.drop_data = FALSE;
req->dev.errflag = MPIR_ERR_NONE;
#ifdef MPIDI_CH3_REQUEST_INIT
MPIDI_CH3_REQUEST_INIT(req);
#endif
......
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