Hello, <div><br></div><div>I am getting incorrect result while using lock/unlock synchronization inside fence. the pattern is as follows,</div><div><br></div><div> MPI_Win_fence(win1);</div><div> ..........</div>
<div> MPI_Win_lock(exclusive, win1);</div><div><br></div><div> MPI_Accumulate(MPI_BOR, win1);</div><div><br></div><div> MPI_Win_unlock(win1);<br><div><br></div><div> MPI_Win_fence(win1);
</div></div><div><br></div><div>is it invalid to use lock in this way?</div><div><br></div><div>Thanks,</div><div>Ziaul.</div>