Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Compiling MPI applications with MS-MPI and Intel Fortran for 64-bit

$
0
0

I am trying to compile an MPI application using Intel Fortran (Parallel Studio XE 2011 with VS2010) and MS-MPI. I have been able to successfully compile using 32-bit MS-MPI libraries. The following settings (changes from defaults) are what I used.

Visual Studio Project Creation

  • File -> New -> Intel Visual Fortran -> Console Application -> Empty Project
  • Added source from here
  • Added mpif.h, mpifptr.h and mpi.f90 from <path-to-msmpi-include/lib-dir>

Project Settings

  • Fortran -> General -> Additional Include Directory  :: <path-to-msmpi-include-dir>
  • Linker -> General -> Additional Library Directories :: <path-to-msmpi-32bit-lib-dir>
  • Linker -> Input -> Additional Dependencies          :: msmpi.lib msmpifec.lib
  • [only debug mode] Linker -> Input -> Ignore Specific Library :: LIBCMT

I was able to build project in both debug and release mode and successfully run the application. The MPI execution and output are below.

C:\MPITest\MPITest_win32\Release>mpiexec -n 4 MPITest_win32.exe

Hello from task  3 on <my-computer-name>
Hello from task  0 on <my-computer-name>
Hello from task  2 on <my-computer-name>
Hello from task  1 on <my-computer-name>
MASTER: Number of MPI tasks is:  4

When I try to compile using the 64-bit libraries that MS-MPI provides, I am able to compile the project successfully. However, when I execute the program, I get the following error.

"The procedure entry point mpi_pack_size__ could not be located in the dynamic link library msmpi.dll".

I have verified that this entry point is tabluated in msmpi.dll using Dependency Walker. See attached images. The function entry point is listed in both Parent Import and Export function list, so, I do not understand why windows is throwing an error message.

Thanks & regard,
Sampath


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>