<?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 Intel Visual Studio MPI setup in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-Visual-Studio-MPI-setup/m-p/1070708#M4674</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I'm trying to set up and compile a code in Fortran with MPI libreries.This is the sample code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;PROGRAM main

USE MPI

IMPLICIT NONE

 TYPE tMPI
    INTEGER                           :: rank, nCPU, iErr, status
 END TYPE tMPI
 !
 TYPE(tMPI)                        :: MPIdata
 
    CALL MPI_INIT(MPIdata%iErr)
    CALL MPI_COMM_RANK(MPI_COMM_WORLD, MPIdata%rank, MPIdata%iErr)
    CALL MPI_COMM_SIZE(MPI_COMM_WORLD, MPIdata%nCPU, MPIdata%iErr)
    WRITE(*,*) 'Hallo world'

STOP
END PROGRAM&lt;/PRE&gt;

&lt;P&gt;And this is what I did:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;&lt;EM&gt;D&lt;/EM&gt;&lt;EM style="font-size: 1em; line-height: 1.5;"&gt;ebugging&amp;gt;Command&lt;/EM&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;: mpiexec.exe&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;EM&gt;D&lt;/EM&gt;&lt;EM style="font-size: 1em; line-height: 1.5;"&gt;ebugging&amp;gt;Command&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Arguments&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;-n 4&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;EM&gt;Linker &lt;/EM&gt;&amp;gt; &lt;EM&gt;General&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;EM&gt;Additional Library Directories&lt;/EM&gt;: $(MSMPI_LIB32)&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;EM&gt;Linker&amp;nbsp;&lt;/EM&gt;&amp;gt;&amp;nbsp;&lt;EM&gt;Input&amp;gt;Additional Dependencies&lt;/EM&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;msmpi.lib msmpifec.lib&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I also added&amp;nbsp;mpi.f90 from&amp;nbsp;“C:\Program Files\Microsoft HPC Pack 2008 R2\Inc” to my Source Files folder.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I obtained the following errors:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;error LNK2019: unresolved external symbol MPI_INIT referenced in function MAIN__	main.obj	
error LNK2019: unresolved external symbol MPI_COMM_RANK referenced in function MAIN__	main.obj	
error LNK2019: unresolved external symbol MPI_COMM_SIZE referenced in function MAIN__	main.obj	
fatal error LNK1120: 3 unresolved externals	x64\Release\prova.exe	
&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Sebastiano&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 11:23:47 GMT</pubDate>
    <dc:creator>Sebastiano_P_</dc:creator>
    <dc:date>2015-11-17T11:23:47Z</dc:date>
    <item>
      <title>Intel Visual Studio MPI setup</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-Visual-Studio-MPI-setup/m-p/1070708#M4674</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I'm trying to set up and compile a code in Fortran with MPI libreries.This is the sample code:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;PROGRAM main

USE MPI

IMPLICIT NONE

 TYPE tMPI
    INTEGER                           :: rank, nCPU, iErr, status
 END TYPE tMPI
 !
 TYPE(tMPI)                        :: MPIdata
 
    CALL MPI_INIT(MPIdata%iErr)
    CALL MPI_COMM_RANK(MPI_COMM_WORLD, MPIdata%rank, MPIdata%iErr)
    CALL MPI_COMM_SIZE(MPI_COMM_WORLD, MPIdata%nCPU, MPIdata%iErr)
    WRITE(*,*) 'Hallo world'

STOP
END PROGRAM&lt;/PRE&gt;

&lt;P&gt;And this is what I did:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;&lt;EM&gt;D&lt;/EM&gt;&lt;EM style="font-size: 1em; line-height: 1.5;"&gt;ebugging&amp;gt;Command&lt;/EM&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;: mpiexec.exe&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;EM&gt;D&lt;/EM&gt;&lt;EM style="font-size: 1em; line-height: 1.5;"&gt;ebugging&amp;gt;Command&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Arguments&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;-n 4&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;EM&gt;Linker &lt;/EM&gt;&amp;gt; &lt;EM&gt;General&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;EM&gt;Additional Library Directories&lt;/EM&gt;: $(MSMPI_LIB32)&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;EM&gt;Linker&amp;nbsp;&lt;/EM&gt;&amp;gt;&amp;nbsp;&lt;EM&gt;Input&amp;gt;Additional Dependencies&lt;/EM&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;msmpi.lib msmpifec.lib&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I also added&amp;nbsp;mpi.f90 from&amp;nbsp;“C:\Program Files\Microsoft HPC Pack 2008 R2\Inc” to my Source Files folder.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I obtained the following errors:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;error LNK2019: unresolved external symbol MPI_INIT referenced in function MAIN__	main.obj	
error LNK2019: unresolved external symbol MPI_COMM_RANK referenced in function MAIN__	main.obj	
error LNK2019: unresolved external symbol MPI_COMM_SIZE referenced in function MAIN__	main.obj	
fatal error LNK1120: 3 unresolved externals	x64\Release\prova.exe	
&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Sebastiano&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 11:23:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-Visual-Studio-MPI-setup/m-p/1070708#M4674</guid>
      <dc:creator>Sebastiano_P_</dc:creator>
      <dc:date>2015-11-17T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Dear Sebastiano,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-Visual-Studio-MPI-setup/m-p/1070709#M4675</link>
      <description>&lt;P&gt;Dear Sebastiano,&lt;/P&gt;

&lt;P&gt;It looks like you are trying to use Microsoft* MPI with Microsoft Visual Studio*.&lt;/P&gt;

&lt;P&gt;Please try Intel(R) MPI Library for Windows OS. How to use it with Microsoft Visual Studio described at the page &lt;A href="https://software.intel.com/ru-ru/node/535525"&gt;https://software.intel.com/ru-ru/node/535525&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;

&lt;P&gt;In other case, if you need to use Microsoft MPI, the following can be useful for you&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.technet.com/b/windowshpc/archive/2015/02/02/how-to-compile-and-run-a-simple-ms-mpi-program.aspx"&gt;http://blogs.technet.com/b/windowshpc/archive/2015/02/02/how-to-compile-and-run-a-simple-ms-mpi-program.aspx&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;Dmitry&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:30:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-Visual-Studio-MPI-setup/m-p/1070709#M4675</guid>
      <dc:creator>Dmitry_S_Intel</dc:creator>
      <dc:date>2015-11-18T10:30:56Z</dc:date>
    </item>
  </channel>
</rss>

