Ignore:
Timestamp:
Jun 26, 2024, 2:16:21 PM (10 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.