make sure you are using mpirun from the MPICH installation and not the LAM one that comes with RedHat. Try:
/usr/mpich-1.2.5/bin/mpirun -np 2 a.out
-Iulian
Farschad Torabi wrote:
Dear Friends, I have some problems on installing MPICH on my computer. So I wrote this mail to ask you for some help.
I have a PIV intel machine operating with Linux RH8.0 and one other operating
with RH9. I installed a PGF90 compiler on these computers using the following
commands:
./install
then I followed the script to completely install the PGF90.
After that I included these directories to the PATH:
PATH=$PATH:/usr/pgi/linux86/bin PATH=$PATH:/usr/pgi/linux86/lib PATH=$PATH:/usr/pgi/linux86/include PGI=/usr/pgi export PGI PATH
now it is the time to install MPICH as follow
1. FC=/usr/pgi/linux86/bin/pgf90
2. FLINKER=/usr/pgi/linux86/bin/pgf90
3. export FC FLINKER
no configuring the MPICH
4. ./configure --prefix=/usr/mpich-1.2.5 -fc=pgf90 -lib="-L/usr/pgi/linux86/lib -lpgf90 -lpgf90rtl -lpgftnrtl -lgpc"
5. make
6. make install
and including the PATH
7. PATH=$PATH:/usr/mpich-1.2.5/bin
8. export PATH
these are the steps I used to install MPICH to work with pgf90 compiler.
The result was good and I was able to compile and link the samples provided by
MPICH in "basic" directory. But unfortunately when I want to run the executable file
on a beowulf cluster
(with the following commands:
9. lamboot -v bhost
10. mpirun -np 2 a.out
)
I get the following message:
[EMAIL PROTECTED] fortran]$ mpirun -np 2 a.out
0 - MPI_COMM_RANK : Null communicator
[0] Aborting program !
[0] Aborting program!
p0_5139: p4_error: : 197
0 - MPI_COMM_RANK : Null communicator
[0] Aborting program !
[0] Aborting program!
p0_5140: p4_error: : 197
-----------------------------------------------------------------------------
It seems that [at least] one of processes that was started with mpirun did not invoke MPI_INIT before quitting (it is possible that more than one process did not invoke MPI_INIT -- mpirun was only notified of the first one, which was on node n0).
mpirun can *only* be used with MPI programs (i.e., programs that
invoke MPI_INIT and MPI_FINALIZE). You can use the "lamexec" program
to run non-MPI programs over the lambooted nodes.
-----------------------------------------------------------------------------
What is the problem?? I would be thankful if you help me solving this problem.
Thank you in advance Farschad
Farschad Torabi Ph. D. Student Department of Mechanical Eng. University of Tehran Tehran / Iran [EMAIL PROTECTED]
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list