<?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: [itac + mpich] Invalid communicatorFatal error in MPI_Comm_ in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866395#M1695</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/198675"&gt;Gergana Slavova (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Hi Mattieu,&lt;/P&gt;
&lt;P&gt;Thanks for posting and welcome to the HPC forums.&lt;/P&gt;
&lt;P&gt;It would be great to know how you build your application with libVT. For example, the Intel Trace Collector also requires that the following libraries are linked in in addition to libVT: &lt;CODE style="white-space:normal"&gt;-ldwarf -lelf -lvtunwind -lnsl -lm -ldl -lpthread&lt;/CODE&gt;. Is that true for you? If you're not comfortable providing that information in a public forum, feel free to submit an issue via the &lt;A href="https://premier.intel.com" target="_blank"&gt;Intel Premier Support&lt;/A&gt; webpage.&lt;/P&gt;
&lt;P&gt;It would also be great to try out a small Hello World application with &lt;CODE style="white-space:normal"&gt;LD_PRELOAD&lt;/CODE&gt;, mpich, and the Intel Trace Collector, and see if that works. I can provide one to you, or, if you have the Intel MPI Library installed, one is available in the &lt;CODE style="white-space:normal"&gt;&lt;INSTALL_DIR&gt;/test&lt;/INSTALL_DIR&gt;&lt;/CODE&gt; directory.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer.&lt;BR /&gt;&lt;BR /&gt;I have followed your suggestion : I use test.f90 from intel MPI test directory.&lt;BR /&gt;&lt;BR /&gt;1. I source ifort, itac environment (I set mpich when I source itac) and mpich environment.&lt;BR /&gt;&lt;BR /&gt;2. The compilation command :&lt;BR /&gt;&lt;BR /&gt;ifort test.f90 -I/users/matt/mpich2install/include/ -L/users/matt/mpich2install/lib -L$VT_SLIB_DIR -lVT -ldwarf -lelf -lvtunwind -lnsl -lm -ldl -lpthread -lfmpich -lmpich -lrt -Wl,--allow-shlib-undefined -o test&lt;BR /&gt;&lt;BR /&gt;(I have to put -Wl,--allow-shlib-undefined (according to itac doc). Without this linker option, I get &lt;BR /&gt;slib_mpich/libVT.so: undefined reference to `PMPIO_Wait'...)&lt;BR /&gt;&lt;BR /&gt;3.&lt;BR /&gt;&lt;BR /&gt;I run "test"&lt;BR /&gt;~/mpich2install/bin/mpirun -n 4 ./test&lt;BR /&gt;&lt;BR /&gt;And I get same kind of error :&lt;BR /&gt;&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff1830d4b0) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicator[cli_0]: aborting job:&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff1830d4b0) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicator&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff30a9dc30) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff6026b3b0) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicator[cli_1]: aborting job:&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff6026b3b0) fail&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Of course without lVT, the program runs correctly...&lt;BR /&gt;&lt;BR /&gt;I have also tested with the LD_PRELOAD method, and static linking method, and I have always the same error...&lt;BR /&gt;&lt;BR /&gt;My mpich version : mpich2 v.1.0.8&lt;BR /&gt;ifort v.11.1.038&lt;BR /&gt;itac : 7.2.1.008&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Matthieu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Jul 2009 13:51:50 GMT</pubDate>
    <dc:creator>matt_o</dc:creator>
    <dc:date>2009-07-02T13:51:50Z</dc:date>
    <item>
      <title>[itac + mpich] Invalid communicatorFatal error in MPI_Comm_dup</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866393#M1693</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I use ITAC (v7.2.1.008) and mpich2. I source the itac environment with the mpich flag (ie : source itac/7.2.1.008/bin/itacvars.sh mpich).&lt;BR /&gt;&lt;BR /&gt;All the compilation is done by ifort and icc&lt;BR /&gt;&lt;BR /&gt;I set LD_PRELOAD with LD_PRELOAD = $VT_SLIB_DIR/libVT.so&lt;BR /&gt;&lt;BR /&gt;When I launch my app with mpirun I get :&lt;BR /&gt;&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(195): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff236f67a0) failed&lt;BR /&gt;MPI_Comm_dup(103): Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(195): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff84faafa0) failed&lt;BR /&gt;MPI_Comm_dup(103): Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(195): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff95c4e610) failed&lt;BR /&gt;MPI_Comm_dup(103): Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(195): MPI_Comm_dup(comm=0x5b, new_comm=0x7fffd7d51a10) failed&lt;BR /&gt;MPI_Comm_dup(103): Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(195): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff0054c160) failed&lt;BR /&gt;MPI_Comm_dup(103): Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(195): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff400a8a80) failed&lt;BR /&gt;MPI_Comm_dup(103): Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(195): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff684344f0) failed&lt;BR /&gt;(.............)&lt;BR /&gt;&lt;BR /&gt;Without LD_PRELOAD, there is no error.&lt;BR /&gt;I have tested with intel mpi v.3, and no error too.&lt;BR /&gt;&lt;BR /&gt;I have this problem only when I use mpich.&lt;BR /&gt;&lt;BR /&gt;What is wrong ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Matthieu</description>
      <pubDate>Wed, 01 Jul 2009 08:30:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866393#M1693</guid>
      <dc:creator>matt_o</dc:creator>
      <dc:date>2009-07-01T08:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: [itac + mpich] Invalid communicatorFatal error in MPI_Comm_</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866394#M1694</link>
      <description>&lt;P&gt;Hi Mattieu,&lt;/P&gt;
&lt;P&gt;Thanks for posting and welcome to the HPC forums.&lt;/P&gt;
&lt;P&gt;It would be great to know how you build your application with libVT. For example, the Intel Trace Collector also requires that the following libraries are linked in in addition to libVT: &lt;CODE style="white-space:normal"&gt;-ldwarf -lelf -lvtunwind -lnsl -lm -ldl -lpthread&lt;/CODE&gt;. Is that true for you? If you're not comfortable providing that information in a public forum, feel free to submit an issue via the &lt;A href="https://premier.intel.com" target="_blank"&gt;Intel Premier Support&lt;/A&gt; webpage.&lt;/P&gt;
&lt;P&gt;It would also be great to try out a small Hello World application with &lt;CODE style="white-space:normal"&gt;LD_PRELOAD&lt;/CODE&gt;, mpich, and the Intel Trace Collector, and see if that works. I can provide one to you, or, if you have the Intel MPI Library installed, one is available in the &lt;CODE style="white-space:normal"&gt;&lt;INSTALL_DIR&gt;/test&lt;/INSTALL_DIR&gt;&lt;/CODE&gt; directory.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2009 23:28:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866394#M1694</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2009-07-01T23:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: [itac + mpich] Invalid communicatorFatal error in MPI_Comm_</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866395#M1695</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/198675"&gt;Gergana Slavova (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Hi Mattieu,&lt;/P&gt;
&lt;P&gt;Thanks for posting and welcome to the HPC forums.&lt;/P&gt;
&lt;P&gt;It would be great to know how you build your application with libVT. For example, the Intel Trace Collector also requires that the following libraries are linked in in addition to libVT: &lt;CODE style="white-space:normal"&gt;-ldwarf -lelf -lvtunwind -lnsl -lm -ldl -lpthread&lt;/CODE&gt;. Is that true for you? If you're not comfortable providing that information in a public forum, feel free to submit an issue via the &lt;A href="https://premier.intel.com" target="_blank"&gt;Intel Premier Support&lt;/A&gt; webpage.&lt;/P&gt;
&lt;P&gt;It would also be great to try out a small Hello World application with &lt;CODE style="white-space:normal"&gt;LD_PRELOAD&lt;/CODE&gt;, mpich, and the Intel Trace Collector, and see if that works. I can provide one to you, or, if you have the Intel MPI Library installed, one is available in the &lt;CODE style="white-space:normal"&gt;&lt;INSTALL_DIR&gt;/test&lt;/INSTALL_DIR&gt;&lt;/CODE&gt; directory.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer.&lt;BR /&gt;&lt;BR /&gt;I have followed your suggestion : I use test.f90 from intel MPI test directory.&lt;BR /&gt;&lt;BR /&gt;1. I source ifort, itac environment (I set mpich when I source itac) and mpich environment.&lt;BR /&gt;&lt;BR /&gt;2. The compilation command :&lt;BR /&gt;&lt;BR /&gt;ifort test.f90 -I/users/matt/mpich2install/include/ -L/users/matt/mpich2install/lib -L$VT_SLIB_DIR -lVT -ldwarf -lelf -lvtunwind -lnsl -lm -ldl -lpthread -lfmpich -lmpich -lrt -Wl,--allow-shlib-undefined -o test&lt;BR /&gt;&lt;BR /&gt;(I have to put -Wl,--allow-shlib-undefined (according to itac doc). Without this linker option, I get &lt;BR /&gt;slib_mpich/libVT.so: undefined reference to `PMPIO_Wait'...)&lt;BR /&gt;&lt;BR /&gt;3.&lt;BR /&gt;&lt;BR /&gt;I run "test"&lt;BR /&gt;~/mpich2install/bin/mpirun -n 4 ./test&lt;BR /&gt;&lt;BR /&gt;And I get same kind of error :&lt;BR /&gt;&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff1830d4b0) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicator[cli_0]: aborting job:&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff1830d4b0) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicator&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff30a9dc30) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicatorFatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff6026b3b0) failed&lt;BR /&gt;MPI_Comm_dup(95).: Invalid communicator[cli_1]: aborting job:&lt;BR /&gt;Fatal error in MPI_Comm_dup: Invalid communicator, error stack:&lt;BR /&gt;MPI_Comm_dup(167): MPI_Comm_dup(comm=0x5b, new_comm=0x7fff6026b3b0) fail&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Of course without lVT, the program runs correctly...&lt;BR /&gt;&lt;BR /&gt;I have also tested with the LD_PRELOAD method, and static linking method, and I have always the same error...&lt;BR /&gt;&lt;BR /&gt;My mpich version : mpich2 v.1.0.8&lt;BR /&gt;ifort v.11.1.038&lt;BR /&gt;itac : 7.2.1.008&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Matthieu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jul 2009 13:51:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866395#M1695</guid>
      <dc:creator>matt_o</dc:creator>
      <dc:date>2009-07-02T13:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: [itac + mpich] Invalid communicatorFatal error in MPI_Comm_</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866396#M1696</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/434089"&gt;matt.o&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I use ITAC (v7.2.1.008) and mpich2. I source the itac environment with the mpich flag (ie : source itac/7.2.1.008/bin/itacvars.sh mpich).&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hi &lt;EM&gt;Matthieu,&lt;BR /&gt;&lt;BR /&gt;Could you try to use &lt;/EM&gt;&lt;EM&gt;itacvars.sh mpich&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="color: #ff0000;"&gt;2&lt;SPAN style="color: #000000;"&gt;.&lt;BR /&gt;mpich1 and mpich2 have absolutely different libraries.&lt;BR /&gt;&lt;BR /&gt;Best wishes,&lt;BR /&gt; Dmitry&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;</description>
      <pubDate>Tue, 07 Jul 2009 14:07:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/itac-mpich-Invalid-communicatorFatal-error-in-MPI-Comm-dup/m-p/866396#M1696</guid>
      <dc:creator>Dmitry_K_Intel2</dc:creator>
      <dc:date>2009-07-07T14:07:42Z</dc:date>
    </item>
  </channel>
</rss>

