Commit b30fe09a authored by Xin Zhao's avatar Xin Zhao Committed by Pavan Balaji
Browse files

Add an assert in Win_flush_local_all to ensure all requests are completed.


Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent 390c449c
......@@ -1800,6 +1800,8 @@ int MPIDI_Win_flush_local_all(MPID_Win * win_ptr)
MPIU_ERR_POP(mpi_errno);
finish_flush_local_all:
MPIU_Assert(win_ptr->active_req_cnt == 0);
/* reset upgrade_flush_local flag in target to 0 */
for (i = 0; i < win_ptr->num_slots; i++) {
curr_target = win_ptr->slots[i].target_list_head;
......
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