<?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 Re: Intel mpi hangs when receive message sent from the same rank in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1560738#M11368</link>
    <description>&lt;P&gt;additional infomation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ldd test
        linux-vdso.so.1 (0x00007ffe1bdf2000)
        libc++abi.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libc++abi.so.1 (0x00007febf62f2000)
        libmpi.so.12 =&amp;gt; /opt/intel/oneapi/mpi/2021.11/lib/libmpi.so.12 (0x00007febf4600000)
        libc++.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libc++.so.1 (0x00007febf61ec000)
        libunwind.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libunwind.so.1 (0x00007febf61dd000)
        libm.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007febf4521000)
        libgcc_s.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007febf61bd000)
        libc.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007febf4340000)
        librt.so.1 =&amp;gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007febf61b8000)
        libdl.so.2 =&amp;gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007febf61b1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007febf635a000)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 08 Jan 2024 06:10:45 GMT</pubDate>
    <dc:creator>jellie_</dc:creator>
    <dc:date>2024-01-08T06:10:45Z</dc:date>
    <item>
      <title>Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1560195#M11360</link>
      <description>&lt;P&gt;Suppose I have a mpi program which will send/receive within the same rank:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;mpi.h&amp;gt;

int main(int argc, char** argv) {
    MPI_Init(&amp;amp;argc, &amp;amp;argv);

    int i1 = 2;
    MPI_Request req1;
    MPI_Isend(&amp;amp;i1, 1, MPI_INT, 0, 0, MPI_COMM_WORLD, &amp;amp;req1);

    MPI_Status status1;
    MPI_Wait(&amp;amp;req1, &amp;amp;status1);
    std::cout &amp;lt;&amp;lt; "sent\n";

    int i2;
    MPI_Status status2;
    MPI_Recv(&amp;amp;i2, 1, MPI_INT, 0, 0, MPI_COMM_WORLD, &amp;amp;status2);

    std::cout &amp;lt;&amp;lt; i2 &amp;lt;&amp;lt; "\n";
    MPI_Finalize();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;run it with mpirun -np 1 &amp;lt;executable&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when linked to openmi, it works well. However, when compiled and link to intel mpi, it hangs after printed the "sent".&lt;/DIV&gt;&lt;DIV&gt;If it is link to openmpi and run with intel's mpirun, it works.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Initially I suspect that a mpi rank communicate with itself is a undefinded behaviour, but I found this on stackoverflow:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/11385395/is-the-behavior-of-mpi-communication-of-a-rank-with-itself-well-defined" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/11385395/is-the-behavior-of-mpi-communication-of-a-rank-with-itself-well-defined&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so this might be a bug related to intel mpi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;openmpi version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ mpirun --version
mpirun (Open MPI) 4.1.4

Report bugs to http://www.open-mpi.org/community/help/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;intel mpi version:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ mpirun --version
Intel(R) MPI Library for Linux* OS, Version 2021.11 Build 20231005 (id: 74c4a23)
Copyright 2003-2023, Intel Corporation.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 09:00:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1560195#M11360</guid>
      <dc:creator>jellie_</dc:creator>
      <dc:date>2024-01-05T09:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1560738#M11368</link>
      <description>&lt;P&gt;additional infomation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ldd test
        linux-vdso.so.1 (0x00007ffe1bdf2000)
        libc++abi.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libc++abi.so.1 (0x00007febf62f2000)
        libmpi.so.12 =&amp;gt; /opt/intel/oneapi/mpi/2021.11/lib/libmpi.so.12 (0x00007febf4600000)
        libc++.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libc++.so.1 (0x00007febf61ec000)
        libunwind.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libunwind.so.1 (0x00007febf61dd000)
        libm.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007febf4521000)
        libgcc_s.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007febf61bd000)
        libc.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007febf4340000)
        librt.so.1 =&amp;gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007febf61b8000)
        libdl.so.2 =&amp;gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007febf61b1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007febf635a000)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Jan 2024 06:10:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1560738#M11368</guid>
      <dc:creator>jellie_</dc:creator>
      <dc:date>2024-01-08T06:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1560759#M11369</link>
      <description>&lt;P&gt;another example：&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;mpi.h&amp;gt;

