[mpich-discuss] MPI_Win_Create

Jeff Hammond jeff.science at gmail.com
Mon Jan 15 11:41:54 CST 2018


Win_create acts like a barrier, so just serialize them like you would any
collective.

Or even better, don’t do this since there is no benefit. Just create one
window. Synchronize where required.

In any case, posting code will make it easier for people to help you.

Jeff

On Mon, Jan 15, 2018 at 6:57 AM Luis Cebamanos <luiceur at gmail.com> wrote:

> Hi MPI users,
>
> I am trying to understand the way MPI_Win_Create works. The way
> MPI_Win_Create is used in my code creates a window between two MPI
> ranks, so it creates a communicator with the two ranks and then proceed
> to the create the window. This is also happening in the other direction,
> the other rank involved in the communicator creates another window, for
> example:
>
> 0 -> creates a window with 1
>
> 1 -> creates a window with 0
>
> What I normally do is to play the odd and even game to create the
> windows in one direction or the other, but this hangs very often. What
> is the right way to do it? Could I serialized the window creations so
> there are not deadlocks?
>
> Regards,
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-- 
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20180115/5d413d0d/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list