[MPICH] Compiling and using under WinXP/cygwin - use lib*.a in MPICH2\lib
madfran
madfran at set-ezine.org
Tue Jan 22 16:18:10 CST 2008
Hi,...
>
>>>>> 1-Can you send me a procedure ?
>Just remove the MPICH2 install directory under cygwin (or modify the
>PATH accordingly). Install MPICH2 using the MSI installer.
I remove c:\cygwin\home\yo\MPICH2\
and remove the related information in $PATH
I erase also all the build directory
...Then, I am not able to compile under cygwin
This is the output,
BE04845 at NOHW8156 /tmp/mpi/mpich2-1.0.6p1/examples
$ make cpi
../bin/mpicc -I../src/include -I../src/include -O2 -c cpi.c
make: ../bin/mpicc: Command not found
make: *** [cpi.o] Error 127
>>>>> 2-I will be able to compile other programs under cygwin if MPICH2 it is
>not installed under cygwin?
>As I mentioned in my previous email, "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)." You are provided a set of
>libraries, MPICH2\lib\lib*.a, with the MPICH2 installation (MSI
>installation) to be used with cygwin gcc. See the windows developer's guide
>for more details
>(http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=d
>ocs).
In mpich2-doc-windev.pdf they are not any information about compiling under
cygwin
When you say "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...."
It seems that the files,
libfmpich2g.a
libmpi.a
libmpicxx.a
found under c:\Program Files\MPICH2\lib\
must be copied under cygwin?
madfran
************************************************************************
-----Original Message-----
From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of madfran
Sent: Monday, January 21, 2008 4:50 PM
To: mpich-discuss at mcs.anl.gov
Subject: RE: RE: [MPICH] Compiling and using under WinXP/cygwin
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