3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
# These are the build options used with the Intel 9.x compiler for |
# These are the build options used with the Intel 10.x compiler for |
7 |
# testing on Beagle. |
# testing on Beagle. |
8 |
# |
# |
9 |
# Please note that the appropriate module commands: |
# Use after |
10 |
# |
# |
11 |
# module add intel/9.1.051 |
# module add darwin |
12 |
# module add mpich-mx/1.2.7..1/intel/9.1.051 |
# module add mitgcm |
13 |
|
# |
14 |
|
# (tested with darwin/20090605 mitgcm/20090605, i.e., |
15 |
|
# intel/10.0.025 mx/1.0 netcdf/3.6.2/intel-10.0.025 mpich-mx/1.2.7..7/intel-10.0.025) |
16 |
|
# |
17 |
|
# These modules set FFLAGS, CFLAGS and CPPFLAGS for mpich and netcdf. |
18 |
# |
# |
|
# will add /home/ibm/util/mpich-mx-1.2.7..1/icc/9.1.051/lib, |
|
|
# /opt/intel/cce/9.1.051/lib and /opt/intel/fce/9.1.051/lib |
|
|
# to LD_LIBRARY_PATH which is needed by any executables generated |
|
|
# with this optfile. |
|
19 |
# The SGE -V option for exporting environment variables may also be |
# The SGE -V option for exporting environment variables may also be |
20 |
# helpful if you encounter missing-library problems. Or, |
# helpful if you encounter missing-library problems. Or, |
21 |
# alternatively, one may choose to link with one of the intel |
# alternatively, one may choose to link with one of the intel |
22 |
# "-static" or "-i-static" flags. |
# "-static" or "-i-static" flags. |
23 |
|
|
|
|
|
|
mpichhome=/home/ibm/util/mpich-mx-1.2.7..1/icc/9.1.051 |
|
|
#netcdfhome=/home/software/netcdf/netcdf-3.6.2/intel-9.1.051 |
|
|
netcdfhome=/home/ibm/util/netcdf-3.6.2 |
|
|
|
|
|
|
|
24 |
FC='mpif77' |
FC='mpif77' |
25 |
CC='mpicc' |
CC='mpicc' |
26 |
F90C='mpif90 -fixed -c ' |
F90C='mpif90 -fixed -c ' |
27 |
LINK='mpif77' |
LINK='mpif77' |
28 |
INCLUDES="-I$mpichhome/include -I$netcdfhome/include" |
INCLUDES="$CPPFLAGS" |
|
LIBS="-L$mpichhome/lib -L$netcdfhome/lib" |
|
|
|
|
29 |
|
|
30 |
# -DIFORT turns on ifort-specific declarations in darwin (RAND is not an intrinsic) |
# -DIFORT turns on ifort-specific declarations in darwin (RAND is not an intrinsic) |
31 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT' |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT' |
48 |
# -fno-alias don't assume aliasing (assume that different variables DON'T refer to the same memory location) |
# -fno-alias don't assume aliasing (assume that different variables DON'T refer to the same memory location) |
49 |
# -assume byterecl record length in OPEN statements is in bytes |
# -assume byterecl record length in OPEN statements is in bytes |
50 |
# -convert big_endian binary files contain big-endian data |
# -convert big_endian binary files contain big-endian data |
51 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian' |
# -shared-intel avoids static library mismatch (?) |
52 |
# FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias' |
FFLAGS="$FFLAGS -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel" |
53 |
else |
else |
54 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
55 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
59 |
# -pc64 round floating point values to 64 bits |
# -pc64 round floating point values to 64 bits |
60 |
# one could also try |
# one could also try |
61 |
# -mp maintain precision |
# -mp maintain precision |
62 |
FFLAGS='-pc64 -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian' |
FFLAGS="$FFLAGS -pc64 -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel" |
|
# FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias' |
|
|
# FLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian' |
|
63 |
fi |
fi |
64 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
65 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
66 |
|
|
67 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
68 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |
69 |
|
|