<?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 mpich2, like any open source in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962547#M95028</link>
    <description>&lt;P&gt;mpich2, like any open source MPI, normally has to be built for each compiler.&amp;nbsp; It may have a flag like some do, on the order of&lt;/P&gt;
&lt;P&gt;mpif90 -fc=ifort&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which can over-ride the compiler it was built for.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2013 01:48:41 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2013-03-07T01:48:41Z</dc:date>
    <item>
      <title>Help with MPI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962542#M95023</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp; Dear all,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I was wondering if anyone in here could help me compile a code on a Linux x86_64 system using MPI.&amp;nbsp;&amp;nbsp;&amp;nbsp; I was able to compile and run the code for a single processor using the following compiler's options:&lt;BR /&gt;CC = cc&lt;BR /&gt;CPP = cpp -traditional&lt;BR /&gt;F77 = ifort&lt;BR /&gt;FORT_FLAGS = -r8 -O3 -convert big_endian -I$(MKLROOT)/include&lt;BR /&gt;LOAD_FLAGS = -r8 -O3 -convert big_endian&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The problem starts when I try to compile for MPI.&amp;nbsp;&amp;nbsp; I've changed the options to:&lt;BR /&gt;CC = mpicc&lt;BR /&gt;CPP = cpp -traditional&lt;BR /&gt;F77 = mpif90&lt;BR /&gt;FORT_FLAGS = -r8 -O3 -convert big_endian -I$(MKLROOT)/include&lt;BR /&gt;LOAD_FLAGS = -r8 -O3 -convert big_endian&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The compilation seems to go OK, but now I am getting the following error messages during linking&lt;BR /&gt;gsmini.ssib.o: In function `gsmini_':&lt;BR /&gt;gsmini.ssib.f:(.text+0x28): undefined reference to `mpdimset_'&lt;BR /&gt;gsmini.ssib.f:(.text+0x87c): undefined reference to `mpgf2p_'&lt;BR /&gt;gsmini.ssib.f:(.text+0xe6d): undefined reference to `mpgf2p_'&lt;BR /&gt;gsmini.ssib.f:(.text+0xf52): undefined reference to `mpgf2p_'&lt;BR /&gt;gsmini.ssib.f:(.text+0x1040): undefined reference to `mpgf2p_'&lt;BR /&gt;gsmini.ssib.f:(.text+0x112e): undefined reference to `mpgf2p_'&lt;BR /&gt;output.ssib.f:(.text+0x183): undefined reference to `mpabort_'&lt;BR /&gt;output.ssib.f:(.text+0x381): undefined reference to `mpgp2f_'&lt;BR /&gt;output.ssib.f:(.text+0x462): undefined reference to `mpgp2f_'&lt;BR /&gt;output.ssib.f:(.text+0x543): undefined reference to `mpgp2f_'&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; What am I missing?&amp;nbsp; Shouldn't the mpif90 wrapper take care of all MPI libraries and options? &lt;BR /&gt;&amp;nbsp;&amp;nbsp; This is my first time working on a Linux system. Any suggestion on how to solve this problem will be appreciated.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Thank you for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FerDS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 02:45:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962542#M95023</guid>
      <dc:creator>FerDS</dc:creator>
      <dc:date>2013-03-06T02:45:04Z</dc:date>
    </item>
    <item>
      <title>You don't get the Intel</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962543#M95024</link>
      <description>&lt;P&gt;You don't get the Intel compilers this way:&amp;nbsp; You need to use the wrappers F77=mpiifort, F90=mpiifort,&amp;nbsp; CC=mpiicc ( always double 'i') etc.&lt;/P&gt;
&lt;P&gt;Using mpif90 will call 'gfortran'.&amp;nbsp; You can verify this by adding switch "-v" - it will list you all the sub-commands invoked.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 10:24:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962543#M95024</guid>
      <dc:creator>Heinz_B_Intel</dc:creator>
      <dc:date>2013-03-06T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Heinz's reply refers to Intel</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962544#M95025</link>
      <description>&lt;P&gt;Heinz's reply refers to Intel MPI.&amp;nbsp; You appear to be using an MPI which is a wrapper for pg fortran.&amp;nbsp; You must not mix implementations of Fortran which have incompatible run-time libraries.&lt;/P&gt;
