LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2004-12-23 23:59:23


On Dec 23, 2004, at 7:54 PM, Fernando Robles Morales wrote:

> while the program mpirun run ,it's again written an error:
>
> ferrmi_at_hatter:/usr/soft/src/lam-7.1.1/examples/hello$ mpirun C ./hello
>
> -----------------------------------------------------------------------
> ------
> 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.
>
> -----------------------------------------------------------------------
> ------
>
> i want to know which is the problem, and how to solve it!!
> what should I do?

The problem is that your program hello exited before it called
MPI_Init(). There are a couple of possible reasons for this. The most
obvious is that the program doesn't contain a call to MPI_Init() - are
you sure your application calls MPI_Init()? If so, then your
application is dying before MPI_Init() for some reason (that probably
has nothing to do with LAM). In this case, you are going to need to
debug your application a little bit - I would take a look at the LAM
FAQ, in particular the section on debugging:

   http://wwww.lam-mpi.org/faq/

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have an LAM/MPI day: http://www.lam-mpi.org/