<?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 Hi Prasanth, in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179918#M6712</link>
    <description>&lt;P&gt;Hi Prasanth,&lt;/P&gt;&lt;P&gt;Thanks! That was a stupid syntax error on my part. Strange thing is that the code runs anyway with OpenMPI, otherwise I'd have spotted the mistake a lot sooner.&lt;/P&gt;&lt;P&gt;Anyway, thanks again for pointing it out!&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Mike&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 16:24:16 GMT</pubDate>
    <dc:creator>Mike_D_6</dc:creator>
    <dc:date>2020-01-29T16:24:16Z</dc:date>
    <item>
      <title>Invalid communicator issue with PMPI_Allreduce</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179916#M6710</link>
      <description>&lt;P&gt;Operating system and version: CentOS Linux release 7.5.1804&lt;BR /&gt;Intel MPI version: 2019.5.281&lt;BR /&gt;Compiler and version: 19.0.5.281&lt;BR /&gt;Fabric: Mellanox Technologies MT27500&lt;BR /&gt;Libfabric version: 1.7.2&lt;/P&gt;&lt;P&gt;Would anyone be able to help me with an "invalid communicator" error I've been getting with Intel MPI plus Intel compilers (not present with OpenMPI plus GNU or Intel compilers) in one subroutine in a large code?&lt;/P&gt;&lt;P&gt;I receive the error when I use MPI_ALLREDUCE in this subroutine, but if I replace it with an MPI_REDUCE followed by an MPI_BCAST the code works fine. There are many other instances of MPI_ALLREDUCE in other subroutines that seem to work fine. The snippet that works:&lt;/P&gt;
&lt;PRE class="brush:fortran; class-name:dark;"&gt;     CALL MPI_REDUCE(EX,FEX,NATOMX,MPI_REAL8,MPI_SUM,0, &amp;amp;
       COMM_CHARMM,IERROR)
     CALL MPI_REDUCE(EY,FEY,NATOMX,MPI_REAL8,MPI_SUM,0, &amp;amp;
       COMM_CHARMM,IERROR)
     CALL MPI_REDUCE(EZ,FEZ,NATOMX,MPI_REAL8,MPI_SUM,0, &amp;amp;
       COMM_CHARMM,IERROR)
     CALL MPI_BCAST(FEX,NATOMX,MPI_REAL8,0,COMM_CHARMM,IERROR)
     CALL MPI_BCAST(FEY,NATOMX,MPI_REAL8,0,COMM_CHARMM,IERROR)
     CALL MPI_BCAST(FEZ,NATOMX,MPI_REAL8,0,COMM_CHARMM,IERROR)
&lt;/PRE&gt;

&lt;P&gt;The snippet that causes the error:&lt;/P&gt;

&lt;PRE class="brush:fortran; class-name:dark;"&gt;     CALL MPI_ALLREDUCE(EX,FEX,NATOMX,MPI_REAL8,MPI_SUM,0, &amp;amp;
       COMM_CHARMM,IERROR)
     CALL MPI_ALLREDUCE(EY,FEY,NATOMX,MPI_REAL8,MPI_SUM,0, &amp;amp;
       COMM_CHARMM,IERROR)
     CALL MPI_ALLREDUCE(EZ,FEZ,NATOMX,MPI_REAL8,MPI_SUM,0, &amp;amp;
       COMM_CHARMM,IERROR)&lt;/PRE&gt;

