linking problem : cannot include the 'mpif.h' , or use mpi module

linking problem : cannot include the 'mpif.h' , or use mpi module

 I am trying to set up the mpi development on my computer (Windows 7).

 Installed the Intel® Cluster Studio XE 2013 Evaluation version, and succeeded in building/running the test.f90 on the command line.

 But I am having a problem in using it on the Visual Studio 2010, 

Current Situation :

 smpd service is running,

 The environmental variablePATH is as shown below.

C:\Program Files (x86)\Intel\Composer XE 2013\bin\ia32;C:\Program Files (x86)\Intel\MPI\\em64t\bin;C:\Program Files (x86)\Intel\MPI\\ia32\bin;%INTEL_DEV_REDIST%redist\intel64\mpirt;%INTEL_DEV_REDIST%redist\ia32\mpirt;%INTEL_DEV_REDIST%redist\intel64\compiler;%INTEL_DEV_REDIST%redist\ia32\compiler;C:\Program Files (x86)\Intel\Trace Analyzer and Collector\\bin;C:\Program Files (x86)\Intel\icsxe\2013.0.028\bin;C:\Program Files (x86)\Intel\MPI\\ia32\include;C:\Program Files (x86)\Intel\MPI\\ia32\lib;C:\Program Files (x86)\Intel\ComposerXE-2011\bin\ia32;C:\Program Files (x86)\Tecplot\Tec360 2008\Bin;C:\Python25\;C:\usr\texlive\2011\bin\win32;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\


 As mentioned above, compiling/running the test on the command line (using the 'mpiifort' using the "Cluster Studio XE 2013 for Windows OS Build Environment")  is done well. But When I try to build the same source using the Visual Studio, the errors are as below.

Case 1. When I use "use mpi" statement,

   error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [MPI]


Case 2. When I use "include 'mpif.h'" statement,

  error #5102: Cannot open include file 'mpif.h'


  Can anyone tell me what to check next?


4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Is the MPI include folder on the include path in your project properties?  This would be a compile property; you haven't reached the link stage.  You may get better advice on Intel MPI on the cluster & HPC forum.

Which is the include path menu in the project properties? I cannot find the include path specification,

>>Case 2. When I use "include 'mpif.h'" statement,
>>error #5102: Cannot open include file 'mpif.h'

It is in Compiler section of project properties and look for Additional Dependencies. A path to MPI include directory could be also set using Tools -> Options -> Directories ( or so ).

Leave a Comment

Please sign in to add a comment. Not a member? Join today