Changeset 4995 for BOL


Ignore:
Timestamp:
Jun 26, 2024, 2:16:21 PM (8 days ago)
Author:
abarral
Message:

(WIP) update JEANZAY lmdz_env
fix ecrad data path
run model compilation in a dedicated job
fix Adastra missing --ntasks-per-node

Location:
BOL/LMDZ_Setup_amaury
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r4993 r4995  
    1919  case ${hostname:0:5} in
    2020    jean-)
    21       ARCH="X64_JEANZAY"
    2221      module purge
    2322      compilo=19.0.4 # available 2013.0, 2017.2
     
    3837      #        alors $STORE, $WORK etc vont designer les espaces de "newproj")
    3938      account=$(idrproj | grep active | awk '{ print $1}')
    40       SUBMITCMD="sbatch -A $account@cpu "
    41       RUNCMD="srun --label -n"
    42       # Espaces suivants definis par defaut en fonction du groupe actif,
    43       #  par exemple : SCRATCHD=$SCRATCH is /gpfsstore/rech/$groupe/$login
    44                   #    * On peut aussi ne pas installer les scripts a la racine de STORE,
    45                   #        mais dans STORED=$STORE/your_folder
    46       SIMRUNBASEDIR="$SCRATCH/LMDZ_Setup"
    47       LMDZD=$WORK
     39      root_dir="$WORK/LMDZ_Setup";
     40      ARCH="X64_JEANZAY"
     41      SIMRUNBASEDIR="$SCRATCH/"
     42      LMDZD="$root_dir/LMDZD"
     43      LMDZ_INIT="$root_dir/LMDZ_Init"
    4844      NB_MPI_MAX=2000
    4945      NB_OMP_MAX=20
    50       #LMDZ_Init sur le $STORE du $groupe
    51       LMDZ_INIT=$STORE/LMDZ_Init
     46      RUNCMD="srun --label -n"
     47      SUBMITCMD="sbatch -A $account@cpu"
    5248      ;;
    5349    spiri)
  • BOL/LMDZ_Setup_amaury/script_SIMU

    r4991 r4995  
    2828#@ADS#SBATCH --ntasks=8
    2929#@ADS#SBATCH --cpus-per-task=8
     30#@ADS#SBATCH --ntasks-per-node=8  # TODO check how to scale this
    3031#@ADS#SBATCH --hint=nomultithread
    3132#@ADS#SBATCH --time=00:30:00
  • BOL/LMDZ_Setup_amaury/setup.sh

    r4993 r4995  
    226226  echo "Running install_lmdz_options.$$.sh"
    227227  set -o pipefail
    228   # TODO (wip) Run install_lmdz using $RUNCMD to 1) speed up 2) avoid issues related to being on the "right" platform for compilation
    229   # gcm=$MODEL/$($RUNCMD $make_j bash install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p")
    230     gcm=$MODEL/$(./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p")
     228  # We launch using $RUNCMD, except if it's using mpirun (no srun equivalent for bash script) => if supported, the compilation runs in a cluster job
     229  local install_cmd="$RUNCMD $make_j"
     230  if [[ $(echo "$RUNCMD" | cut -c -6) = "mpirun" ]]; then
     231     install_cmd=""
     232  fi
     233   gcm=$MODEL/$($install_cmd ./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p")
     234#    gcm=$MODEL/$(./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p")
    231235  set +o pipefail
    232236  mv install_lmdz.sh install_lmdz.$$.sh
     
    310314  #---------------------------------------------------------------------
    311315  sed -i'' -e 's/iflag_rrtm=.*.$/iflag_rrtm='"$iflag_rrtm"'/' -e 's/NSW=.*.$/NSW='"$NSW"'/' DEF/physiq.def
    312   sed -i"" -e "s:directory_name.*$:directory_name=\"$MODEL/libf/phylmd/ecrad/ecrad_data\",:" DEF/namelist_ecrad
     316  sed -i"" -e "s:directory_name.*$:directory_name=\"$MODEL/libf/phylmd/ecrad/data\",:" DEF/namelist_ecrad
    313317
    314318  if [[ $phylmd = "lmdiso" ]]; then iflag_ice_thermo=0; else iflag_ice_thermo=1; fi
     
    600604#@JZ#SBATCH --error=Init%j.out      # Nom du fichier d'erreur (ici commun avec la sortie)
    601605#@JZ# To submit to dev queue; "time" (above) must be max 2h
    602 #@JZ# #SBATCH --qos=qos_cpu-dev
     606#@JZ#TESTQ#SBATCH --qos=qos_cpu-dev
    603607#@SP#Spirit
    604608#@SP#SBATCH --job-name=Init
     
    613617#@ADS#SBATCH --ntasks=1
    614618#@ADS#SBATCH --cpus-per-task=1
     619#@ADS#SBATCH --ntasks-per-node=8  # TODO check how to scale this
    615620#@ADS#SBATCH --hint=nomultithread
    616621#@ADS#SBATCH --time=00:10:00
    617622#@ADS#SBATCH --output=Init%j.out
    618623#@ADS#SBATCH --error=Init%j.out
     624
     625set -eu
    619626
    620627# ANCIEN MULTI STEP  case \${LOADL_STEP_NAME} in
Note: See TracChangeset for help on using the changeset viewer.