LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2006-02-10 18:48:32


On Feb 9, 2006, at 9:04 AM, anuj agarwal wrote:

> i am using execve () command to run my mpirun
> command(from within the C code ).

That's fine.

> one more thing i
> have
> not used any MPI functions other then MPI_init() and
> MPI_Finalize()(do i really need them?).

Yes. All MPI applications must invoke MPI_Init() and [eventually]
MPI_Finalize().

> Moreever this
> code is like a daemon process it wont exit ever (if no
> error is thr). this code script i am starting on all 4
> nodes which will do communication with server.
>
> the command is mpirun -np 4 -v /.../mdrun_mpi
> -s...output files.
>
> MY project is working fine for 1 node..but as soon as
> i increase number of nodes this error message is
> coming

This error can be indicative of the fact that you didn't invoke
MPI_Init in mdrun_mpi (or any of its children).

Try modifying your application to invoke MPI_Init() upon startup and
MPI_Finalize() upon completion and see if it works.

-- 
{+} Jeff Squyres
{+} The Open MPI Project
{+} http://www.open-mpi.org/