Discussion:
[OMPI users] a question about mpirun
zhuangchao
2011-07-07 06:44:22 UTC
Permalink
hello all :

I installed the openmpi-1.4.3 on redhat as the following step :

1. ./configure --prefix=/data1/cluster/openmpi

2. make

3. make install

And I compiled the examples of openmpi-1.4.3 as the following step :

1. make

Then I run the example :

./mpirun -np 1 /tmp/openmpi-1.4.3/examples/ring_c

I get the following error :

-----------------------------------------------------------------------------
It seems that there is no lamd running on the host node1.
This indicates that the LAM/MPI runtime environment is not operating.
The LAM/MPI runtime environment is necessary for MPI programs to run
(the MPI program tired to invoke the "MPI_Init" function).

Please run the "lamboot" command the start the LAM/MPI runtime
environment. See the LAM/MPI documentation for how to invoke
"lamboot" across multiple machines.
-----------------------------------------------------------------------------

I run openmpi , but I get the error from lam-mpi . why ? Can you help me ?

Thank you !
jody
2011-07-07 07:08:54 UTC
Permalink
Hi

It seems that you have mixed an "old" LAM-MPI installation with OpenMPI.


To make sure your OpenMPI installation is ok you could try to use the
complete path to mpirun:
/data1/cluster/openmpi/bin/mpirun -np 1 /tmp/openmpi-1.4.3/examples/ring_c

You should also make sure that the compile-command is the one of
OpenMPI and not of LAM MPI.
( /data1/cluster/openmpi/bin/mpiCC or something like that)

Check your PATH environment variable to make sure it doesn't contain
any of the LAM MPI directories,
and make sure you set the LD_LIBRARY_PATH variable correctly (see
http://www.open-mpi.org/faq/?category=running#run-prereqs)

Hope this helps
Jody
       1.  ./configure  --prefix=/data1/cluster/openmpi
       2.  make
       3.  make  install
       And  I   compiled  the  examples  of  openmpi-1.4.3  as the following
       1. make
            ./mpirun  -np 1  /tmp/openmpi-1.4.3/examples/ring_c
-----------------------------------------------------------------------------
It seems that there is no lamd running on the host node1.
This indicates that the LAM/MPI runtime environment is not operating.
The LAM/MPI runtime environment is necessary for MPI programs to run
(the MPI program tired to invoke the "MPI_Init" function).
Please run the "lamboot" command the start the LAM/MPI runtime
environment.  See the LAM/MPI documentation for how to invoke
"lamboot" across multiple machines.
-----------------------------------------------------------------------------
       I   run openmpi , but  I  get  the error from lam-mpi .  why ?
Can  you  help me ?
       Thank you !
_______________________________________________
users mailing list
http://www.open-mpi.org/mailman/listinfo.cgi/users
Loading...