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

Diff of /MITgcm/tools/build_options/linux_amd64_ifort11

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

revision 1.8 by jmc, Tue Sep 27 19:02:59 2011 UTC revision 1.15 by jmc, Fri Oct 25 18:59:58 2013 UTC
# Line 9  Line 9 
9  #  Tested on baudelaire (FC 13) with intel compiler v.11.1.073 (20100806)  #  Tested on baudelaire (FC 13) with intel compiler v.11.1.073 (20100806)
10  #  #
11  # OpenMP : tested on danton (FC 14) using intel compiler v.11.1.046 (20090630)  # OpenMP : tested on danton (FC 14) using intel compiler v.11.1.046 (20090630)
12  #                                              and also  v.12.0.4   (20110427)  #                                    and (FC 14,17 & 19) v.12.0.4   (20110427)
13    #                                    and also (FC 19)    v.14.0.0   (20130728)
14  #  #
15  # MPI : Tested  on danton (FC 14), with and without OpenMP, using  # MPI : Tested  on danton, with and without OpenMP,
16  #       intel compiler v.11.1.046 (20090630) and also  v.12.0.4   (20110427)  #        using intel compiler v.11.1.046 and v.12.0.4 and also v.14.0.0
17    #       and  on acesgrid  (FC 15)  with intel compiler v.13.0.0.079 (20120731)
18  # ==> DON'T FORGET to set environment variable MPI_INC_DIR to the include  # ==> DON'T FORGET to set environment variable MPI_INC_DIR to the include
19  #     directory of your MPI implementation  #     directory of your MPI implementation
20    
# Line 38  else Line 40  else
40    CC=icc    CC=icc
41    FC=ifort    FC=ifort
42    F90C=ifort    F90C=ifort
43    LINK=ifort    LINK="$F90C -shared-intel"
44  fi  fi
45    
46  DEFINES='-DWORDLENGTH=4'  DEFINES='-DWORDLENGTH=4'
 CPP='cpp -traditional -P'  
47  F90FIXEDFORMAT='-fixed -Tf'  F90FIXEDFORMAT='-fixed -Tf'
48  EXTENDED_SRC_FLAG='-132'  EXTENDED_SRC_FLAG='-132'
49  GET_FC_VERSION="--version"  GET_FC_VERSION="--version"
# Line 57  else Line 58  else
58      PROCF=-xHost      PROCF=-xHost
59  fi  fi
60    
61  FFLAGS="$FFLAGS -m64 -fPIC -convert big_endian -assume byterecl"  CFLAGS="-O0 -ip -m64 $PROCF"
62    FFLAGS="$FFLAGS -m64 -convert big_endian -assume byterecl"
63    #- for big setups, compile & link with "-fPIC" or set memory-model to "medium":
64    #CFLAGS="$CFLAGS -fPIC"
65    #FFLAGS="$FFLAGS -fPIC"
66    #-  with FC 19, need to use this without -fPIC (which cancels -mcmodel option):
67     CFLAGS="$CFLAGS -mcmodel=medium"
68     FFLAGS="$FFLAGS -mcmodel=medium"
69  #- might want to use '-r8' for fizhi pkg:  #- might want to use '-r8' for fizhi pkg:
70  #FFLAGS="$FFLAGS -r8"  #FFLAGS="$FFLAGS -r8"
71    
72  if test "x$IEEE" = x ; then     #- with optimisation:  if test "x$IEEE" = x ; then     #- with optimisation:
73      FOPTIM="-O2 -align -ip -opt-streaming-stores auto $PROCF"      FOPTIM="-O2 -align -ip -fp-model source $PROCF"
74  else  else
75    if test "x$DEVEL" = x ; then  #- no optimisation + IEEE :    if test "x$DEVEL" = x ; then  #- no optimisation + IEEE :
76      FOPTIM="-O0 -fp-model source -noalign $PROCF"      FOPTIM="-O0 -fp-model source -noalign $PROCF"
# Line 70  else Line 78  else
78     #FFLAGS="$FFLAGS -debug all -debug-parameters all -fp-model strict"     #FFLAGS="$FFLAGS -debug all -debug-parameters all -fp-model strict"
79      FOPTIM="-O0 -noalign -g -traceback $PROCF"      FOPTIM="-O0 -noalign -g -traceback $PROCF"
80      NOOPTFLAGS=$FOPTIM      NOOPTFLAGS=$FOPTIM
81      NOOPTFILES='adread_adwrite.F'      NOOPTFILES='adread_adwrite.F mdsio_rw_field.F mdsio_rw_slice.F'
82      FOPTIM="$FOPTIM -warn all -warn nounused"      FOPTIM="$FOPTIM -warn all -warn nounused"
83      FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv"      FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv"
84    fi    fi
# Line 78  fi Line 86  fi
86    
87  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
88  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
 CFLAGS="-O0 -ip -m64 -fPIC $PROCF"  
89    
90  INCLUDEDIRS=''  INCLUDEDIRS=''
91  INCLUDES=''  INCLUDES=''
# Line 126  fi Line 133  fi
133  if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then  if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
134      INCLUDES="$INCLUDES -I$MPI_INC_DIR"      INCLUDES="$INCLUDES -I$MPI_INC_DIR"
135      INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"      INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
136        #- used for parallel (MPI) DIVA
137      MPIINCLUDEDIR="$MPI_INC_DIR"      MPIINCLUDEDIR="$MPI_INC_DIR"
138      MPI_HEADER_FILES='mpif.h mpiof.h'     #MPI_HEADER_FILES='mpif.h mpiof.h'
     MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'  
139  fi  fi

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

  ViewVC Help
Powered by ViewVC 1.1.22