I just came across this thread while googling when I faced a similar
problem with a certain code - after scratching my head for a bit, it
turns out the solution is pretty simple. My guess is that Jeff's code
has it's own copy of 'mpif.h' in its source directory, and in all
likelihood, it's an MPICH version of mpif.h. Delete it, recompile,
(OpenMPI by default will look for mpif.h in the $(install)/include
directory), and you should be able to run fine.
Yale Engineering HPC
-- original message follows --
This will probably turn out to be my fault as I haven't used MPI in a
I am attempting to use an MPI implementation of a "nxtval" (see the MPI
book). I am using the client-server scenario. The MPI book specifies the
three functions required. Two are collective and one is not. Only the
two collectives are tested in the supplied code. All three of the MPI
functions are reproduced in the attached code, however. I wrote a tiny
application to create and free a counter object and it fails.
I need to know if this is a bug in the MPI book and a misunderstanding
on my part.
The complete code is attached. I was using openMPI/intel to compile and
The error I get is:
> [compute-0-1.local:22637] *** An error occurred in MPI_Comm_rank
> [compute-0-1.local:22637] *** on communicator MPI_COMM_WORLD
> [compute-0-1.local:22637] *** MPI_ERR_COMM: invalid communicator
> [compute-0-1.local:22637] *** MPI_ERRORS_ARE_FATAL (goodbye)
> mpirun noticed that job rank 0 with PID 22635 on node
> "compute-0-1.local" exited on signal 15.
I've attempted to google my way to understanding but with little
success. If someone could point me to
a sample application that actually uses these functions, I would
Sorry if this is the wrong list, it is not an MPICH question and I
wasn't sure where to turn.