Commit 4d7ac29a authored by Rajeev Thakur's avatar Rajeev Thakur
Browse files

[svn-r3452] fixes bug reported by David Gingold (#269)

parent cafc18e4
......@@ -95,13 +95,16 @@ int MPIDI_Win_fence(int assert, MPID_Win *win_ptr)
goto fn_exit;
}
if ((win_ptr->fence_cnt == 0) && ((assert & MPI_MODE_NOSUCCEED) != 1))
if (win_ptr->fence_cnt == 0)
{
/* win_ptr->fence_cnt == 0 means either this is the very first
call to fence or the preceding fence had the
MPI_MODE_NOSUCCEED assert.
Do nothing except increment the count. */
win_ptr->fence_cnt = 1;
If this fence has MPI_MODE_NOSUCCEED, do nothing and return.
Otherwise just increment the fence count and return. */
if (!(assert & MPI_MODE_NOSUCCEED)) win_ptr->fence_cnt = 1;
}
else
{
......
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