<?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 all, in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077491#M4833</link>
    <description>&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;Sorry this thread is a little old.&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;I think this highlights a bug in the mpif90 script / wrapper.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;When we &lt;/SPAN&gt;set&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;I_MPI_F90=ifort, we expect the underlying compiler for the mpif90 wrapper to switch to ifort, so that programmers don't need to change their build scripts when switching between intel and gnu compilers. This almost works, except for one small bug.&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;To reproduce:
	&lt;PRE class="brush:bash;"&gt;bash:~$ source /path/to/psxevars.sh # located in &amp;lt;install-dir&amp;gt;/parallel_studio_xe_&amp;lt;version&amp;gt;.x.xxx/bin
bash:~$ export I_MPI_F90=ifort # should cause mpif90 to use ifort instead of gfortran
bash:~$ mpif90 -show
bash:~$ mpiifort -show&lt;/PRE&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;The last two commands should return identical build commands. They don't.&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;An extra "/gfortran" is incorrectly attached to the end of the include string.&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;One workaround is to modify your build script to use mpiifort instead of mpif90.&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;I believe this issue can be fixed by editing the mpif90 script (vim `which mpif90`), and replacing the line:&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;
	&lt;PRE class="brush:bash;"&gt;modincdir="${modincdir}/gfortran${gver}"&lt;/PRE&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;with this slight modification&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;
	&lt;PRE class="brush:bash;"&gt;if [ "$FC" = gfortran ]; then
    modincdir="${modincdir}/gfortran${gver}"
fi&lt;/PRE&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;The gfortran include directory should only be included if gfortran is the underlying compiler. I'm not able to test this on my system, as I am not the administrator. Perhaps someone from Intel could comment on the validity.&lt;/DIV&gt;</description>
    <pubDate>Fri, 26 May 2017 08:47:00 GMT</pubDate>
    <dc:creator>Sean_D_2</dc:creator>
    <dc:date>2017-05-26T08:47:00Z</dc:date>
    <item>
      <title>Linux Intel Fortran 2017 Update 1: problem with MPI mod files</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077475#M4817</link>
      <description>&lt;P&gt;Prior to 2017 Update 1, all worked well.&lt;/P&gt;

&lt;P&gt;After 2017 Update 1, when compiling I get the error:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;error #7013: This module file was not generated by any release of this compiler. &amp;nbsp; [MPI]&lt;/P&gt;

&lt;P&gt;which is associated with the line&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;use MPI&lt;/P&gt;

&lt;P&gt;Do I now need to "build" these mod files (the same way that I have to build the interfaces to LAPACK95 and BLAS95)?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 19:25:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077475#M4817</guid>
      <dc:creator>paul_g_1</dc:creator>
      <dc:date>2016-11-05T19:25:26Z</dc:date>
    </item>
    <item>
      <title>Whose MPI provided the module</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077476#M4818</link>
      <description>&lt;P&gt;Whose MPI provided the module, since that's not a component of Intel Fortran. It could be Intel MPI if you have the Cluster Edition.&lt;/P&gt;

&lt;P&gt;What is the include path for this compile? Please attach a .gzipped version of the mpi.mod you think it is referencing.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 21:38:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077476#M4818</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-05T21:38:16Z</dc:date>
    </item>
    <item>
      <title>It's Intel MPI; I installed</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077477#M4819</link>
      <description>&lt;P&gt;It's Intel MPI; I installed the Cluster Edition.&lt;/P&gt;

&lt;P&gt;Here are my environment variables that include the string INTEL:&lt;/P&gt;

&lt;P&gt;INTEL_BASE_PATH=/opt/intel/compilers_and_libraries/linux&lt;BR /&gt;
	INTEL_LICENSE_FILE=/opt/intel/compilers_and_libraries_2017.1.132/linux/licenses:/opt/intel/licenses:/home/pgomme/intel/licenses&lt;BR /&gt;
	INTEL_MKL_PATH=/opt/intel/compilers_and_libraries/linux/mkl/lib/mic&lt;BR /&gt;
	INTEL_PYTHONHOME=/opt/intel/debugger_2017/python/intel64/&lt;BR /&gt;
	INTEL_TARGET_ARCH=intel64&lt;BR /&gt;
	INTEL_TARGET_PLATFORM=linux&lt;/P&gt;

