[mpich-discuss] One-sided communication: MPI_Win_lock inside MPI_Win_fence

Rajeev Thakur thakur at mcs.anl.gov
Tue May 29 16:13:45 CDT 2012


Can you send the complete program if it is small.

Rajeev

On May 29, 2012, at 2:54 PM, Ziaul Haque Olive wrote:

> for smaller number of processes like 4, i was getting correct result, but for 8, it was providing incorrect result.
> 
> I tried with and without lock/unlock. without lock/unlock provides correct result all the time.
> 
> Hello, 
> 
> I am getting incorrect result while using lock/unlock synchronization inside fence. the pattern is as follows,
> 
>           MPI_Win_fence(win1);
>               ..........
>           MPI_Win_lock(exclusive, win1);
> 
>           MPI_Accumulate(MPI_BOR, win1);
> 
>           MPI_Win_unlock(win1);
> 
>           MPI_Win_fence(win1);
> 
> is it invalid to use lock in this way?
> 
> Thanks,
> Ziaul.
> 
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list