<?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 Hey Anders, in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000906#M3775</link>
    <description>&lt;P&gt;Hey Anders,&lt;/P&gt;

&lt;P&gt;Thanks for the update.&amp;nbsp; I'm glad you have it working but I might suggest a shorter solution.&amp;nbsp; Start with step #1 and #2 above (by running mpivars.bat).&amp;nbsp; This should setup your environment so that the operating system can find all necessary include and link paths.&lt;/P&gt;

&lt;P&gt;Which compile command are you using?&amp;nbsp; If, for example, you're doing 'ifort', simply replace that by 'mpiifort' on your command line.&amp;nbsp; That will potentially replace your steps 3 to 6.&amp;nbsp; The mpiifort command is a wrapper around ifort that does things like "add &amp;lt;install_path&amp;gt;\include" to the x64 compiler includes directory list".&amp;nbsp; Your new list will look like this:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Install Cluster Studio XE 2015 Update 4&lt;/LI&gt;
	&lt;LI&gt;Go to C:\Program Files (x86)\Intel\MPI\5.0.3.048\intel64\bin and run mpivars.bat&lt;/LI&gt;
	&lt;LI&gt;Run "mpiifort test.c -o test"&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;After these steps, you should have an executable called 'test' which would be an MPI code.&lt;/P&gt;

&lt;P&gt;Let me know if this helps.&lt;/P&gt;

&lt;P&gt;~Gergana&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2015 19:24:04 GMT</pubDate>
    <dc:creator>Gergana_S_Intel</dc:creator>
    <dc:date>2015-07-14T19:24:04Z</dc:date>
    <item>
      <title>Trying to make MPI work in a QuickWin application</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000902#M3771</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This is my first try to enter MPI into a simple QuickWin program under Visual Studio 2010&lt;/P&gt;

&lt;P&gt;I first installed Cluster Studio 2015 update 4 on my i7 4910MQ Dell laptop as an x64 project. The simple code compiled, linked and run directly.&lt;/P&gt;

&lt;P&gt;Then I just added INCLUDE *mpif.h' on a new line after the IMPLICIT NONE line and got the compiler message error #5102 cannot open include file&lt;/P&gt;

&lt;P&gt;'mpif.h'.&lt;/P&gt;

&lt;P&gt;I then tried a number of ways to inform the compiler about the location of the mpif.h file but instead got a number of warnings and errors.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I have scanned a number of install documents and videos but I found no solution.&lt;/P&gt;

&lt;P&gt;So, how do I solve this?&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Anders S&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 21:10:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000902#M3771</guid>
      <dc:creator>Anders_S_1</dc:creator>
      <dc:date>2015-07-06T21:10:20Z</dc:date>
    </item>
    <item>
      <title>Hi Anders,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000903#M3772</link>
      <description>&lt;P&gt;Hi Anders,&lt;/P&gt;

&lt;P&gt;If you're just getting started, I would take a look at the simply Hello World applications we ship with the Intel MPI Library under the test/ directory (check out C:\Program Files (x86)\Intel\impi_5.0.3\test or C:\Program Files (x86)\Intel\impi_5.0.3\intel64\test).&lt;/P&gt;

&lt;P&gt;In your case, if it's not recognizing mpif.h, it might be that it just can't find it.&amp;nbsp; Make sure you run the mpivars.bat script prior to compiling or running your Intel MPI applications since that'll set your environment properly.&amp;nbsp; The mpivars.bat script should be located in the intel64/bin directory.&lt;/P&gt;

&lt;P&gt;Let me know how this helps.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	~Gergana&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 23:03:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000903#M3772</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2015-07-06T23:03:56Z</dc:date>
    </item>
    <item>
      <title>Hi Gergana,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000904#M3773</link>
      <description>&lt;P&gt;Hi Gergana,&lt;/P&gt;

&lt;P&gt;After your answer I&lt;EM&gt;&amp;nbsp;have run mpivars.bat. I can find mpif.h in three directories, which puzzles me. In directory&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;C:\Program Files (x86)\Intel I find&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;MPI, &amp;nbsp;IMPI &amp;nbsp;and impi_5.0.3 and all three have got mpif.h in a subdirectory.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;See my Quickwin project in attachment CS1.&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;See my include information in CS2.&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;See my lib information in CS3.&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;What have I missed?&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;What I told you above is all I have done after installing the Cluster Studio.&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;Best regards&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;Anders S&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 20:51:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000904#M3773</guid>
      <dc:creator>Anders_S_1</dc:creator>
      <dc:date>2015-07-07T20:51:15Z</dc:date>
    </item>
    <item>
      <title>Hi Gergana,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000905#M3774</link>
      <description>&lt;P&gt;Hi Gergana,&lt;/P&gt;

&lt;P&gt;I had a look in the "Intel MPI Library for Windows OS Installation Guide" and finally got the supplied test program to work.&lt;/P&gt;

&lt;P&gt;So here is my recipi:&lt;/P&gt;

