Changeset 3573


Ignore:
Timestamp:
Oct 4, 2019, 4:01:59 PM (5 years ago)
Author:
Laurent Fairhead
Message:

Inclusion of jean-zay, the new idris machine
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r3560 r3573  
    8989## parallel can take the values none/mpi/omp/mpi_omp
    9090parallel=mpi_omp
     91idris_acct=lmd
    9192parallel=none
    9293OPT_GPROF=""
     
    218219            module load intel/2017.2 ;
    219220            arch=X64_ADA ;;
     221
     222   jean-)   compiler="mpiifort" ;
     223            par_comp="mpiifort" ;
     224            o_ins_make="-t jeanzay" ;
     225            make=gmake ;
     226            module load intel-compilers/19.0.4 ;
     227            module load intel-mpi/19.0.4 ;
     228            module load hdf5/1.10.5/intel-19.0.4-mpi ;
     229            module load netcdf/4.7.0/intel-19.0.4-mpi ;
     230            module load netcdf-fortran/4.4.5/intel-19.0.4-mpi ;
     231            module load subversion/1.9.7/gcc-4.8.5 ;
     232            module load intel-mkl/19.0.4 ;
     233            export NETCDF_LIBDIR=./
     234            export NETCDFFORTRAN_INCDIR=./
     235            export NETCDFFORTRAN_LIBDIR=./
     236            arch=X64_JEANZAY ;;
    220237
    221238   cicla|camel)   compiler="gfortran" ;
     
    412429   compile_with_fcm=1
    413430
     431elif [ $compiler = mpiifort ] ; then
     432   compile_with_fcm=1
     433
    414434else
    415435   echo unexpected compiler $compiler ; exit
     
    433453  if [ $real = r8 ] ; then OPTPREC="$OPTPREC -real-size 64 -DNC_DOUBLE" ; fi
    434454  OPTIM="-O2 -fp-model strict -ip -axAVX,SSE4.2 -align all "
     455  OPTIMGCM="$OPTIM $OPTPREC"
     456fi
     457if [ ${hostname:0:5} = jean- ] ; then
     458  netcdf=0 # no need to recompile netcdf, alreday available
     459  check_linux=0
     460  pclinux=0
     461  ioipsl=0 # no need to recompile ioipsl, already available
     462  #netcdf="/smplocal/pub/NetCDF/4.1.3"
     463  compiler="mpiifort"
     464  fmod='module '
     465  if [ $real = r8 ] ; then OPTPREC="$OPTPREC -i4 -r8 -DNC_DOUBLE" ; fi
     466  OPTIM="-auto -align all -O2 -fp-model strict -xHost "
    435467  OPTIMGCM="$OPTIM $OPTPREC"
    436468fi
     
    598630    if [ "`grep ada AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar
    599631        \cp -f ~rdzt401/bin/AA_make.gdef .
     632    fi
     633    if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar
     634        echo 'Warning jean-zay not in AA_make.gdef'
     635        echo 'Think about updating'
     636        exit 1
    600637    fi
    601638   
     
    665702    ln -s ~rpsl035/IOIPSL_PLUS/modipsl_Tagv2_2_3/bin/* bin/
    666703    ln -s ~rpsl035/IOIPSL_PLUS/modipsl_Tagv2_2_3/lib/* lib/
    667 
    668   fi # of if [ ${hostname:0:5} = ada33 ]
     704  elif [ ${hostname:0:5} = jean- ] ; then
     705     cd $MODEL/modipsl
     706     cd util
     707       if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar
     708        echo 'Warning jean-zay not in AA_make.gdef'
     709        echo 'Think about updating'
     710        exit 1
     711       fi
     712       ./ins_make $o_ins_make
     713# Compile IOIPSL on jean-zay
     714       cd $MODEL/modipsl/modeles/IOIPSL/src
     715       gmake
     716   
     717  fi # of if  [${hostname:0:5} = ada33 ]
    669718  echo install.sh ioipsl_OK `date`
    670719fi # of if [ $ioipsl = 1 ]
     
    690739    -MPI /smplocal/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/ \
    691740    -arch X64_ADA > xios.log 2>&1
     741   elif [ ${hostname:0:5} = jean- ] ; then
     742    echo 'Need to work on install_xios implementation for jean-zay'
     743    exit
    692744   else
    693745     ./install_xios.bash -prefix $MODEL/modipsl/modeles \
     
    921973  echo resol=${grid_resolution} >> compile.sh
    922974  echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh
     975  echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm
    923976  chmod +x ./compile.sh
    924977  if [ $bench != 0 ] ; then ./compile.sh > $lmdzlog 2>&1 ; fi
     
    9471000
    9481001if [ "$gcm" = "" ] ; then
    949    echo 'Compilation failed !!'
    950    # Ehouarn : temporary, do not exit and let job finish (to set up bench case)
    951    #exit
    952    set +e
     1002  if [ $bench != 0 ] ; then
     1003    echo 'Compilation failed !! Cannot run the benchmark;'
     1004    exit
     1005  else
     1006    echo 'Compilation not done (only done when bench=1)'
     1007  fi
    9531008else
    9541009   echo '##########################################################'
     
    10341089   fi
    10351090   echo "ulimit -s unlimited" >> bench.sh
    1036    echo "$mpirun -np 2 gcm.e > listing  2>&1" >> bench.sh
     1091   if [ ${hostname:0:5} = jean- ] ; then
     1092     echo "srun -n 2 -A $idris_acct@cpu gcm.e > listing  2>&1" >> bench.sh
     1093   else
     1094     echo "$mpirun -np 2 gcm.e > listing  2>&1" >> bench.sh
     1095   fi
    10371096else
    10381097   echo "./gcm.e > listing  2>&1" > bench.sh
     
    10551114  echo 'You may re-run it with : '
    10561115  echo 'cd ' `pwd` '; ./bench.sh'
    1057   echo 'ulimit -s unlimited'
    1058   echo 'export OMP_NUM_THREADS=2'
    1059   echo 'export OMP_STACKSIZE=800M'
    1060   echo "$mpirun -np 2 gcm.e "
     1116#  echo 'ulimit -s unlimited'
     1117#  echo 'export OMP_NUM_THREADS=2'
     1118#  echo 'export OMP_STACKSIZE=800M'
     1119#  echo "$mpirun -np 2 gcm.e "
    10611120fi
    10621121echo '##########################################################'
Note: See TracChangeset for help on using the changeset viewer.