int main(int argc, char** argv) {
    MPI_Init(&amp;amp;argc, &amp;amp;argv);

    int i1 = 2;
    MPI_Request req1;
    MPI_Isend(&amp;amp;i1, 1, MPI_INT, 0, 0, MPI_COMM_WORLD, &amp;amp;req1);

    MPI_Status status1;
    MPI_Wait(&amp;amp;req1, &amp;amp;status1);
    std::cout &amp;lt;&amp;lt; "sent\n";

    int i2;
    MPI_Status status2;
    while (true) {
        MPI_Iprobe(0, 0, MPI_COMM_WORLD, &amp;amp;i2, &amp;amp;status2);
        std::cout &amp;lt;&amp;lt; i2 &amp;lt;&amp;lt; '\n';
        if (i2 != 0) {
            break;
        }
    }

    std::cout &amp;lt;&amp;lt; "iprobe success\n";
    MPI_Finalize();
}&lt;/LI-CODE&gt;&lt;P&gt;when linked to openmpi, it ends normally.&lt;/P&gt;&lt;P&gt;when linked to intel mpi, the MPI_Iprobe never success, and the line 19 always prints 0.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 07:53:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1560759#M11369</guid>
      <dc:creator>jellie_</dc:creator>
      <dc:date>2024-01-08T07:53:04Z</dc:date>
    </item>
    <item>
      <title>Re:Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561887#M11401</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/321755"&gt;@jellie_&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;both of your codes work for me, can you please add I_MPI_DEBUG=10 mpirun ... ?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:58:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561887#M11401</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-01-11T14:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561890#M11402</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;the output of the first example looks like this:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ I_MPI_DEBUG=10 mpirun -np 1 executable
[0] MPI startup(): Intel(R) MPI Library, Version 2021.11  Build 20231005 (id: 74c4a23)
[0] MPI startup(): Copyright (C) 2003-2023 Intel Corporation.  All rights reserved.
[0] MPI startup(): library kind: release
[0] MPI startup(): libfabric loaded: libfabric.so.1 
[0] MPI startup(): libfabric version: 1.18.1-impi
[0] MPI startup(): max number of MPI_Request per vci: 67108864 (pools: 1)
[0] MPI startup(): libfabric provider: tcp
[0] MPI startup(): File "" not found
[0] MPI startup(): Load tuning file: "/opt/intel/oneapi/mpi/2021.11/opt/mpi/etc/tuning_icx_shm-ofi.dat"
[0] MPI startup(): File "/opt/intel/oneapi/mpi/2021.11/opt/mpi/etc/tuning_icx_shm-ofi.dat" not found
[0] MPI startup(): Load tuning file: "/opt/intel/oneapi/mpi/2021.11/opt/mpi/etc//tuning_clx-ap_shm-ofi.dat"
[0] MPI startup(): threading: mode: direct
[0] MPI startup(): threading: vcis: 1
[0] MPI startup(): threading: app_threads: -1
[0] MPI startup(): threading: runtime: generic
[0] MPI startup(): threading: progress_threads: 0
[0] MPI startup(): threading: async_progress: 0
[0] MPI startup(): threading: lock_level: global
[0] MPI startup(): tag bits available: 19 (TAG_UB value: 524287) 
[0] MPI startup(): source bits available: 20 (Maximal number of rank: 1048575) 
[0] MPI startup(): ===== Nic pinning on X1-Nano =====
[0] MPI startup(): Rank Pin nic
[0] MPI startup(): 0    ve-ArchLinux
[0] MPI startup(): Rank    Pid      Node name  Pin cpu
[0] MPI startup(): 0       143295   X1-Nano    {0,1,2,3,4,5,6,7}
[0] MPI startup(): I_MPI_ROOT=/opt/intel/oneapi/mpi/2021.11
[0] MPI startup(): ONEAPI_ROOT=/opt/intel/oneapi
[0] MPI startup(): I_MPI_MPIRUN=mpirun
[0] MPI startup(): I_MPI_BIND_WIN_ALLOCATE=localalloc
[0] MPI startup(): I_MPI_HYDRA_TOPOLIB=hwloc
[0] MPI startup(): I_MPI_RETURN_WIN_MEM_NUMA=-1
[0] MPI startup(): I_MPI_INTERNAL_MEM_POLICY=default
[0] MPI startup(): I_MPI_DEBUG=10
sent
&lt;/LI-CODE&gt;&lt;P&gt;then it hangs&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 15:11:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561890#M11402</guid>
      <dc:creator>jellie_</dc:creator>
      <dc:date>2024-01-11T15:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561898#M11405</link>
      <description>&lt;P&gt;Please make sure that you are running in a supported environment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/system-requirements/mpi-library-system-requirements.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/system-requirements/mpi-library-system-requirements.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 15:22:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561898#M11405</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-01-11T15:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561902#M11406</link>
      <description>&lt;P&gt;I'm using debian 12 (which is the last stable debian version), is this too new?&lt;/P&gt;&lt;P&gt;the clang 17 and gcc 12.2.0 compiler are all tested and the program always hangs.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 15:42:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1561902#M11406</guid>
      <dc:creator>jellie_</dc:creator>
      <dc:date>2024-01-11T15:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Intel mpi hangs when receive message sent from the same rank</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1562314#M11422</link>
      <description>&lt;P&gt;Debian 13 is currently not validated / supported.&lt;BR /&gt;On our machines, it works fine, however, the code itself is unsafe and also talking to my colleagues, we strongly recommend to avoid that as it may or may not work the way you want it to work.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 18:13:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-mpi-hangs-when-receive-message-sent-from-the-same-rank/m-p/1562314#M11422</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-01-12T18:13:21Z</dc:date>
    </item>
  </channel>
</rss>

