<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Matthieu,<br>
<br>
MPI does not provide any guarantee on the completion order of the
reception requests in this case. More generally, regarding
waitAny, the MPI-3.0 specification says that "If more than one
operation is enabled and can terminate, one is arbitrarily
<br>
chosen".<br>
<br>
Thomas<br>
<br>
On 09/19/2013 04:31 PM, Matthieu Dorier wrote:<br>
</div>
<blockquote
cite="mid:1471507564.2704225.1379601073317.JavaMail.root@irisa.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">p { margin: 0; }</style>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt; color: #000000">Hi,
<div><br>
</div>
<div>I would like a precision on the semantics of MPI_Waitany in
this situation:</div>
<div><br>
</div>
<div>- Process 1 does 2 MPI_Irecv with different tags A and B
(the order doesn't matter); it then waits on the two requests
with MPI_Waitany.</div>
<div>- In the mean time, process 2 does an MPI_Send with tag A,
then MPI_Send with tag B.</div>
<div>Can I ensure that MPI_Waitany will always give me the index
of the message corresponding to the first MPI_Send, i.e. the
one with the tag A, even in situations where process 1 called
MPI_Irecv on a tag B first?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
<div><span name="x"></span><font size="2"><font size="3">Matthieu
Dorier<br>
</font>PhD student at ENS Cachan Brittany and IRISA<br>
<a moz-do-not-send="true"
href="http://people.irisa.fr/Matthieu.Dorier">http://people.irisa.fr/Matthieu.Dorier</a></font><span
name="x"></span><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
discuss mailing list <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
</body>
</html>