&lt;P&gt;In a correctly set up installation, you will select among various MPI implementations which may be installed by setting PATH and LD_LIBRARY_PATH variables.&amp;nbsp; In the Intel MPI installation you would&lt;/P&gt;
&lt;P&gt;source /opt/impi/&amp;lt;version&amp;gt;/bin64/mpivars.sh&lt;/P&gt;
&lt;P&gt;for example, so as to make the mpiifort available, and keep the pgi MPI wrappers and libraries out of your paths.&lt;/P&gt;
&lt;P&gt;If you are installing an open source mpi yourself, you will build it against your compilers in accordance with the fine manuals provided by that mpi.&amp;nbsp; Then you will have an mpif90 consistent with your Fortran.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 12:17:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962544#M95025</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-03-06T12:17:42Z</dc:date>
    </item>
    <item>
      <title>  Thank you HeinzB and TimP. </title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962545#M95026</link>
      <description>&lt;P&gt;&amp;nbsp; Thank you HeinzB and TimP.&lt;BR /&gt;&amp;nbsp; To clarify, I am using Intel Fortran 12.1.5 and mpich2 to compile the code.&amp;nbsp; I believe both the compiler and mpich2 are correctly installed and set up (this system is part of a national laboratory computer cluster).&amp;nbsp; Both mpif90 and mpiifort wrappers produce the same results and same error messages.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I used to command 'module' to load the Intel Fortran compiler, MKL and&amp;nbsp;mpich2, so the paths should be properly set.&amp;nbsp; I haven't loaded any PGI nor GNU applications.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The LD_LIBRARY_PATH is set to /ncar/opt/intel/12.1.0.233/composer_xe_2011_sp1.11.339/compiler/lib/intel64:/ncar/opt/lsf/8.3/linux2.6-glibc2.3-x86_64/lib.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; The code was written to work with MPI.&amp;nbsp; I used to compile and run it on a IBM system without problems.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I think I might be missing some compiler option to make the compiler know it is MPI code.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Any suggestions?&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Thank you so much.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 17:13:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962545#M95026</guid>
      <dc:creator>FerDS</dc:creator>
      <dc:date>2013-03-06T17:13:00Z</dc:date>
    </item>
    <item>
      <title>First, as mentioned before,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962546#M95027</link>
      <description>&lt;P&gt;First, as mentioned before, mpif90 uses gfortran by default. You can change this e.g. by using option "-fc=ifort" to use the Intel compiler. Please check your version of mpif90 for details.&amp;nbsp;There might be an environment variable too to change this.&amp;nbsp;&amp;nbsp;It is a script and in the worst case, look at what is being done there.&lt;/P&gt;
&lt;P&gt;Second, I'm wondering about the undefined objects you list above. I don't see, that they are MPI items. Thus you seem to miss some other library.&lt;/P&gt;
&lt;P&gt;Please add the output of the mpif90 call after adding the "-v" switch. This will help to debug the issue&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 23:37:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962546#M95027</guid>
      <dc:creator>Heinz_B_Intel</dc:creator>
      <dc:date>2013-03-06T23:37:02Z</dc:date>
    </item>
    <item>
      <title>mpich2, like any open source</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962547#M95028</link>
      <description>&lt;P&gt;mpich2, like any open source MPI, normally has to be built for each compiler.&amp;nbsp; It may have a flag like some do, on the order of&lt;/P&gt;
&lt;P&gt;mpif90 -fc=ifort&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which can over-ride the compiler it was built for.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 01:48:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962547#M95028</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-03-07T01:48:41Z</dc:date>
    </item>
    <item>
      <title>   Hi HeinzB and TimP.   I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962548#M95029</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp; Hi HeinzB and TimP.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I checked the details on my mpif90 version. To override the gfrotran default the option is "-compile ifort".&amp;nbsp; I will use this option from now on,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I then recompiled the code adding the -v switch as suggested by HeinzB. The output log (log.txt) is attached to this message.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ESMF references at the bottom of output are related to the ESMF library which is available in the system, as described below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; family("esmf")&lt;BR /&gt;whatis("ESMF library version 3.1.0rp3")&lt;BR /&gt;help([[This module loads ESMF library version 3.1.0rp3 for Intel Compiler compiled with&lt;BR /&gt;&amp;nbsp; ESMF_COMPILER = intel&lt;BR /&gt;&amp;nbsp; ESMF_BOPT = O&lt;BR /&gt;&amp;nbsp; ESMF_COMM = mpich2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you again for the help and for teaching me about Linux compilers.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FerDS.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 02:46:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Help-with-MPI/m-p/962548#M95029</guid>
      <dc:creator>FerDS</dc:creator>
      <dc:date>2013-03-07T02:46:39Z</dc:date>
    </item>
  </channel>
</rss>

