--- MITgcm/tools/build_options/linux_ia32_gfortran 2011/09/06 23:19:30 1.10 +++ MITgcm/tools/build_options/linux_ia32_gfortran 2011/09/08 23:10:15 1.11 @@ -1,6 +1,6 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_ia32_gfortran,v 1.10 2011/09/06 23:19:30 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_ia32_gfortran,v 1.11 2011/09/08 23:10:15 jmc Exp $ # $Name: $ # @@ -38,20 +38,19 @@ NOOPTFLAGS='-O0' NOOPTFILES='' +has_sse2=f +grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t + # Requires gfortran from 2006 onwards for -fconvert=big-endian FFLAGS="$FFLAGS -fconvert=big-endian -fimplicit-none" #- otherwise, switch to the home-made byte-swap: #DEFINES="-D_BYTESWAPIO $DEFINES" -has_sse2=f -grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t - if test "x$IEEE" = x ; then #- with optimisation: FOPTIM='-O3 -funroll-loops' - if test "x$has_sse2" = xt ; then - #FOPTIM="$FOPTIM -ftree-vectorize" # <-- was in optfile gfortran4.4 - FOPTIM="$FOPTIM -msse -msse2" - fi + #if test "x$has_sse2" = xt ; then + # FOPTIM="$FOPTIM -ftree-vectorize -msse -msse2" # <-- from optfile gfortran4.4 + #fi else if test "x$DEVEL" = x ; then #- no optimisation + IEEE : if test "x$has_sse2" = xt ; then