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

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

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

revision 1.4 by dimitri, Fri Jul 30 06:21:33 2010 UTC revision 1.20 by jmc, Wed Jun 28 20:35:47 2017 UTC
# Line 3  Line 3 
3  # $Header$  # $Header$
4  # $Name$  # $Name$
5    
6  # tested on pleiades using:  # Used to run the testreport on pleiades with:
7  # module load comp-intel/11.1.046 mpi/mpt.1.25 netcdf/3.6.0/intel  # module load comp-intel/2016.2.181 mpi-sgi/mpt.2.14r19 netcdf/4.0
8  #  # works on all types of nodes
 # Note: option -xSSE4.2 (left commented below) can be used on queue "normal_N"  
 #  (not compatible with  "normal" queue processors) to get additional speed-up.  
9    
10  FC=ifort  FC=ifort
11    CC=icc
12    
13  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'  CPP='/lib/cpp -traditional -P'
14  CPP='/lib/cpp  -traditional -P'  DEFINES='-DALLOW_USE_MPI -DWORDLENGTH=4 -DINTEL_COMMITQQ'
15    F90FIXEDFORMAT='-fixed -Tf'
16  EXTENDED_SRC_FLAG='-132'  EXTENDED_SRC_FLAG='-132'
17    GET_FC_VERSION="--version"
18  OMPFLAG='-openmp'  OMPFLAG='-openmp'
19    
20  LIBS='-L/nasa/sgi/mpt/1.25/lib -lmpi -L/nasa/netcdf/3.6.0/intel/lib -lnetcdf'  #NOOPTFLAGS='-O1 -fp-model precise'
 INCLUDES='-I/nasa/sgi/mpt/1.25/include -I/nasa/netcdf/3.6.0/intel/include'  
 INCLUDEDIRS='/nasa/sgi/mpt/1.25/include'  
 MPIINCLUDEDIR='/nasa/sgi/mpt/1.25/include'  
 MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h'  
 MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h'  
   
21  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
22    NOOPTFILES=''
23    
24  if test "x$IEEE" = x ; then  CFLAGS='-O0'
25      #  No need for IEEE-754  FFLAGS="$FFLAGS -convert big_endian -assume byterecl"
26      FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl -align"  
27      FOPTIM='-O2 -ip -xSSE4.1 -fp-model precise -ftz'  #- for big setups, compile & link with "-fPIC" or set memory-model to "medium":
28  #   FOPTIM='-O2 -ip -xSSE4.2 -fp-model precise -ftz'  CFLAGS="$CFLAGS -fPIC"
29      NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F'  FFLAGS="$FFLAGS -fPIC"
30  else  #- For really big executable (> 2 GB), uncomment following 2 lines
31      #  Try to follow IEEE-754  #FFLAGS="$FFLAGS -mcmodel=medium -shared-intel"
32      FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl -noalign"  #CFLAGS="$CFLAGS -mcmodel=medium -shared-intel"
     FOPTIM='-O0'  
 fi  
33  #- might want to use '-r8' for fizhi pkg:  #- might want to use '-r8' for fizhi pkg:
34  #FFLAGS="$FFLAGS -r8"  #FFLAGS="$FFLAGS -r8"
35    
36  #- For really big executable (> 2 GB), uncomment following 2 lines  LDADD='-shared-intel'
37  #FFLAGS="$FFLAGS -mcmodel medium -shared-intel"  
38  #CFLAGS='-mcmodel=medium'  FFLAGS="$FFLAGS -W0 -WB"
39    if test "x$IEEE" = x ; then     #- with optimisation:
40        FOPTIM='-O2 -ipo -fp-model precise -align -axCORE-AVX2 -xSSE4.2 -traceback -ftz'
41        NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F ini_parms.F'
42    else
43      if test "x$DEVEL" = x ; then  #- no optimisation + IEEE :
44        FOPTIM='-O0 -noalign'
45      else                          #- development/check options:
46       #FFLAGS="$FFLAGS -debug all -debug-parameters all -fp-model strict"
47        FOPTIM="-O0 -noalign -g -traceback"
48        NOOPTFLAGS=$FOPTIM
49        NOOPTFILES='adread_adwrite.F mdsio_rw_field.F mdsio_rw_slice.F'
50        FOPTIM="$FOPTIM -warn all -warn nounused"
51        FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv"
52      fi
53    fi
54    
55    F90FLAGS=$FFLAGS
56    F90OPTIM=$FOPTIM
57    
58    LIBS='-L/nasa/sgi/mpt/2.14r19/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf'
59    INCLUDES='-I/nasa/sgi/mpt/2.14r19/include -I/nasa/netcdf/4.0/include'
60    #INCLUDEDIRS='/nasa/sgi/mpt/2.14r19/include'
61    
62    #- used for parallel (MPI) DIVA
63     MPIINCLUDEDIR='/nasa/sgi/mpt/2.14r19/include'
64    #MPI_HEADER_FILES='mpif.h mpiof.h'

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

  ViewVC Help
Powered by ViewVC 1.1.22