&lt;P&gt;(Is there an easier way to determine my include path?)&lt;/P&gt;

&lt;P&gt;Here's something that works: I compiled with&lt;/P&gt;

&lt;P&gt;-I/opt/intel/compilers_and_libraries_2017.1.132/linux/mpi/intel64/include/&lt;/P&gt;

&lt;P&gt;Compiler success also using&lt;/P&gt;

&lt;P&gt;-I/opt/intel/compilers_and_libraries_2017.1.132/linux/mpi/mic/include/&lt;/P&gt;

&lt;P&gt;And, failure if I use&lt;/P&gt;

&lt;P&gt;-I/opt/intel/compilers_and_libraries_2017.1.132/linux/mpi/mic/include/gfortran/4.7.0/&lt;/P&gt;

&lt;P&gt;Not surprising since I'm not using the GNU Fortran compiler.&lt;/P&gt;

&lt;P&gt;I haven't attached any mpi.mod files since I'm not all sure which one I should attach (running find tells me there are 20 mpi.mod files installed under /opt/intel). Clearly, the ones associated with the intel64 and mic directories are OK. I guess the question is why the compiler isn't seeing these. I've run a diff on mpif90 between the original release of the product (2017.0.098) and update 1 (2017.1.132) and see nothing that seems wrong.&lt;/P&gt;

