[mpich-discuss] MPICH2 On Windows 64 bit and Mingw-w64 compilers

Arun Murthy arun.murthy at fluidyn.com
Fri Jan 7 00:56:17 CST 2011


Hi

I am trying to use MPICH2 on Windows 7 64bit (installed from 
mpich2-1.3.1-win-x86-64.msi) along with Mingw-w64 compiler suite 
(mingw-w64-1.0-bin_i686-mingw_20101129).

I tried to compile-link the example "icpi.c" using following command:

C:\MinGW\mingw-w64-1.0-bin_i686-mingw_20101129\bin\x86_64-w64-mingw32-gcc.exe 
-I"C:\Program Files\MPICH2\include" icpi.c -L"C:\Program 
Files\MPICH2\lib" -lmpi -o icpi.exe

I could get the executable, but it doesn't run with any number of 
processors. When run with mpiexec, it aborts without any message. I 
could run the pre-built "cpi.exe" with any number of CPU's. I don't have 
MS Visual Studio on my machine. Can anyone help?

By the way, the 32-bit version of MPICH1 (1.2.5 SDK.gcc) works well with 
Mingw-w32 compiler suite.

Thanks
Arun




More information about the mpich-discuss mailing list