<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div><div dir="auto">Win_create acts like a barrier, so just serialize them like you would any collective. </div><div dir="auto"><br></div><div dir="auto">Or even better, don’t do this since there is no benefit. Just create one window. Synchronize where required. </div><div dir="auto"><br></div><div dir="auto">In any case, posting code will make it easier for people to help you. </div><div dir="auto"><br></div><div dir="auto">Jeff</div><br><div class="gmail_quote"><div>On Mon, Jan 15, 2018 at 6:57 AM Luis Cebamanos <<a href="mailto:luiceur@gmail.com">luiceur@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi MPI users,<br>
<br>
I am trying to understand the way MPI_Win_Create works. The way<br>
MPI_Win_Create is used in my code creates a window between two MPI<br>
ranks, so it creates a communicator with the two ranks and then proceed<br>
to the create the window. This is also happening in the other direction,<br>
the other rank involved in the communicator creates another window, for<br>
example:<br>
<br>
0 -> creates a window with 1<br>
<br>
1 -> creates a window with 0<br>
<br>
What I normally do is to play the odd and even game to create the<br>
windows in one direction or the other, but this hangs very often. What<br>
is the right way to do it? Could I serialized the window creations so<br>
there are not deadlocks?<br>
<br>
Regards,<br>
<br>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>