[mpich-discuss] MPICH on windows: not able to compile programs
Jayesh Krishna
jayesh at mcs.anl.gov
Mon Apr 27 09:14:41 CDT 2009
Hi,
You shouldn't need any *workaround* to get MPI programs compiled with
MPICH2 on windows. Let us know if you need help in this regard.
The MPICH2 installer installs the necessary MPICH2 dlls to the windows
system directory (eg: c:\windows\system32) of the installed machine. You
might have to transfer the MPICH2 dlls to the same directory as your
executable for you application to work.
=====================================================
C:\>dir "c:\WINDOWS\system32"\mpich*.dll
Volume in drive C has no label.
Volume Serial Number is AC9F-67B7
Directory of c:\WINDOWS\system32
04/13/2009 01:42 PM 1,171,456 mpich2.dll
04/13/2009 01:55 PM 151,552 mpich2mpe.dll
04/13/2009 01:37 PM 159,744 mpich2mpi.dll
04/13/2009 02:37 PM 1,220,608 mpich2mt.dll
04/13/2009 02:45 PM 1,425,408 mpich2mtp.dll
03/18/2009 01:26 PM 2,289,664 mpich2nemesis.dll
04/13/2009 01:51 PM 1,376,256 mpich2p.dll
04/13/2009 02:03 PM 1,142,784 mpich2shm.dll
04/13/2009 02:10 PM 1,331,200 mpich2shmp.dll
04/13/2009 02:18 PM 1,187,840 mpich2ssm.dll
04/13/2009 02:27 PM 1,409,024 mpich2ssmp.dll
11 File(s) 12,865,536 bytes
0 Dir(s) 4,153,282,560 bytes free
C:\>dir "c:\WINDOWS\system32"\fmpich*.dll
Volume in drive C has no label.
Volume Serial Number is AC9F-67B7
Directory of c:\WINDOWS\system32
04/09/2009 11:09 AM 114,688 fmpich2.dll
04/13/2009 01:57 PM 118,784 fmpich2g.dll
04/13/2009 01:57 PM 126,976 fmpich2s.dll
3 File(s) 360,448 bytes
0 Dir(s) 4,153,282,560 bytes free
=====================================================
Note that the name of the MPICH dlls have changed from MPICH to MPICH2
(eg: You don't have mpich.dll - only mpich2.dll - with MPICH2. See the
list of dlls above). Also note that you need to have the process manager
running on all the nodes (smpd.exe -start) for your MPI program to work.
We don't test MPICH2 with condor, but several customers routinely run
MPICH2 with condor.
Let us know if you still have problems.
Regards,
Jayesh
_____
From: Sangamesh B [mailto:forum.san at gmail.com]
Sent: Sunday, April 26, 2009 3:06 AM
To: Jayesh Krishna
Cc: mpich-discuss at mcs.anl.gov
Subject: Re: [mpich-discuss] MPICH on windows: not able to compile
programs
Thanks Jayesh..
With some workaround, I'm able to compile and run it with
mpich2-1.0.8p1_ia32.
Initially I used IDE. There were errors "undefined reference to ...". Then
used command line:
D:\condor\CON-MP~1>gcc himpi.c -o himpi.exe -I"E:\Dev-Cpp\include"
-I"E:\mpich2\
include" -L"E:\Dev-Cpp\lib" "E:\mpich2\lib\libmpi.a"
Now its required me to run mpi programs under condor scheduler. The error
am facing for this is:
D:\condor\CON-MP~1>condor_submit job.sub
Submitting job(s)
ERROR: Condor cannot find the "mpich.dll" file it needs to run your MPI
job.
Please specify the full path to this file in the "transfer_input_files"
setting in your submit description file.
There is no mpich.dll in mpich2-1.0.8p1 version.
Is it possible to get mpich.dll by other ways of install/distribution?
Is mpich2 team testing condor?
Thanks in advance,
Sangamesh
On Fri, Apr 24, 2009 at 7:25 PM, Jayesh Krishna <jayesh at mcs.anl.gov>
wrote:
Hi,
MPICH 1.2.5 is old. Can you try the latest stable version of MPICH2
(http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=dow
nloads)?
Regards,
Jayesh
_____
From: mpich-discuss-bounces at mcs.anl.gov
[mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Sangamesh B
Sent: Friday, April 24, 2009 7:53 AM
To: MPICH ML
Subject: [mpich-discuss] MPICH on windows: not able to compile programs
Dear All,
MPICH-1.2.5 (ftp://ftp.mcs.anl.gov/pub/mpi/nt/mpich.nt.1.2.5.exe) and
Dev-C++-4.9.9.2 is installed on a Windows XP machine.
When I try to compile cpi.c program, it thrown errors wrt MPI header
files:
Compiler Log:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "D:\mpich\SDK\Examples\nt\Basic\cpi.c" -o
"D:\mpich\SDK\Examples\nt\Basic\cpi.exe" -I"E:\Dev-Cpp\include"
-I"D:\mpich\SDK\Include" -L"E:\Dev-Cpp\lib" -L"D:\mpich\SDK\Lib"
In file included from D:/mpich/SDK/Include/mpidefs.h:54,
from D:/mpich/SDK/Include/mpi.h:239,
from D:\mpich\SDK\Examples\nt\Basic\cpi.c:1:
D:/mpich/SDK/Include/mpio.h:30: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:30: warning: data definition has no type or
storage class
D:/mpich/SDK/Include/mpio.h:101: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:102: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:103: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:110: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:112: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:116: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:118: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:120: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:122: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:129: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:131: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:153: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:154: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:155: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:171: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:172: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:175: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:178: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:274: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:275: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:276: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:283: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:285: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:289: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:291: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:293: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:295: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:302: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:304: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:326: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:327: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:328: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:344: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:345: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:348: error: syntax error before "MPI_Offset"
D:/mpich/SDK/Include/mpio.h:351: error: syntax error before "MPI_Offset"
D:\mpich\SDK\Examples\nt\Basic\cpi.c: In function `main':
D:\mpich\SDK\Examples\nt\Basic\cpi.c:11: warning: return type of 'main' is
not `int'
Execution terminated
Why these errors?
Is there anybody successful to compile C mpi program on Windows?
I've faced same problem with MPICH2 also.
Thanks in advance,
- Sangamesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090427/f0aebabb/attachment-0001.htm>
More information about the mpich-discuss
mailing list