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

Diff of /MITgcm/tools/build_options/linux_ia64_ifort

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

revision 1.4 by jmc, Fri Mar 5 22:31:47 2010 UTC revision 1.8 by jmc, Mon Jul 22 18:40:45 2013 UTC
# Line 3  Line 3 
3  # $Header$  # $Header$
4  # $Name$  # $Name$
5    
6  # Tested on columbia (SGI Altix cluster)  # Tested on uv100.awi.de (SGI UV 100, details:
7  # a) Processor specific flags:  #                         http://www.sgi.com/products/servers/uv/specs.html)
8  #    1) for more speed on Core2 processors replace -xW with -xT  # a) For more speed, provided your data size does not exceed 2GB you can
 #    2) for more speed on Pentium4 based EM64T processors replaces -xW with -xP  
 # b) For more speed, provided your data size doesn't exceed 2GB you can  
9  #    remove -fPIC which carries a performance penalty of 2-6%.  #    remove -fPIC which carries a performance penalty of 2-6%.
10  # c) Provided that the libraries you link to are compiled with -fPIC this  # b) You can replace -fPIC with '-mcmodel=medium -shared-intel' which may
11  #    optfile should work.  #    perform faster than -fPIC and still support data sizes over 2GB per
12  # d) You can replace -fPIC with -mcmodel=medium which may perform faster  #    process but all the libraries you link to must be compiled with
13  #   then -fPIC and still support data sizes over 2GB per process but all  #    -fPIC or -mcmodel=medium
14  #   the libraries you link to myst be compiled with -fPIC or -mcmodel=medium  # c) flags adjusted for ifort 12.1.0
 # e) Changed from -O3 to -O2 to avoid buggy Intel v.10 compilers. Speed  
 #   impact appears to be minimal.  
15    
16  FC=ifort  FC=ifort
17  F90C=ifort  F90C=ifort
18  CC=icc  CC=icc
19  LINK='ifort -static'  # requires that all static libraries are available:
20    #LINK='ifort -static'
21    LINK='ifort'
22    # for adjoint runs the default makedepend often cannot handle enough files
23    #MAKEDEPEND=tools_xmakedepend
24    
25  DEFINES='-DWORDLENGTH=4'  DEFINES='-DWORDLENGTH=4'
26  CPP='cpp  -traditional -P'  CPP='cpp -traditional -P'
27  F90FIXEDFORMAT='-fixed -Tf'  F90FIXEDFORMAT='-fixed -Tf'
28  EXTENDED_SRC_FLAG='-132'  EXTENDED_SRC_FLAG='-132'
29  #OMPFLAG='-openmp'  #OMPFLAG='-openmp'
30    
31  NOOPTFLAGS='-O0 -g -m64 -fPIC'  NOOPTFLAGS="-O0 -g -m64"
32  NOOPTFILES=''  NOOPTFILES=''
33    
34  INCLUDEDIRS=''  MCMODEL='-fPIC'
35  INCLUDES=''  # for large memory requirements uncomment this line
36  LIBS=''  #MCMODEL='-mcmodel=medium -shared-intel'
37    
38  if test "x$DEVEL" != x ; then  FFLAGS="$FFLAGS -W0 -WB -convert big_endian -assume byterecl $MCMODEL"
     FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0 -traceback -ftrapuv -fpmodel except -warn all"  
 else  
     FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC"  
 fi  
39  #- might want to use '-r8' for fizhi pkg:  #- might want to use '-r8' for fizhi pkg:
40  #FFLAGS="$FFLAGS -r8"  #FFLAGS="$FFLAGS -r8"
41    
42  #  Note that the -mp switch is for ieee "maintain precision" and is  if test "x$IEEE" = x ; then     #- with optimisation:
43  #  roughly equivalent to -ieee      FOPTIM='-O3 -align'
44  if test "x$IEEE" = x ; then  # does not work when -static does not work
45      #  No need for IEEE-754  #    FOPTIM='-fast -align'
46      FOPTIM='-O2 -align'  # instead you can use
47    #    FOPTIM='-O3 -ipo -align'
48  else  else
49      #  Try to follow IEEE-754    if test "x$DEVEL" = x ; then  #- no optimisation + IEEE :
50      FOPTIM='-O0 -noalign -mp'      FOPTIM='-O0 -noalign -fp-model precise'
51       # -fltconsistency
52      else                          #- development/check options:
53        FOPTIM='-O0 -noalign -fp-model precise'
54        FOPTIM="$FOPTIM -g -check all -fpe0 -traceback -ftrapuv -fp-model except -warn all"
55      fi
56  fi  fi
57    
58  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
59  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
60  CFLAGS='-O2 -ip -fPIC'  CFLAGS="-O0 -ip $MCMODEL"
61    
62    INCLUDEDIRS=''
63    INCLUDES=''
64    LIBS=''
65    
66  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then
67      INCLUDEDIRS="${NETCDF_ROOT}/include"      INCLUDEDIRS="${NETCDF_ROOT}/include"
# Line 91  elif test -d /usr/local/include/netcdf.i Line 98  elif test -d /usr/local/include/netcdf.i
98      LIBS='-L/usr/local/lib64'      LIBS='-L/usr/local/lib64'
99  fi  fi
100    
101    if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
102        LIBS="$LIBS -lmpi"
103        INCLUDES="$INCLUDES -I$MPI_INC_DIR"
104        INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
105        #- used for parallel (MPI) DIVA
106        MPIINCLUDEDIR="$MPI_INC_DIR"
107       #MPI_HEADER_FILES='mpif.h mpiof.h'
108    fi
109    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22