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: 2004-09-02 02:07:34


It sounds like you are mixing LAM/MPI and MPICH.

MPICH is an entirely different MPI implementation, and is unrelated to
LAM/MPI. You must compile and run your program in LAM/MPI or MPICH --
not compile in one and run in the other.

On Sep 1, 2004, at 4:28 PM, Srikaran Kandadai wrote:

> I am pretty new to MPI. I downloaded the MPICH 1.2.6 & am trying to
> run the examples in there. I made the cpi.c in the basic examples
> provided. When I try to run the program using the mpirun, i get the
> error message saying that MPI_INIT could not be initialized. Here is
> the output of the command
>
> [srik_at_ws254 basic]$ mpirun -np 2 cpi
>
> Process 0 of 1 on ws254.spsucluster.dyndns.org
> pi is approximately 3.1415926544231341, Error is 0.0000000008333410
> wall clock time = 0.002890
> Process 0 of 1 on ws254.spsucluster.dyndns.org
> pi is approximately 3.1415926544231341, Error is 0.0000000008333410
> wall clock time = 0.002598
> -----------------------------------------------------------------------
> ------
> 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.
> -----------------------------------------------------------------------
> ------

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/