[MPICH] Problems w/ MPICH2 on Windows+Cygwin
justinsea at optonline.net
justinsea at optonline.net
Fri Jul 15 15:54:48 CDT 2005
Hello,
I am having strange problems trying to get the MPICH2 example program (exmaples/icpi.c) to work. I have MPICH2 1.0.2 and the latest Cygwin installed on a Windows XP machine. I compiled the program from a DOS command box:
C:\MPICH2\examples>gcc -Ic:/mpich2/include -Lc:/mpich2/lib icpi.c -lmpi
Then, running the program like this:
C:\MPICH2\examples>mpiexec -n 4 -exitcodes a.exe
rank: node: exit code
0: %HOST%: 128
1: %HOST%: 128
2: %HOST%: 128
3: %HOST%: 128
However, if I added the "-localonly" option to mpiexec, it seems to work fine.
The same problem applies to other MPI programs I tried.
On a separate note, page 21 of the MPICH2 User's Guide seems to indicate that Cygwin user should use libmpich2.a instead of mpi.lib. Does anyone know a way to tell the link to use libmpich2.a? I have the following problems, e.g.:
$ gcc -Ic:/mpich2/include -Lc:/mpich2/lib icpi.c -llibmpich2
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -llibmpich2
collect2: ld returned 1 exit status
Thanks in advance for any help you can provide!
More information about the mpich-discuss
mailing list