<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Apologies - I'm now doubting my own problem. Even with the extra polling in place, I still do not see rank 0 receive the message.
<br>
</p>
<p><br>
</p>
<p>I will investigate further.</p>
<p><br>
</p>
<p>JB<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Libfabric-users <libfabric-users-bounces@lists.openfabrics.org> on behalf of Biddiscombe, John A. <biddisco@cscs.ch><br>
<b>Sent:</b> 08 April 2020 19:55:49<br>
<b>To:</b> libfabric-users@lists.openfabrics.org<br>
<b>Subject:</b> [libfabric-users] Progress question</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear List,</p>
<p><br>
</p>
<p>I have a problem that can be summarized by saying that just before it exits a main loop, rank 1 does a send to rank 0 (actually an fi_inject), and then never needs to check for messages again. Rank 1 is finished (but it doesn't shut down yet as there are
 other thigs to do that don't require messaging). Rank 0 never receives the message that rank 1 send. If I add an extra short loop for a fraction of a second and tell rank 1 to poll completions after the fi_inject, then rank 0 does get the message.</p>
<p><br>
</p>
<p>Since fi_inject returns 0 indicating success - I assumed all was ok. If I knew always which send was going to be the last, then I could add a short poll in the right place - unfortunately I don't always know what the last send/inject will be.
<br>
</p>
<p><br>
</p>
<p>Is there a right way to handle this (I guess I need a flush operation of some kind, but I'm not sure where to put it).</p>
<p><br>
</p>
<p>Thanks</p>
<p><br>
</p>
<p>JB</p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>
</body>
</html>