3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
|
#== Warning ==> comments below have been copied from optfile linux_amd64_pathf90 |
7 |
|
# and do not strickly apply to this file <== |
8 |
# Build options for Fedore Core 3 x86-64 Opteron |
# Build options for Fedore Core 3 x86-64 Opteron |
9 |
# tested on (Linux batsi 2.6.10-1.766_FC3smp #1 SMP Wed Feb 9 23:17:48 EST 2005 x86_64 x86_64 x86_64 GNU/Linux) system 20051802 |
# tested on (Linux batsi 2.6.10-1.766_FC3smp #1 SMP Wed Feb 9 23:17:48 EST 2005 x86_64 x86_64 x86_64 GNU/Linux) system 20051802 |
10 |
# |
# |
11 |
|
# Multithreaded tests require |
12 |
|
# export PSC_OMP_STACK_SIZE=400m |
13 |
|
# export OMP_NUM_THREADS=2 |
14 |
|
|
15 |
CC=pathcc |
CC=pathcc |
16 |
FC=pathf90 |
FC=pathf90 |
17 |
LD=pathf90 |
LINK=pathf90 |
18 |
|
|
19 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
20 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
21 |
MAKEDEPEND=/usr/X11R6/bin/makedepend |
#MAKEDEPEND=/usr/X11R6/bin/makedepend |
22 |
NOOPTFLAGS='-O0 -m32 -g' |
OMPFLAG='-openmp' |
23 |
|
#OMPFLAG='-openmp -OPT:early_mp=ON' |
24 |
|
|
25 |
|
NOOPTFLAGS='-O0 -g' |
26 |
NOOPTFILES='' |
NOOPTFILES='' |
27 |
|
|
28 |
|
FFLAGS="$FFLAGS -m32 -convert big_endian" |
29 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
30 |
FFLAGS='-m32 -convert big_endian -ffortran-bounds-check -trapuv -g' |
FFLAGS="$FFLAGS -ffortran-bounds-check -trapuv -g" |
|
else |
|
|
FFLAGS='-m32 -convert big_endian' |
|
31 |
fi |
fi |
32 |
|
|
33 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then #- with optimisation: |
|
# No need for IEEE-754 |
|
34 |
FOPTIM='-Ofast -LNO:fusion=2 -funsafe-math-optimizations' |
FOPTIM='-Ofast -LNO:fusion=2 -funsafe-math-optimizations' |
35 |
else |
else #- no optimisation + IEEE : |
36 |
# Try to follow IEEE-754 |
FOPTIM='-O0 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |
|
FOPTIM='-Ofast -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |
|
37 |
fi |
fi |
38 |
|
|
39 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
40 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
41 |
CFLAGS='-O3 -m32' |
CFLAGS='-O0 -m32' |
42 |
|
|
43 |
if [ "x$NETCDF_ROOT" != x ] ; then |
if [ "x$NETCDF_ROOT" != x ] ; then |
44 |
INCLUDEDIR="${NETCDF_ROOT}/include" |
INCLUDEDIR="${NETCDF_ROOT}/include" |