[MITgcm-support] mpich
Martin Losch
mlosch at awi-bremerhaven.de
Thu Apr 20 09:25:02 EDT 2006
Hi Eli,
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
INCLUDES='-I/your/path/to/mpich/include'
(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
tools/build_options/linux_amd64_pgf77+mpi_xd1
but there are many others.
Martin
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 -
> 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?
>
> Thanks Eli
>
>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list