[MPICH] Compiling and using under WinXP/cygwin

madfran madfran at set-ezine.org
Mon Jan 21 16:50:21 CST 2008


Hi,..

I am sure I use the mpiexec from MSI, but however with the mpiexec from
cygwin I obtain the same result.

smpd.exe -status, say me,
"smpd running on NOHW8156"

Well. I think will be necessary to remove the installation of MPICH2
from cygwin and remain only with the installation from msi.

1-Can you send me a procedure ?
2-I will be able to compile other programs under cygwin if MPICH2 it is not 
  installed under cygwin?

madfran

>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