[mpiwg-rma] [EXTERNAL] Re: Synchronization on shared memory windows

Dave Goodell (dgoodell) dgoodell at cisco.com
Wed Feb 5 11:47:17 CST 2014


On Feb 5, 2014, at 11:43 AM, Rolf Rabenseifner <rabenseifner at hlrs.de> wrote:

> Pavan, Dave, Jeff, and Brian,
> 
> is it now correct?

As far as I can tell it is correct, modulo any Fortran behavior that I don't understand.

> Should it go in MPI-next into Sect.11.7?

That seems reasonable to me.

-Dave

>> --------------------
>> X is part of a shared memory window and should mean the same
>> memory location in both processes produced with
>> MPI_WIN_ALLOCATE_SHARED.
>> 
>> Process A               Process B
>> 
>> MPI_WIN_LOCK_ALL(       MPI_WIN_LOCK_ALL(
>> MPI_MODE_NOCHECK,win)   MPI_MODE_NOCHECK,win)
>> 
>> DO ...                  DO ...
>>  x=...
>>  MPI_F_SYNC_REG(X)
>>  MPI_WIN_SYNC(win)
>>  MPI_Barrier             MPI_Barrier
>>                          MPI_WIN_SYNC(win)
>>                          MPI_F_SYNC_REG(X)
>>                          print X
>> END DO                  END DO
>> 
>> MPI_WIN_UNLOCK_ALL(win) MPI_WIN_UNLOCK_ALL(win)
>> --------------------




More information about the mpiwg-rma mailing list