/[MITgcm]/MITgcm/tools/build_options/linux_amd64_pathf90+mth
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_pathf90+mth

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

revision 1.1 by ce107, Mon Aug 20 20:31:00 2007 UTC revision 1.2 by ce107, Mon Jun 22 23:13:30 2009 UTC
# Line 3  Line 3 
3  #  $Header$  #  $Header$
4  #  $Name$  #  $Name$
5  #  #
6  # Build options for Fedore Core 3 x86-64 Opteron  # Multithreaded tests require
7  # 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  # export PSC_OMP_STACK_SIZE=400m
8    # export OMP_NUM_THREADS=2
9  #  #
10    
11  CC=pathcc  CC=pathcc
# Line 17  NOOPTFLAGS='-O0 -m64 -g -fPIC -openmp' Line 18  NOOPTFLAGS='-O0 -m64 -g -fPIC -openmp'
18  NOOPTFILES=''  NOOPTFILES=''
19    
20  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
21      FFLAGS='-m64 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g -openmp'      FFLAGS='-m64 -convert big_endian -fPIC -openmp -ffortran-bounds-check -trapuv -g'
22  else  else
23      FFLAGS='-m64 -convert big_endian -fPIC -openmp'      FFLAGS='-m64 -convert big_endian -fPIC -openmp'
24  fi  fi
25    
26  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
27      #  No need for IEEE-754      #  No need for IEEE-754
28      FOPTIM='-Ofast' # -funsafe-math-optimizations'      FOPTIM='-Ofast -LNO:fusion=2 -funsafe-math-optimizations -OPT:early_mp=ON'
29  else  else
30      #  Try to follow IEEE-754      #  Try to follow IEEE-754
31      FOPTIM='-Ofast -LNO:fusion=2 -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 -OPT:early_mp=ON'
32  fi  fi
33    
34  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
35  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
36  CFLAGS='-O3 -m64 -fPIC'  CFLAGS='-O3 -m64 -fPIC -openmp'
37    
38  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then
39      INCLUDEDIR="${NETCDF_ROOT}/include"      INCLUDEDIR="${NETCDF_ROOT}/include"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22