38 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
39 |
NOOPTFILES='' |
NOOPTFILES='' |
40 |
|
|
41 |
|
has_sse2=f |
42 |
|
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
43 |
|
|
44 |
# Requires gfortran from 2006 onwards for -fconvert=big-endian |
# Requires gfortran from 2006 onwards for -fconvert=big-endian |
45 |
FFLAGS="$FFLAGS -fconvert=big-endian -fimplicit-none" |
FFLAGS="$FFLAGS -fconvert=big-endian -fimplicit-none" |
46 |
#- otherwise, switch to the home-made byte-swap: |
#- otherwise, switch to the home-made byte-swap: |
47 |
#DEFINES="-D_BYTESWAPIO $DEFINES" |
#DEFINES="-D_BYTESWAPIO $DEFINES" |
48 |
|
|
|
has_sse2=f |
|
|
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
|
|
|
|
49 |
if test "x$IEEE" = x ; then #- with optimisation: |
if test "x$IEEE" = x ; then #- with optimisation: |
50 |
FOPTIM='-O3 -funroll-loops' |
FOPTIM='-O3 -funroll-loops' |
51 |
if test "x$has_sse2" = xt ; then |
#if test "x$has_sse2" = xt ; then |
52 |
#FOPTIM="$FOPTIM -ftree-vectorize" # <-- was in optfile gfortran4.4 |
# FOPTIM="$FOPTIM -ftree-vectorize -msse -msse2" # <-- from optfile gfortran4.4 |
53 |
FOPTIM="$FOPTIM -msse -msse2" |
#fi |
|
fi |
|
54 |
else |
else |
55 |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
56 |
if test "x$has_sse2" = xt ; then |
if test "x$has_sse2" = xt ; then |