[Mpi3-rma] RMA Unified examples
Pavan Balaji
balaji at mcs.anl.gov
Tue Apr 12 18:16:03 CDT 2011
I was asked to put together a list of examples that we expect to work in
the unified model. I've included three examples here.
Example 1:
=========
Process 0
---------
Win_lock(SHARED, P0)
load A
store B
Win_unlock()
Process 1
---------
Win_lock(SHARED, P0)
Put(X)
Get(Y)
Win_unlock()
Example 2:
=========
Process 0
---------
store X
MPI_FOO(); /* memory barrier */
MPI_Barrier();
Process 1
---------
MPI_Barrier();
Win_lock(SHARED, P0)
Get(X)
Win_unlock()
Example 3:
=========
Process 0
---------
Win_lock(SHARED, P0)
store X
MPI_FOO(); /* memory barrier */
MPI_Barrier();
Win_unlock()
Process 1
---------
Win_lock(SHARED, P0)
MPI_Barrier();
Get(X);
Win_unlock()
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpiwg-rma
mailing list