&lt;P&gt;Paul&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 23:08:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077477#M4819</guid>
      <dc:creator>paul_g_1</dc:creator>
      <dc:date>2016-11-05T23:08:52Z</dc:date>
    </item>
    <item>
      <title>How are you establishing the</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077478#M4820</link>
      <description>&lt;P&gt;How are you establishing the compiler environment? INCLUDE is the environment variable it looks for.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 20:20:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077478#M4820</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-06T20:20:59Z</dc:date>
    </item>
    <item>
      <title>echo $INCLUDE yields nothing</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077479#M4821</link>
      <description>&lt;P&gt;echo $INCLUDE yields nothing (i.e., blank). I use my own environment variable (so that I don't tromp all over default environment variables), MY_INCLUDE; its value is&lt;/P&gt;

&lt;P&gt;-I/opt/intel/compilers_and_libraries/linux/mkl/include/intel64/lp64 -I/home/pgomme/f90/Library -mkl=parallel&lt;/P&gt;

&lt;P&gt;In case it helps, here's the command that's being run to compile my program:&lt;/P&gt;

&lt;P&gt;mpif90 model4mpi.f90 ql.o nlpqly.o nlpqlp.o -I/opt/intel/compilers_and_libraries/linux/mkl/include/intel64/lp64 -I/home/pgomme/f90/Library -mkl=parallel -o model4mpi -O0 &amp;nbsp;-L/home/pgomme/f90/Library -lgomme -lmkl_lapack95_lp64 -lmkl_blas95_lp64&lt;/P&gt;

&lt;P&gt;And here are lines from my .bashrc file:&lt;/P&gt;

&lt;P&gt;export I_MPI_F90=ifort&lt;BR /&gt;
	INTEL_BASE_PATH=/opt/intel/compilers_and_libraries/linux&lt;BR /&gt;
	INTEL_MKL_PATH=$INTEL_BASE_PATH/mkl/lib/intel64&lt;BR /&gt;
	# For MPI programming&lt;BR /&gt;
	source $INTEL_BASE_PATH/mpi/bin64/mpivars.sh&lt;BR /&gt;
	source $INTEL_BASE_PATH/bin/compilervars.sh intel64&lt;/P&gt;

&lt;P&gt;export MY_LIBS="-L$HOME/f90/Library -lgomme -lmkl_lapack95_lp64 -lmkl_blas95_lp64"&lt;BR /&gt;
	export MY_INCLUDE="-I$INTEL_BASE_PATH/mkl/include/intel64/lp64 -I$HOME/f90/Library -mkl=parallel"&lt;/P&gt;

&lt;P&gt;export PROFILE_INCPATHS=$MY_INCLUDE&lt;BR /&gt;
	export PROFILE_PRELIB=$MY_LIBS&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 20:33:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077479#M4821</guid>
      <dc:creator>paul_g_1</dc:creator>
      <dc:date>2016-11-06T20:33:55Z</dc:date>
    </item>
    <item>
      <title>The compiler looks at INCLUDE</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077480#M4822</link>
      <description>&lt;P&gt;The compiler looks at INCLUDE. It knows nothing about MY_INCLUDE. You're including only MKL files, not Intel MPI or the compiler's own modules. I don't know what the mpif90 command adds.&lt;/P&gt;

&lt;P&gt;I recommend using the provided ifortvars.sh (.csh) file, "source" it to get the appropriate things set up. You should also check the Intel MPI documentation to see what, if anything, you need for its environments.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 20:55:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077480#M4822</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-06T20:55:41Z</dc:date>
    </item>
    <item>
      <title>ifortvars.sh is symlinked to</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077481#M4823</link>
      <description>&lt;P&gt;ifortvars.sh is symlinked to compilervars.sh which I'm already sourcing.&lt;/P&gt;

&lt;P&gt;I know that the compiler doesn't know about MY_INCLUDE; I use it in my Makefile.&lt;/P&gt;

&lt;P&gt;Here's the thing: The original release of Intel Fortran 2017 works just fine. The update evidently "breaks" something.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 21:05:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077481#M4823</guid>
      <dc:creator>paul_g_1</dc:creator>
      <dc:date>2016-11-06T21:05:31Z</dc:date>
    </item>
    <item>
      <title>You'll need to identify which</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077482#M4824</link>
      <description>&lt;P&gt;You'll need to identify which .mod it's complaining about. Adding -list and examining the .lst file for the list of options might provide a clue.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 23:53:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077482#M4824</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-06T23:53:15Z</dc:date>
    </item>
    <item>
      <title>I hate to disagree with Steve</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077483#M4825</link>
      <description>&lt;P&gt;I hate to disagree with Steve, but the compiler does not use an INCLUDE environment variable on Linux.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Add "-dryrun" (without the quotes) to your command, and post the output please.&amp;nbsp;&amp;nbsp; You can obfuscate your directory names if you want, but&amp;nbsp; keep ours of course.&lt;/P&gt;

&lt;P&gt;What is happening is that one of those 20 mpi.mod files is being found in one of the directories added by -I&amp;lt;dir&amp;gt; and that incorrectly-found mod file was not compiled for Intel64.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We just need to figure out why.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks --&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 14:38:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077483#M4825</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2016-11-07T14:38:13Z</dc:date>
    </item>
    <item>
      <title>I was misled by the</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077484#M4826</link>
      <description>&lt;P&gt;I was misled by the documentation - sorry about that. Lorri is, of course, correct.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 15:13:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077484#M4826</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-07T15:13:01Z</dc:date>
    </item>
    <item>
      <title>I'm attaching 2 files. make</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077485#M4827</link>
      <description>&lt;P&gt;I'm attaching 2 files. make-2017.txt is from my desktop (with the 2017 product installed, no update). make_2017_update1.txt is from another machine with the 2017 update 1 applied. I took a quick look and noticed that the one that works (2017 no update) has an include that &amp;nbsp;has a line&lt;/P&gt;

&lt;P&gt;-I/opt/intel/compilers_and_libraries_2017.0.098/linux/mpi/intel64/include/gfortran&lt;/P&gt;

&lt;P&gt;(which as 8 subdirectories and nothing else) while the one that doesn't work (the update 1) reads&lt;/P&gt;

&lt;P&gt;-I/opt/intel/compilers_and_libraries_2017.1.132/linux/mpi/intel64/include/gfortran/5.1.0&lt;/P&gt;

&lt;P&gt;which points to a directory with 4 mod files (mpi.mod, mpi_base.mod, mpi_constants.mod, mpi_sizeofs.mod).&lt;/P&gt;

&lt;P&gt;One work around I found was to copy the relevant mod files into /usr/local/include.&lt;/P&gt;

&lt;P&gt;Paul&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 19:06:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077485#M4827</guid>
      <dc:creator>paul_g_1</dc:creator>
      <dc:date>2016-11-07T19:06:23Z</dc:date>
    </item>
    <item>
      <title>It reads to me as if a</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077486#M4828</link>
      <description>&lt;P&gt;It reads to me as if a gfortran install got put in on top of Intel Fortran. There should be NO gfortran folders or files inside an Intel compiler install. This is not normal. The compiler is seeing the gfortran version of mpi.mod and appropriately complaining.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 20:23:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077486#M4828</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-07T20:23:17Z</dc:date>
    </item>
    <item>
      <title>Steve,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077487#M4829</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;

&lt;P&gt;Several things.&lt;/P&gt;

&lt;P&gt;(1) The machine that I used to give you the output from make_2017_update1.txt is a pretty clean install of Linux Mint 18. I can check (later) if Linux Mint installs gfortran by default. Certainly, I didn't install it on my own.&lt;/P&gt;

&lt;P&gt;(2) My desktop machine (make_2017.txt) compiles just fine. So, it seems that there's some change in update1.&lt;/P&gt;

&lt;P&gt;(3) Why should the Intel Fortran installer "care" that gfortran is installed on my machine. Maybe I need gfortran for instructional purposes. Maybe I want to compare the performance of gfortran relative to Intel Fortran.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 21:04:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077487#M4829</guid>
      <dc:creator>paul_g_1</dc:creator>
      <dc:date>2016-11-07T21:04:32Z</dc:date>
    </item>
    <item>
      <title>Ok, I think I see now. It's</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077488#M4830</link>
      <description>&lt;P&gt;Ok, I think I see now. It's Intel MPI that installed gfortran .mod files under its part of the tree, and it's Intel MPI that is "polluting" the ifort command with the gfortran-compatible .mod files. I'm not familiar with how Intel MPI does its install and configuration to know if that's a bug or something else. I'm going to move this to the Clustering Technology forum to get an Intel MPI expert to take a look.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 21:30:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077488#M4830</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-11-07T21:30:55Z</dc:date>
    </item>
    <item>
      <title>In Intel MPI, mpif90 without</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077489#M4831</link>
      <description>&lt;P&gt;In Intel MPI, mpif90 without the -fc=ifort option invokes gfortran.&amp;nbsp; This won't play with ifort (not only because of the incompatible .mod files).&amp;nbsp; Use the fc option or the mpiifort spelling.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 23:23:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077489#M4831</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-11-07T23:23:54Z</dc:date>
    </item>
    <item>
      <title>mpiifort works. Thanks. Feel</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077490#M4832</link>
      <description>&lt;P&gt;mpiifort works. Thanks. Feel free to close this topic (I don't see that I can do so).&lt;/P&gt;

&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 14:12:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077490#M4832</guid>
      <dc:creator>paul_g_1</dc:creator>
      <dc:date>2016-11-10T14:12:21Z</dc:date>
    </item>
    <item>
      <title>Hi all,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077491#M4833</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;Sorry this thread is a little old.&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;I think this highlights a bug in the mpif90 script / wrapper.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;When we &lt;/SPAN&gt;set&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;I_MPI_F90=ifort, we expect the underlying compiler for the mpif90 wrapper to switch to ifort, so that programmers don't need to change their build scripts when switching between intel and gnu compilers. This almost works, except for one small bug.&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;To reproduce:
	&lt;PRE class="brush:bash;"&gt;bash:~$ source /path/to/psxevars.sh # located in &amp;lt;install-dir&amp;gt;/parallel_studio_xe_&amp;lt;version&amp;gt;.x.xxx/bin
bash:~$ export I_MPI_F90=ifort # should cause mpif90 to use ifort instead of gfortran
bash:~$ mpif90 -show
bash:~$ mpiifort -show&lt;/PRE&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;The last two commands should return identical build commands. They don't.&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;An extra "/gfortran" is incorrectly attached to the end of the include string.&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;One workaround is to modify your build script to use mpiifort instead of mpif90.&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;I believe this issue can be fixed by editing the mpif90 script (vim `which mpif90`), and replacing the line:&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;
	&lt;PRE class="brush:bash;"&gt;modincdir="${modincdir}/gfortran${gver}"&lt;/PRE&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;with this slight modification&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;
	&lt;PRE class="brush:bash;"&gt;if [ "$FC" = gfortran ]; then
    modincdir="${modincdir}/gfortran${gver}"
fi&lt;/PRE&gt;
&lt;/DIV&gt;

&lt;DIV style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"&gt;The gfortran include directory should only be included if gfortran is the underlying compiler. I'm not able to test this on my system, as I am not the administrator. Perhaps someone from Intel could comment on the validity.&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 May 2017 08:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077491#M4833</guid>
      <dc:creator>Sean_D_2</dc:creator>
      <dc:date>2017-05-26T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Sean D. wrote:</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077492#M4834</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Sean D. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Sorry this thread is a little old.&amp;nbsp;I think this highlights a bug in the mpif90 script / wrapper.&lt;/P&gt;

&lt;P&gt;When we set&amp;nbsp;I_MPI_F90=ifort, we expect the underlying compiler for the mpif90 wrapper to switch to ifort, so that programmers don't need to change their build scripts when switching between intel and gnu compilers. This almost works, except for one small bug.&lt;/P&gt;

&lt;P&gt;To reproduce:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;bash:~$ source /path/to/psxevars.sh # located in &amp;lt;install-dir&amp;gt;/parallel_studio_xe_&amp;lt;version&amp;gt;.x.xxx/bin
bash:~$ export I_MPI_F90=ifort # should cause mpif90 to use ifort instead of gfortran
bash:~$ mpif90 -show
bash:~$ mpiifort -show&lt;/PRE&gt;

&lt;P&gt;The last two commands should return identical build commands. They don't.&lt;/P&gt;

&lt;P&gt;An extra "/gfortran" is incorrectly attached to the end of the include string.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;One workaround is to modify your build script to use mpiifort instead of mpif90.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I believe this issue can be fixed by editing the mpif90 script (vim `which mpif90`), and replacing the line:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;modincdir="${modincdir}/gfortran${gver}"&lt;/PRE&gt;

&lt;P&gt;with this slight modification&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;if [ "$FC" = gfortran ]; then
    modincdir="${modincdir}/gfortran${gver}"
fi&lt;/PRE&gt;

&lt;P&gt;The gfortran include directory should only be included if gfortran is the underlying compiler. I'm not able to test this on my system, as I am not the administrator. Perhaps someone from Intel could comment on the validity.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thanks for pointing out this issue and workaround. We were seeing the same issue (and opened a ticket&lt;/P&gt;

&lt;P&gt;about it, still waiting on a response).&lt;/P&gt;

&lt;P&gt;The really funny thing about this is that the mpif90 from&amp;nbsp;2017.0.098 only worked correctly because of&lt;/P&gt;

&lt;P&gt;another bug that prevented the correct modincdir to be added for gfortran (otherwise this would&lt;/P&gt;

&lt;P&gt;have been broken earlier). I get that Intel appears to want everyone to use mpiifort rather than&lt;/P&gt;

&lt;P&gt;mpif90, but we have a lot of legacy software that would need a lot of changes just to use the&lt;/P&gt;

&lt;P&gt;newer versions of Intel compilers and MPI. It seems to me that fixing mpif90 is the way to go.&lt;/P&gt;

&lt;P&gt;-Nick&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 21:03:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Linux-Intel-Fortran-2017-Update-1-problem-with-MPI-mod-files/m-p/1077492#M4834</guid>
      <dc:creator>borgcluster</dc:creator>
      <dc:date>2017-08-08T21:03:00Z</dc:date>
    </item>
  </channel>
</rss>

