/[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.2 by jahn, Mon Jun 15 19:05:46 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"
 LIBS="-L$mpichhome/lib -L$netcdfhome/lib"  
   
29    
30  # -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)
31  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT'  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT'
# Line 55  if test "x$IEEE" = x ; then Line 48  if test "x$IEEE" = x ; then
48      # -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)
49      # -assume byterecl     record length in OPEN statements is in bytes      # -assume byterecl     record length in OPEN statements is in bytes
50      # -convert big_endian  binary files contain big-endian data      # -convert big_endian  binary files contain big-endian data
51      FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian'      # -shared-intel        avoids static library mismatch (?)
52      # FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias'      FFLAGS="$FFLAGS -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel"
53  else  else
54      #  Try to follow IEEE-754      #  Try to follow IEEE-754
55      NOOPTFLAGS='-O0'      NOOPTFLAGS='-O0'
# Line 66  else Line 59  else
59      # -pc64       round floating point values to 64 bits      # -pc64       round floating point values to 64 bits
60      # one could also try      # one could also try
61      # -mp         maintain precision      # -mp         maintain precision
62      FFLAGS='-pc64 -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian'      FFLAGS="$FFLAGS -pc64 -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel"
     # FFLAGS='-132 -O3 -xT -fPIC -ipo -fno-alias'  
     # FLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian'  
63  fi  fi
64  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
65  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
66    
67  NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'  NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'
68  NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'  NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'
69    

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

  ViewVC Help
Powered by ViewVC 1.1.22