/[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.1 by jahn, Wed Aug 6 21:54:56 2008 UTC revision 1.5 by jahn, Thu Oct 15 23:06:32 2009 UTC
# Line 3  Line 3 
3  #  $Header$  #  $Header$
4  #  $Name$  #  $Name$
5  #  #
6  #  These are the build options used with the Intel 9.x compiler for  #  These are the build options used with the Intel 10.x compiler for
7  #  testing on Beagle.  #  testing on Beagle.
8  #  #
9  #  Please note that the appropriate module commands:  #  Use after
10  #  #
11  #    module add intel/9.1.051  #    module add darwin
12  #    module add mpich-mx/1.2.7..1/intel/9.1.051  #    module add mitgcm
13    #
14    #  (tested with darwin/20090605 mitgcm/20090605, i.e.,
15    #  intel/10.0.025 mx/1.0 netcdf/3.6.2/intel-10.0.025 mpich-mx/1.2.7..7/intel-10.0.025)
16    #
17    #  These modules set FFLAGS, CFLAGS and CPPFLAGS for mpich and netcdf.
18  #  #
 #  will add /home/ibm/util/mpich-mx-1.2.7..1/icc/9.1.051/lib,  
 #  /opt/intel/cce/9.1.051/lib and /opt/intel/fce/9.1.051/lib  
 #  to LD_LIBRARY_PATH which is needed by any executables generated  
 #  with this optfile.  
19  #  The SGE -V option for exporting environment variables may also be  #  The SGE -V option for exporting environment variables may also be
20  #  helpful if you encounter missing-library problems.  Or,  #  helpful if you encounter missing-library problems.  Or,
21  #  alternatively, one may choose to link with one of the intel  #  alternatively, one may choose to link with one of the intel
22  #  "-static" or "-i-static" flags.  #  "-static" or "-i-static" flags.
23    
   
 mpichhome=/home/ibm/util/mpich-mx-1.2.7..1/icc/9.1.051  
 #netcdfhome=/home/software/netcdf/netcdf-3.6.2/intel-9.1.051  
 netcdfhome=/home/ibm/util/netcdf-3.6.2  
   
   
24  FC='mpif77'  FC='mpif77'
25  CC='mpicc'  CC='mpicc'
26  F90C='mpif90 -fixed -c '  F90C='mpif90 -fixed -c '
27  LINK='mpif77'  LINK='mpif77'
28  INCLUDES="-I$mpichhome/include -I$netcdfhome/include"  INCLUDES="$CPPFLAGS"
29  LIBS="-L$mpichhome/lib -L$netcdfhome/lib"  LIBS="$LDFLAGS -shared-intel"
   
30    
31  # -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)
32  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT'  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT'
33  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
34    EXTENDED_SRC_FLAG='-132'
35    #OMPFLAG='-openmp'
36    
37  NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F mom_calc_ke.F'  NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F mom_calc_ke.F mon_ke.F'
38    
39  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
40      #  No need for IEEE-754      #  No need for IEEE-754
41      NOOPTFLAGS='-O2'      NOOPTFLAGS='-O2'
42      FOPTIM='-O3 -align'      # use this for exact checkpointing (slightly slower):
43        # FOPTIM='-O2 -pc64 -mieee-fp -align'
44        FOPTIM='-O2 -align'
45      # ifort options:      # ifort options:
46      # -132        fixed-form line length is 132 characters      # -132        fixed-form line length is 132 characters
47      # -r8         REAL is REAL*8      # -r8         REAL is REAL*8
# Line 55  if test "x$IEEE" = x ; then Line 53  if test "x$IEEE" = x ; then
53      # -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)
54      # -assume byterecl     record length in OPEN statements is in bytes      # -assume byterecl     record length in OPEN statements is in bytes
55      # -convert big_endian  binary files contain big-endian data      # -convert big_endian  binary files contain big-endian data
56      FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian'      # -shared-intel        avoids static library mismatch (?)
57      # FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias'      FFLAGS="$FFLAGS -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian"
58  else  else
59      #  Try to follow IEEE-754      #  Try to follow IEEE-754
60      NOOPTFLAGS='-O0'      NOOPTFLAGS='-O0'
# Line 66  else Line 64  else
64      # -pc64       round floating point values to 64 bits      # -pc64       round floating point values to 64 bits
65      # one could also try      # one could also try
66      # -mp         maintain precision      # -mp         maintain precision
67      FFLAGS='-pc64 -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian'      FFLAGS="$FFLAGS -pc64 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian"
     # FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias'  
     # FLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian'  
68  fi  fi
69  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
70  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
71    
72  NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'  NOOPTFILES=$NOOPTFILES' mds_byteswap.F'
73  NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'  

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

  ViewVC Help
Powered by ViewVC 1.1.22