1 |
jahn |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
# $Header: $ |
4 |
|
|
# |
5 |
|
|
# These are the build options used with the Intel 9.x compiler for |
6 |
|
|
# testing on Beagle. |
7 |
|
|
# |
8 |
|
|
# Please note that the appropriate module commands: |
9 |
|
|
# |
10 |
|
|
# module add intel/9.1.051 |
11 |
|
|
# module add mpich-mx/1.2.7..1/intel/9.1.051 |
12 |
|
|
# |
13 |
|
|
# will add /home/ibm/util/mpich-mx-1.2.7..1/icc/9.1.051/lib, |
14 |
|
|
# /opt/intel/cce/9.1.051/lib and /opt/intel/fce/9.1.051/lib |
15 |
|
|
# to LD_LIBRARY_PATH which is needed by any executables generated |
16 |
|
|
# with this optfile. |
17 |
|
|
# The SGE -V option for exporting environment variables may also be |
18 |
|
|
# helpful if you encounter missing-library problems. Or, |
19 |
|
|
# alternatively, one may choose to link with one of the intel |
20 |
|
|
# "-static" or "-i-static" flags. |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
mpichhome=/home/ibm/util/mpich-mx-1.2.7..1/icc/9.1.051 |
24 |
|
|
#netcdfhome=/home/software/netcdf/netcdf-3.6.2/intel-9.1.051 |
25 |
|
|
netcdfhome=/home/ibm/util/netcdf-3.6.2 |
26 |
|
|
|
27 |
|
|
|
28 |
|
|
FC='mpif77' |
29 |
|
|
CC='mpicc' |
30 |
|
|
F90C='mpif90 -fixed -c ' |
31 |
|
|
LINK='mpif77' |
32 |
|
|
INCLUDES="-I$mpichhome/include -I$netcdfhome/include" |
33 |
|
|
LIBS="-L$mpichhome/lib -L$netcdfhome/lib" |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
37 |
|
|
CPP='cpp -traditional -P' |
38 |
|
|
|
39 |
|
|
NOOPTFLAGS='-O0' |
40 |
|
|
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
41 |
|
|
|
42 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
43 |
|
|
# roughly equivalent to -ieee |
44 |
|
|
if test "x$IEEE" = x ; then |
45 |
|
|
FOPTIM='-O3 -align' |
46 |
|
|
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
47 |
|
|
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
48 |
|
|
# FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian' |
49 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian' |
50 |
|
|
# FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias' |
51 |
|
|
else |
52 |
|
|
# FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS' |
53 |
|
|
FOPTIM='-O0 -noalign' |
54 |
|
|
# FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
55 |
|
|
# FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -pc64 -xW -assume byterecl -convert big_endian' |
56 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -pc64 -xT -fno-alias -assume byterecl -convert big_endian' |
57 |
|
|
# FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias' |
58 |
|
|
# FLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian' |
59 |
|
|
fi |
60 |
|
|
F90FLAGS=$FFLAGS |
61 |
|
|
F90OPTIM=$FOPTIM |
62 |
|
|
|
63 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
64 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |