[MPICH] Compiling and using under WinXP/cygwin
Jayesh Krishna
jayesh at mcs.anl.gov
Mon Jan 21 11:09:26 CST 2008
Hi,
Can you make sure that you are using the mpiexec installed using the MSI
installer when running your program, compiled under cygwin, on windows ? You
should make sure that you use the libraries (lib*.a) provided with the
windows installation of MPICH2 (in MPICH2\lib) when compiling your program
under cygwin (if you want to run the program using the windows version of
MPICH2).
We recommend windows users to only install MPICH2 using the MSI installer
(and not recompile under cygwin). The user can then compile his/her programs
using the cygwin compiler suite and headers/libs provided with the MPICH2
installation (using the MSI installer).
Also make sure that you have the process manager running on your system
(After making sure that you are running smpd.exe installed using the MSI
installer, type "smpd.exe -status" to get the status of the process
manager).
Regards,
Jayesh
-----Original Message-----
From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of madfran
Sent: Friday, January 18, 2008 3:10 PM
To: mpich-discuss at mcs.anl.gov
Subject: [MPICH] Compiling and using under WinXP/cygwin
Hi,...
Situation.
OS Windows XP
cygwin
Over XP I install mpich2 using "mpich2-1.0.6p1-win32-ia32.msi"
Over cygwin install mpich2 using "mpich2-1.0.6p1.tar.gz"
Facts
I can't compile any software under cygwin that work under pmi but its work
well.
Example.
I compile the soft "hellow" found under the .../mpich2-1.0.6p1/examples/ and
created the "hellow.exe"
I launch hellow.exe without problems under cygwin
/tmp/mpi/mpich2-1.0.6p1/examples $ ./hellow.exe Hello world from process 0
of 1
But with mpiexec the result is,
/tmp/mpi/mpich2-1.0.6p1/examples
$ mpiexec -n 2 ./hellow.exe
[unset]: unable to decode hostport from 1245
[unset]: aborting job:
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(294): Initialization failed
MPID_Init(82)........: channel initialization failed
MPID_Init(333).......: PMI_Init returned -1
[unset]: unable to decode hostport from 1252
[unset]: aborting job:
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(294): Initialization failed
MPID_Init(82)........: channel initialization failed
MPID_Init(333).......: PMI_Init returned -1
**********************************************************************
Same result under cmd WinXP
C:\cygwin\tmp\mpi\mpich2-1.0.6p1\examples>hellow.exe
Hello world from process 0 of 1
C:\cygwin\tmp\mpi\mpich2-1.0.6p1\examples>mpiexec -n 2 -localroot hellow.exe
[unset[unset]: unable to decode hostport from 1318
[]: unable to decode hostport from 1325
[unsetunset]: aborting job:
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(294): Initialization failed
MPID_Init(82)........: channel initialization failed
MPID_Init(333).......: PMI_Init returned -1
]: aborting job:
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(294): Initialization failed
MPID_Init(82)........: channel initialization failed
MPID_Init(333).......: PMI_Init returned -1
madfran
More information about the mpich-discuss
mailing list