Re: quick question about 1-sided

Eric Salo (salo@mrjones.engr.sgi.com)
Mon, 27 Jan 1997 15:52:56 -0800

> Suppose I have a library that uses MPI-2 that I intend to call inside my own
> MPI-2 program. What happens if I use one of the synchronization methods
> to complete put/get-s in my code and the library uses another and we try
> to do them in an interleaved fashion?

Something like this, you mean...?

MPI_WIN_BARRIER(win)
MPI_PUT(win)
foo(win)
MPI_WIN_BARRIER(win)

where:

foo(MPI_Win win)
{
MPI_WIN_LOCK(win)
MPI_GET(win)
MPI_WIN_UNLOCK(win)
}

I have no idea. It's probably highly undefined. We might need/want to add text
that explicitly forbids certain dangerous combinations if such text isn't there
already (it's been a while since I've thought about this stuff).

-- 
Eric Salo         Silicon Graphics Inc.             "Do you know what the
(415)933-2998     2011 N. Shoreline Blvd, 8U-802     last Xon said, just
salo@sgi.com      Mountain View, CA   94043-1389     before he died?"