Dear all,
I was trying to run simple fortran mpi program with LAM on a red hat
linux machine, but encountered the following errors.
-----------------------------------------------------------------------------
It seems that there is no lamd running on the host tmsi-mitl-grid.
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.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
It seems that [at least] one of the 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.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
It seems that there is no lamd running on the host tmsi-mitl-grid.
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.
-----------------------------------------------------------------------------
but i actually boot the lam before i run the program. below is how i boot
the lam.
> lamhalt
LAM 7.0.4/MPI 2 C++/ROMIO - Indiana Universit
> lamboot -v -ssi boot rsh lin_hosts
LAM 7.0.4/MPI 2 C++/ROMIO - Indiana University
n0<9279> ssi:boot:base:linear: booting n0 (testmachine1)
n0<9279> ssi:boot:base:linear: finished
> less lin_hosts
testmachine1 cpu=2
> less hello.f
program hello
include 'mpif.h'
integer rank, size, ierr
call MPI_INIT(ierr)
call MPI_COMM_RANK(MPI COMM WORLD, rank, ierr)
call MPI_COMM_SIZE(MPI COMM WORLD, size, ierr)
print *, "Hello, world! I am ", rank, " of ", size
call MPI_FINALIZE(ierr)
stop
end
what went wrong?
Wang Shuguang
|