12 |
# d) You can replace -fPIC with -mcmodel=medium which may perform faster |
# d) You can replace -fPIC with -mcmodel=medium which may perform faster |
13 |
# then -fPIC and still support data sizes over 2GB per process but all |
# then -fPIC and still support data sizes over 2GB per process but all |
14 |
# the libraries you link to myst be compiled with -fPIC or -mcmodel=medium |
# the libraries you link to myst be compiled with -fPIC or -mcmodel=medium |
15 |
|
# e) Changed from -O3 to -O2 to avoid buggy Intel v.10 compilers. Speed |
16 |
|
# impact appears to be minimal. |
17 |
FC=ifort |
FC=ifort |
18 |
F90C=ifort |
F90C=ifort |
19 |
CC=icc |
CC=icc |
40 |
# roughly equivalent to -ieee |
# roughly equivalent to -ieee |
41 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
42 |
# No need for IEEE-754 |
# No need for IEEE-754 |
43 |
FOPTIM='-O3 -align -xW -ip' |
FOPTIM='-O2 -align -xW -ip' |
44 |
else |
else |
45 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
46 |
FOPTIM='-O2 -align -xW -ip -mp' |
FOPTIM='-O2 -align -xW -ip -mp' |
47 |
fi |
fi |
48 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
49 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
50 |
CFLAGS='-O3 -ip -fPIC' |
CFLAGS='-O2 -ip -fPIC' |
51 |
|
|
52 |
if [ "x$NETCDF_ROOT" != x ] ; then |
if [ "x$NETCDF_ROOT" != x ] ; then |
53 |
INCLUDEDIRS="${NETCDF_ROOT}/include" |
INCLUDEDIRS="${NETCDF_ROOT}/include" |