/[MITgcm]/MITgcm/tools/build_options/linux_ia32_gfortran
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia32_gfortran

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10 by jmc, Tue Sep 6 23:19:30 2011 UTC revision 1.11 by jmc, Thu Sep 8 23:10:15 2011 UTC
# Line 38  OMPFLAG='-fopenmp' Line 38  OMPFLAG='-fopenmp'
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

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.22