<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adrian, in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006204#M3844</link>
    <description>&lt;P&gt;Adrian,&lt;BR /&gt;
	&lt;BR /&gt;
	I'm not able to easily reproduce the hang.&amp;nbsp; I don't think you should be encountering a hang here.&amp;nbsp; Can you run with the message checking library in Intel® Trace Analyzer and Collector?&amp;nbsp; That should show if there is a problem in your usage of MPI.&amp;nbsp; Also, can you send me your code showing the hang?&amp;nbsp; Private message is fine.&lt;BR /&gt;
	&lt;BR /&gt;
	James.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2015 18:12:26 GMT</pubDate>
    <dc:creator>James_T_Intel</dc:creator>
    <dc:date>2015-08-31T18:12:26Z</dc:date>
    <item>
      <title>MPI_Request_free() hangs</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006203#M3843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Trying to make use of the MPI persistent communication primitives in our application, I'm ending up with the following sequence of events:&lt;/P&gt;
&lt;PRE class="brush:cpp;"&gt;MPI_Ssend_init(msg, msg_length, MPI_BYTE, 0, tag, comm, &amp;amp;req);
MPI_Start(&amp;amp;req);
MPI_Cancel(&amp;amp;req);
MPI_Wait(&amp;amp;req, MPI_STATUS_IGNORE);
MPI_Request_free(&amp;amp;req); // &amp;lt;-- HANGS
&lt;/PRE&gt;

&lt;P&gt;The only other node is blocked in an &lt;EM&gt;MPI_Barrier(comm); &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I noticed that if I comment out the &lt;EM&gt;MPI_Barrier()&lt;/EM&gt; call and let the other node proceed to freeing the communicator and then enter some other &lt;EM&gt;MPI_Barrier()&lt;/EM&gt; on a different communicator, then the &lt;EM&gt;MPI_Request_free()&lt;/EM&gt; call magically returns.&lt;/P&gt;
&lt;P&gt;I tried reproducing this in a separate test program, but everything works as expected there. So I understand that there is probably some (possibly unrelated) bug in my original application that causes this behaviour and that one would need more information in order to figure this out.&lt;/P&gt;
&lt;P&gt;But what puzzles me is that &lt;EM&gt;MPI_Request_free()&lt;/EM&gt; blocks, even though the standard says that it is supposed to be a local operation (i.e. its completion should not depend on any other nodes).&lt;/P&gt;
&lt;P&gt;So my main questions are:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;What can &lt;EM&gt;MPI_Request_free()&lt;/EM&gt; possibly be waiting for?&lt;/LI&gt;&lt;LI&gt;Any ideas/suggestions for how I can best debug this sort of issues?&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Thanks in advance!&lt;BR /&gt;- Adrian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:57:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006203#M3843</guid>
      <dc:creator>Adrian_I_</dc:creator>
      <dc:date>2015-08-31T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Adrian,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006204#M3844</link>
      <description>&lt;P&gt;Adrian,&lt;BR /&gt;
	&lt;BR /&gt;
	I'm not able to easily reproduce the hang.&amp;nbsp; I don't think you should be encountering a hang here.&amp;nbsp; Can you run with the message checking library in Intel® Trace Analyzer and Collector?&amp;nbsp; That should show if there is a problem in your usage of MPI.&amp;nbsp; Also, can you send me your code showing the hang?&amp;nbsp; Private message is fine.&lt;BR /&gt;
	&lt;BR /&gt;
	James.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2015 18:12:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006204#M3844</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2015-08-31T18:12:26Z</dc:date>
    </item>
    <item>
      <title>Thanks for the quick reply,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006205#M3845</link>
      <description>&lt;P&gt;Thanks for the quick reply, James!&lt;/P&gt;

&lt;P&gt;I'm not allowed to share the source code of our full application, unfortunately, and we don't have a license for ITAC.&lt;/P&gt;

&lt;P&gt;But I grabbed an Evaluation of Intel Parallel Studio 2016 and noticed that with the included Intel MPI 5.1.1 our application (same binaries, didn't even recompile) runs successfully and mpirun --check-mpi does not find any issues at all.&lt;/P&gt;

&lt;P&gt;Could it be a bug in the library itself that got fixed in the meantime?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 14:02:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006205#M3845</guid>
      <dc:creator>Adrian_I_</dc:creator>
      <dc:date>2015-09-02T14:02:15Z</dc:date>
    </item>
    <item>
      <title>Possibly.  I don't</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006206#M3846</link>
      <description>&lt;P&gt;Possibly.&amp;nbsp; I don't immediately see anything in our bug tracking that would explain this, but it could have been related to something else fixed in the latest release.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 18:50:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-Request-free-hangs/m-p/1006206#M3846</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2015-09-02T18:50:27Z</dc:date>
    </item>
  </channel>
</rss>

