/[MITgcm]/MITgcm/tools/build_options/linux_amd64_ifort+mpi_beagle
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_ifort+mpi_beagle

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

revision 1.5 by jahn, Thu Oct 15 23:06:32 2009 UTC revision 1.7 by jahn, Thu Sep 2 14:12:41 2010 UTC
# Line 25  FC='mpif77' Line 25  FC='mpif77'
25  CC='mpicc'  CC='mpicc'
26  F90C='mpif90 -fixed -c '  F90C='mpif90 -fixed -c '
27  LINK='mpif77'  LINK='mpif77'
28    for path in $(echo "$CPATH" | sed 's/:/ /g'); do
29      CPPFLAGS="$CPPFLAGS -I$path"
30    done
31  INCLUDES="$CPPFLAGS"  INCLUDES="$CPPFLAGS"
32    # for static linkage:
33    #LIBS="$LDFLAGS -static"
34    # for dynamic linkage:
35  LIBS="$LDFLAGS -shared-intel"  LIBS="$LDFLAGS -shared-intel"
36    
37    
38  # -DIFORT turns on ifort-specific declarations in darwin (RAND is not an intrinsic)  # -DIFORT turns on ifort-specific declarations in darwin (RAND is not an intrinsic)
39  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT'  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT'
40  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
# Line 40  if test "x$IEEE" = x ; then Line 47  if test "x$IEEE" = x ; then
47      #  No need for IEEE-754      #  No need for IEEE-754
48      NOOPTFLAGS='-O2'      NOOPTFLAGS='-O2'
49      # use this for exact checkpointing (slightly slower):      # use this for exact checkpointing (slightly slower):
50      # FOPTIM='-O2 -pc64 -mieee-fp -align'      FOPTIM='-O2 -pc64 -mieee-fp -align'
51      FOPTIM='-O2 -align'      # use this for flighty faster execution but with roundoff errors in checkpointing:
52        # FOPTIM='-O2 -align'
53      # ifort options:      # ifort options:
54      # -132        fixed-form line length is 132 characters      # -132        fixed-form line length is 132 characters
55      # -r8         REAL is REAL*8      # -r8         REAL is REAL*8
# Line 50  if test "x$IEEE" = x ; then Line 58  if test "x$IEEE" = x ; then
58      # -W0         disable all warning messages      # -W0         disable all warning messages
59      # -WB         turns a compile-time bounds check error into a warning      # -WB         turns a compile-time bounds check error into a warning
60      # -xT         optimize for Intel Core2 and Xeon 51xx      # -xT         optimize for Intel Core2 and Xeon 51xx
61      # -fno-alias  don't assume aliasing (assume that different variables DON'T refer to the same memory location)      # -fno-alias  don't assume aliasing (assume that different variables DON'T refer to the same memory location)
62      # -assume byterecl     record length in OPEN statements is in bytes      # -assume byterecl     record length in OPEN statements is in bytes
63      # -convert big_endian  binary files contain big-endian data      # -convert big_endian  binary files contain big-endian data
64      # -shared-intel        avoids static library mismatch (?)      # -shared-intel        avoids static library mismatch (?)
65      FFLAGS="$FFLAGS -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian"      FFLAGS="$FFLAGS -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian"
66  else  else
67      #  Try to follow IEEE-754      #  Try to follow IEEE-754
68      NOOPTFLAGS='-O0'      NOOPTFLAGS='-O0'
# Line 64  else Line 72  else
72      # -pc64       round floating point values to 64 bits      # -pc64       round floating point values to 64 bits
73      # one could also try      # one could also try
74      # -mp         maintain precision      # -mp         maintain precision
75      FFLAGS="$FFLAGS -pc64 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian"      FFLAGS="$FFLAGS -pc64 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian"
76  fi  fi
77    #- might want to use '-r8' for fizhi pkg:
78    #FFLAGS="$FFLAGS -r8"
79    
80  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
81  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
82    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22