&lt;P&gt;After setting I_MPI_DEBUG=6, I_MPI_HYDRA_DEBUG=on, the error message is:&lt;/P&gt;
&lt;P&gt;Abort(1007228933) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Allreduce: Invalid communicator, error stack:&lt;BR /&gt;PMPI_Allreduce(434): MPI_Allreduce(sbuf=0x2b5015d1b6c0, rbuf=0x2b5004ff8740, count=1536, datatype=dtype=0x4c000829, op=MPI_SUM, comm=comm=0x0) failed&lt;BR /&gt;PMPI_Allreduce(355): Invalid communicator&lt;/P&gt;
&lt;P&gt;The problem persists while using only a single core with mpirun. The initial MPI debug output then is:&lt;/P&gt;
&lt;P&gt;$ mpirun -ppn 1 -n 1 ../build/cmake/charmm-bug -i c45test/dcm-ti.inp&lt;/P&gt;
&lt;P&gt;[mpiexec@pc-beethoven.cluster] Launch arguments: /opt/intel-2019/compilers_and_libraries_2019.5.281/linux/mpi/intel64/bin//hydra_bstrap_proxy --upstream-host pc-beethoven.cluster --upstream-port 36326 --pgid 0 --launcher ssh --launcher-number 0 --base-path /opt/intel-2019/compilers_and_libraries_2019.5.281/linux/mpi/intel64/bin/ --tree-width 16 --tree-level 1 --time-left -1 --collective-launch 1 --debug --proxy-id 0 --node-id 0 --subtree-size 1 --upstream-fd 7 /opt/intel-2019/compilers_and_libraries_2019.5.281/linux/mpi/intel64/bin//hydra_pmi_proxy --usize -1 --auto-cleanup 1 --abort-signal 9&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=init pmi_version=1 pmi_subversion=1&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=response_to_init pmi_version=1 pmi_subversion=1 rc=0&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=get_maxes&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=maxes kvsname_max=256 keylen_max=64 vallen_max=4096&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=get_appnum&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=appnum appnum=0&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=get_my_kvsname&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=my_kvsname kvsname=kvs_24913_0&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=barrier_in&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=barrier_out&lt;BR /&gt;[0] MPI startup(): libfabric version: 1.7.2a-impi&lt;BR /&gt;[0] MPI startup(): libfabric provider: tcp;ofi_rxm&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=get_my_kvsname&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=my_kvsname kvsname=kvs_24913_0&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=put kvsname=kvs_24913_0 key=bc-0 value=mpi#0200ADFEC0A864030000000000000000$&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=put_result rc=0 msg=success&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=barrier_in&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=barrier_out&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] pmi cmd from fd 6: cmd=get kvsname=kvs_24913_0 key=bc-0&lt;BR /&gt;[proxy:0:0@pc-beethoven.cluster] PMI response: cmd=get_result rc=0 msg=success value=mpi#0200ADFEC0A864030000000000000000$&lt;BR /&gt;[0] MPI startup(): Rank&amp;nbsp;&amp;nbsp;&amp;nbsp; Pid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pin cpu&lt;BR /&gt;[0] MPI startup(): 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24917&amp;nbsp;&amp;nbsp;&amp;nbsp; pc-beethoven.cluster&amp;nbsp; {0,1,2,3,4,5,6,7}&lt;BR /&gt;[0] MPI startup(): I_MPI_CC=icc&lt;BR /&gt;[0] MPI startup(): I_MPI_CXX=icpc&lt;BR /&gt;[0] MPI startup(): I_MPI_F90=ifort&lt;BR /&gt;[0] MPI startup(): I_MPI_F77=ifort&lt;BR /&gt;[0] MPI startup(): I_MPI_ROOT=/opt/intel-2019/compilers_and_libraries_2019.5.281/linux/mpi&lt;BR /&gt;[0] MPI startup(): I_MPI_MPIRUN=mpirun&lt;BR /&gt;[0] MPI startup(): I_MPI_HYDRA_DEBUG=on&lt;BR /&gt;[0] MPI startup(): I_MPI_HYDRA_TOPOLIB=hwloc&lt;BR /&gt;[0] MPI startup(): I_MPI_INTERNAL_MEM_POLICY=default&lt;BR /&gt;[0] MPI startup(): I_MPI_DEBUG=6&lt;/P&gt;
&lt;P&gt;Note that I also tried using FI_PROVIDER=sockets, with the same result. Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 10:54:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179916#M6710</guid>
      <dc:creator>Mike_D_6</dc:creator>
      <dc:date>2020-01-28T10:54:39Z</dc:date>
    </item>
    <item>
      <title>Hi Mark,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179917#M6711</link>
      <description>Hi Mark,

We have tried to reproduce your issue and found an error in the MPI_ALLREDUCE subroutine.

Below is the correct call :
CALL MPI_ALLREDUCE(EX,FEX,NATOMX,MPI_REAL8,MPI_SUM, &amp;amp;COMM_CHARMM,IERROR)


There is no need to provide root in MPI_ALLREDUCE.

Hope this resolves your issue. Let us know in-case if the problem still persists.

Thanks
Prasanth</description>
      <pubDate>Wed, 29 Jan 2020 15:47:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179917#M6711</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-01-29T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Hi Prasanth,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179918#M6712</link>
      <description>&lt;P&gt;Hi Prasanth,&lt;/P&gt;&lt;P&gt;Thanks! That was a stupid syntax error on my part. Strange thing is that the code runs anyway with OpenMPI, otherwise I'd have spotted the mistake a lot sooner.&lt;/P&gt;&lt;P&gt;Anyway, thanks again for pointing it out!&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:24:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179918#M6712</guid>
      <dc:creator>Mike_D_6</dc:creator>
      <dc:date>2020-01-29T16:24:16Z</dc:date>
    </item>
    <item>
      <title>Thank you, MikeGlad to hear</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179919#M6713</link>
      <description>&lt;P&gt;Thank you, Mike&lt;BR /&gt;Glad to hear that the solution provided helps.&amp;nbsp;We are closing this thread as the issue got resolved. Feel free to&amp;nbsp;raise a new thread in case of any further issues&lt;BR /&gt;Have a good day!&lt;BR /&gt;Regards,&lt;BR /&gt;Prasanth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 06:55:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Invalid-communicator-issue-with-PMPI-Allreduce/m-p/1179919#M6713</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-01-30T06:55:25Z</dc:date>
    </item>
  </channel>
</rss>