&lt;P&gt;1. Install the Cluster Studio 2015 version 4 in Developer Studio 2010&lt;/P&gt;

&lt;P&gt;2. Enter the command mode, goto &amp;nbsp;C:\Program Files (x86)\Intel\MPI\5.0.3.048\intel64\bin and run mpivars.bat (necessary ?)&lt;/P&gt;

&lt;P&gt;3. Add&amp;nbsp;C:\Program Files (x86)\Intel\MPI\5.0.3.048\intel64\include to the x64 compiler Includes directory list&lt;/P&gt;

&lt;P&gt;4. Add &amp;nbsp;C:\Program Files (x86)\Intel\MPI\5.0.3.048\intel64\lib to the x64 compiler libraries directory list&lt;/P&gt;

&lt;P&gt;5. Add impi.lib to the Additional dependencies in the Linker Input page found in the Project Property pages.&lt;/P&gt;

&lt;P&gt;6. Now compilation and link shall work for the Fortran Hello World example named test found in&amp;nbsp;C:\Program Files (x86)\Intel\MPI\5.0.3.048\test&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Anders S&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:52:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000905#M3774</guid>
      <dc:creator>Anders_S_1</dc:creator>
      <dc:date>2015-07-10T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Hey Anders,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000906#M3775</link>
      <description>&lt;P&gt;Hey Anders,&lt;/P&gt;

&lt;P&gt;Thanks for the update.&amp;nbsp; I'm glad you have it working but I might suggest a shorter solution.&amp;nbsp; Start with step #1 and #2 above (by running mpivars.bat).&amp;nbsp; This should setup your environment so that the operating system can find all necessary include and link paths.&lt;/P&gt;

&lt;P&gt;Which compile command are you using?&amp;nbsp; If, for example, you're doing 'ifort', simply replace that by 'mpiifort' on your command line.&amp;nbsp; That will potentially replace your steps 3 to 6.&amp;nbsp; The mpiifort command is a wrapper around ifort that does things like "add &amp;lt;install_path&amp;gt;\include" to the x64 compiler includes directory list".&amp;nbsp; Your new list will look like this:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;Install Cluster Studio XE 2015 Update 4&lt;/LI&gt;
	&lt;LI&gt;Go to C:\Program Files (x86)\Intel\MPI\5.0.3.048\intel64\bin and run mpivars.bat&lt;/LI&gt;
	&lt;LI&gt;Run "mpiifort test.c -o test"&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;After these steps, you should have an executable called 'test' which would be an MPI code.&lt;/P&gt;

&lt;P&gt;Let me know if this helps.&lt;/P&gt;

&lt;P&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:24:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000906#M3775</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2015-07-14T19:24:04Z</dc:date>
    </item>
    <item>
      <title>Hi Gergana,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000907#M3776</link>
      <description>&lt;P&gt;Hi Gergana,&lt;/P&gt;

&lt;P&gt;I tried your suggested 3-step way but step 3 failed (see attached prinout)&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Anders S&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 18:47:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000907#M3776</guid>
      <dc:creator>Anders_S_1</dc:creator>
      <dc:date>2015-07-16T18:47:19Z</dc:date>
    </item>
    <item>
      <title>Ok, you found the 1 weakness</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000908#M3777</link>
      <description>&lt;P&gt;Ok, you found the 1 weakness in my list :)&amp;nbsp; I actually thought you were already using the Intel compilers so you were sourcing the compilervars.bat script.&lt;/P&gt;

&lt;P&gt;Here's the new list:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI abp="638"&gt;Install Cluster Studio XE 2015 Update 4&lt;/LI&gt;
	&lt;LI abp="639"&gt;Go to C:\Program Files (x86)\Intel\MPI\5.0.3.048\intel64\bin and run "mpivars.bat"&lt;/LI&gt;
	&lt;LI abp="639"&gt;Go to C:\Program Files (x86)\Intel\Composer XE 2015\bin and run "compilervars.bat intel64"&lt;/LI&gt;
	&lt;LI abp="640"&gt;Run "mpiifort test.c -o test"&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Let me know how that goes.&amp;nbsp; And let me know if you were instead using a different compiler.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	~Gergana&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 20:28:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000908#M3777</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2015-07-16T20:28:39Z</dc:date>
    </item>
    <item>
      <title>Hi Gergana,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000909#M3778</link>
      <description>&lt;P&gt;Hi Gergana,&lt;/P&gt;

&lt;P&gt;I tried the 4-step recipe but still point 4 failed. I noticed that no additions were made in the compiler include and lib parts (see attached file).&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;

&lt;P&gt;Anders S&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 06:58:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Trying-to-make-MPI-work-in-a-QuickWin-application/m-p/1000909#M3778</guid>
      <dc:creator>Anders_S_1</dc:creator>
      <dc:date>2015-07-18T06:58:26Z</dc:date>
    </item>
  </channel>
</rss>

