[MPICH] Compiling and using under WinXP/cygwin

madfran madfran at set-ezine.org
Fri Jan 18 15:10:08 CST 2008


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