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: 2003-07-11 05:57:02


On Fri, 11 Jul 2003, Ndong-Nna Guitry-Evrard wrote:

> MPI_Comm_rank: invalid communicator (rank 4, MPI_COMM_WORLD)
> MPI_Comm_rank: invalid communicator (rank 0, MPI_COMM_WORLD)
> MPI_Comm_rank: invalid communicator (rank 1, MPI_COMM_WORLD)
> MPI_Comm_rank: invalid communicator (rank 2, MPI_COMM_WORLD)
> MPI_Comm_rank: invalid communicator (rank 3, MPI_COMM_WORLD)
> Rank (1, MPI_COMM_WORLD): Call stack within LAM:
> Rank (1, MPI_COMM_WORLD): - MPI_Comm_rank()
> [snipped]
>
> include '/usr/local/mpich/mpich-1.2.2/include/mpif.h'

This looks like it could be your problem -- you're mixing LAM/MPI and
MPICH. MPICH's mpif.h file is not compatible with LAM's mpif.h file.
You'll need to include LAM's mpif.h file if you're going to use LAM/MPI.

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