Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/linux_amd64_ifort+mpi_ice_nas is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit ddd0863a on 2023-02-25 19:38:26 UTC
3ee2cce2f5 Jean*0001 #! /usr/bin/env bash
                0002 
                0003 # Used to run testreport on pleiades after OS changed from SLES to TOSS (v.3),
                0004 # using either recent intel compiler:
                0005 #   > module load comp-intel/2020.4.304
                0006 # or using older intel compiler:
                0007 #   > module load comp-intel/2016.2.181
                0008 #- and, with MPI:
                0009 #   > module load mpi-hpe/mpt.2.25
                0010 #   > module load hdf4/4.2.12 hdf5/1.8.18_mpt netcdf/4.4.1.1_mpt
                0011 #- and without:
                0012 #   > module load hdf4/4.2.12 hdf5/1.8.18_serial netcdf/4.4.1.1_serial
                0013 #- Note: in both cases, the last line of 3 module setting is for NetCDF
                0014 #        (could be skipped if not using at all this type of I/O).
75db952e11 Hong*0015 
0593bce810 Dimi*0016 CC=icc
ddd0863ad9 Jean*0017 FC=ifort
                0018 F90C=ifort
                0019 LINK="$F90C -shared-intel"
75db952e11 Hong*0020 
b7dce41a7d Jean*0021 CPP='/lib/cpp -traditional -P'
3ee2cce2f5 Jean*0022 DEFINES='-DWORDLENGTH=4 -DINTEL_COMMITQQ'
b7dce41a7d Jean*0023 F90FIXEDFORMAT='-fixed -Tf'
75db952e11 Hong*0024 EXTENDED_SRC_FLAG='-132'
b7dce41a7d Jean*0025 GET_FC_VERSION="--version"
c26ad343d2 Jean*0026 OMPFLAG='-qopenmp'
75db952e11 Hong*0027 
604130ac1a Davi*0028 #NOOPTFLAGS='-O1 -fp-model precise'
                0029 NOOPTFLAGS='-O0'
b7dce41a7d Jean*0030 NOOPTFILES=''
75db952e11 Hong*0031 
b7dce41a7d Jean*0032 CFLAGS='-O0'
                0033 FFLAGS="$FFLAGS -convert big_endian -assume byterecl"
75db952e11 Hong*0034 
b7dce41a7d Jean*0035 #- for big setups, compile & link with "-fPIC" or set memory-model to "medium":
                0036 CFLAGS="$CFLAGS -fPIC"
                0037 FFLAGS="$FFLAGS -fPIC"
75db952e11 Hong*0038 #- For really big executable (> 2 GB), uncomment following 2 lines
                0039 #FFLAGS="$FFLAGS -mcmodel=medium -shared-intel"
0593bce810 Dimi*0040 #CFLAGS="$CFLAGS -mcmodel=medium -shared-intel"
b7dce41a7d Jean*0041 #- might want to use '-r8' for fizhi pkg:
                0042 #FFLAGS="$FFLAGS -r8"
                0043 
                0044 FFLAGS="$FFLAGS -W0 -WB"
                0045 if test "x$IEEE" = x ; then     #- with optimisation:
                0046     FOPTIM='-O2 -ipo -fp-model precise -align -axCORE-AVX2 -xSSE4.2 -traceback -ftz'
                0047     NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F ini_parms.F'
5dd8c16144 Dimi*0048     NOOPTFILES="$NOOPTFILES obcs_init_fixed.F"
b7dce41a7d Jean*0049 else
                0050   if test "x$DEVEL" = x ; then  #- no optimisation + IEEE :
                0051     FOPTIM='-O0 -noalign'
                0052   else                          #- development/check options:
                0053    #FFLAGS="$FFLAGS -debug all -debug-parameters all -fp-model strict"
                0054     FOPTIM="-O0 -noalign -g -traceback"
                0055     NOOPTFLAGS=$FOPTIM
dba3d5ad42 Jean*0056     NOOPTFILES='adread_adwrite.F'
b7dce41a7d Jean*0057     FOPTIM="$FOPTIM -warn all -warn nounused"
                0058     FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv"
                0059   fi
                0060 fi
                0061 
                0062 F90FLAGS=$FFLAGS
                0063 F90OPTIM=$FOPTIM
                0064 
3ee2cce2f5 Jean*0065 INCLUDEDIRS=''
                0066 INCLUDES=''
                0067 LIBS=''
                0068 
                0069 if [ -n "$MPI_ROOT" -a "x$MPI" = xtrue ] ; then
                0070     if [ -z "$MPI_INC_DIR" ]; then
                0071       MPI_INC_DIR="${MPI_ROOT}/include"
                0072     fi
                0073     LIBS="$LIBS -L${MPI_ROOT}/lib -lmpi"
                0074 fi
                0075 
                0076 if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
                0077     INCLUDES="$INCLUDES -I${MPI_INC_DIR}"
                0078     #INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
                0079     #- used for parallel (MPI) DIVA
                0080     MPIINCLUDEDIR="$MPI_INC_DIR"
                0081     #MPI_HEADER_FILES='mpif.h mpiof.h'
                0082 fi
b7dce41a7d Jean*0083 
3ee2cce2f5 Jean*0084 if [ "x$NETCDF" != x ] ; then
                0085     INCLUDES="$INCLUDES -I${NETCDF}/include"
                0086     #INCLUDEDIRS="$INCLUDEDIRS ${NETCDF}/include"
                0087     LIBS="$LIBS -L${NETCDF}/lib"
                0088 fi