Re: compiling SGI/mpi

From: David A. Case <>
Date: Thu 3 Oct 2002 18:50:11 -0700

On Thu, Oct 03, 2002, Ioana Cozmuta wrote:
> I am trying to compile Amber7 on an SGI machine/cluster. If I use the
> Machine.sgi_nopar the software compiles without errors.
> However if I try to compile it for parallel use (Machine.sgi_mpi) I get
> the following error message:
> mv addles ../../exe
> cd sander; make install
> ../Compile L3 -P -DDPREC ew_force.f cat ew_force.f | /lib/cpp -P
> -DSGIFFT -DTFP -DCACHE_BLOCKSIZE=2500 > _ew_force_.f
> cpp: error 55: Can't find include file mpif.h
> cpp: error 851: Can't find include file mpif.h
> cpp: error 1105: Can't find include file mpif.h
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> I looked into the src/Machines/mpi/ directory and the mpif.h file
> is there. So unless the error above is not related to the location of this
> file... I do not know what is going wrong.

The $AMBERHOME/src/Machines/mpi/mpif.h file is irrelevant (and that whole
directory really doesn't need to be there anymore...)

The system is really looking for /usr/include/mpif.h. My guess is that it
is not there, because you don't have MPI installed on your machine. You
need to either get MPI from SGI, or install MPICH and use Machine.sgi_mpich.


David A. Case                     |  e-mail:
Dept. of Molecular Biology, TPC15 |  fax:          +1-858-784-8896
The Scripps Research Institute    |  phone:        +1-858-784-9768
10550 N. Torrey Pines Rd.         |  home page:                   
La Jolla CA 92037  USA            |
Received on Thu Oct 03 2002 - 18:50:11 PDT
Custom Search