[MITgcm-support] mpich
Ed Hill
ed at eh3.com
Thu Apr 20 09:23:34 EDT 2006
On Thu, 2006-04-20 at 16:02 +0300, Eli Biton wrote:
> Hi all
> I'm trying to use MPICH on an opteron machine running redhat AS 4U1.
> The optFile we are using is:
>
>
> DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=4'
> CPP='cpp -traditional -P'
>
> FC='/shared/pgi/bin/mpif77 -fast -fastsse -tp k8-64 -Mipa=fast '
> CC='/shared/pgi/bin/mpicc -fast -fastsse -tp k8-64 -Mipa=fast '
> LINK='/shared/pgi/bin/mpif77 '
>
> but we get the following error message when we are compiling:
>
> _USE_MPI -DALWAYS_USE_MPI -DHAVE_SYSTEM -DHAVE_ETIME -I/usr/pgi/linux86-64/6.0/include > exch_r8_recv_get_x.f
> /shared/pgi/bin/mpif77 -fast -fastsse -tp k8-64 -Mipa=fast -c exch_r8_recv_get_x.f
> PGFTN-S-0038-Symbol, mpi_real8, has not been explicitly declared (exch_r8_recv_get_x.f: 1513)
> 0 inform, 0 warnings, 1 severes, 0 fatal for exch_r8_recv_get_x
> PGFTN/x86-64 Linux/x86-64 6.0-2: compilation completed with severe errors
> gmake: *** [exch_r8_recv_get_x.o] Error 2
>
> Any suggestions?
Hi Eli,
The error above indicates that mpi_real8 is undefined. Its supposed to
be defined within the MPI headers -- specifically, within the mpif.h
file which is included in the model in various places using:
#include "mpif.h"
So, I think the failure is that your CPP is not finding the mpif.h file.
If thats the problem (and it probably is), then you can fix it by adding
something similar to:
INCLUDES='-I/opt/mpt/1.0-0/include/'
INCLUDEDIRS='/opt/mpt/1.0-0/include/'
to your optfile so that CPP knows where to find the mpif.h file.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
More information about the MITgcm-support
mailing list