mlosch at awi-bremerhaven.de
Thu Apr 20 09:25:02 EDT 2006
I assume that your mpif77/cc has all the correct paths to the mpich
libraries and include files. However, the build process of the MITgcm
bypasses that by explicitly running cpp on all source *.F files
(creating *.f-files that are then compiles with mpif77). cpp needs to
now the paths to the include files of mpich (mpich.h, etc), and you
have to specify them explicitly with
(you can do the same for LIBS='-L/your/path/to/mpich/libs -lmpi -
lfmpi' and not use the macros mpif77/cc at all, but that's not
necessary, I think).
You can find an example that I use in
but there are many others.
On Apr 20, 2006, at 3:02 PM, 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 -
> 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
> 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
> gmake: *** [exch_r8_recv_get_x.o] Error 2
> Any suggestions?
> Thanks Eli
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
More information about the MITgcm-support