3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
|
#== Warning ==> comments below have been copied from optfile linux_amd64_open64 |
7 |
|
# and do not strickly apply to this file <== |
8 |
# Build options for Fedore Core 4 x86-64 Opteron |
# Build options for Fedore Core 4 x86-64 Opteron |
9 |
# tested on (Linux batsi.mit.edu 2.6.14-1.1656_FC4smp #1 SMP Thu Jan 5 22:26:33 EST 2006 x86_64 x86_64 x86_64 GNU/Linux) system 20071121 |
# tested on (Linux batsi.mit.edu 2.6.14-1.1656_FC4smp #1 SMP Thu Jan 5 22:26:33 EST 2006 x86_64 x86_64 x86_64 GNU/Linux) system 20071121 |
10 |
# |
# |
11 |
|
# Multithreaded tests require |
12 |
|
# export OMP_SLAVE_STACK_SIZE=400m |
13 |
|
# export OMP_NUM_THREADS=2 |
14 |
|
|
15 |
CC=opencc |
CC=opencc |
16 |
FC=openf90 |
FC=openf90 |
17 |
F90C=openf90 |
F90C=openf90 |
18 |
F90FIXEDFORMAT='-fixedform -x f95' |
LINK=openf90 |
19 |
LD=openf90 |
|
20 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
21 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
22 |
MAKEDEPEND=/usr/X11R6/bin/makedepend |
#MAKEDEPEND=/usr/X11R6/bin/makedepend |
23 |
|
EXTENDED_SRC_FLAG='-extend-source' |
24 |
|
F90FIXEDFORMAT='-fixedform -x f95' |
25 |
|
GET_FC_VERSION="--version" |
26 |
|
OMPFLAG='-openmp' |
27 |
|
#OMPFLAG='-openmp -OPT:early_mp=ON' |
28 |
|
|
29 |
NOOPTFLAGS='-O0 -g' |
NOOPTFLAGS='-O0 -g' |
30 |
NOOPTFILES='' |
NOOPTFILES='' |
31 |
|
|
32 |
|
FFLAGS="$FFLAGS -convert big_endian" |
33 |
|
|
34 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
35 |
FFLAGS='-convert big_endian -ffortran-bounds-check -trapuv -g' |
FFLAGS="$FFLAGS -ffortran-bounds-check -trapuv -g" |
|
else |
|
|
FFLAGS='-convert big_endian' |
|
36 |
fi |
fi |
37 |
|
|
38 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then #- with optimisation: |
|
# No need for IEEE-754 |
|
39 |
FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations' |
FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations' |
40 |
else |
else #- no optimisation + IEEE : |
41 |
# Try to follow IEEE-754 |
FOPTIM='-O0 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |
|
FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |
|
42 |
fi |
fi |
43 |
|
|
44 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
45 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
46 |
CFLAGS='-O3' |
CFLAGS='-O0' |
47 |
GSLLIB='-lgsl -lgslcblas' |
GSLLIB='-lgsl -lgslcblas' |
48 |
|
|
49 |
if [ "x$NETCDF_ROOT" != x ] ; then |
if [ "x$NETCDF_ROOT" != x ] ; then |