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

Change FLAVOR to shared memory checks in win_flush.

Check shm_allocated flag in win_flush to determine if do full
memory barrier or not.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <>
parent 2d161668
......@@ -2228,7 +2228,7 @@ int MPIDI_Win_flush(int rank, MPID_Win *win_ptr)
/* For shared memory windows, all operations are done immediately, so there
is nothing to flush. Ensure ordering of load/store operations and
return. */
if (win_ptr->create_flavor == MPI_WIN_FLAVOR_SHARED) {
if (win_ptr->shm_allocated == TRUE) {
goto fn_exit;
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