Changeset 5034 for BOL/LMDZ_Setup_amaury


Ignore:
Timestamp:
Jul 9, 2024, 2:11:12 PM (5 months ago)
Author:
abarral
Message:

fix Adastra max cpu/node
fix Adastra sbatch env inheritance
remove Adastra nomultithread
fix ini script SUBMITCMD

Location:
BOL/LMDZ_Setup_amaury
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r5032 r5034  
    100100      NB_MPI_MAX=2000
    101101      NB_OMP_MAX=200
    102       NB_CORE_PER_NODE_MAX=96
     102      NB_CORE_PER_NODE_MAX=192
    103103      N_HYPERTHREADING=2
    104104      MPICMD="srun -n"
    105105      RUNBASHCMD="srun --label --account=$account --constraint=GENOA --ntasks-per-node=1 -n 1 --time=00:15:00 -c"
    106       SUBMITCMD="sbatch --constraint=GENOA --account=$account"
     106      SUBMITCMD="env $(env | grep -E "SLURM_|SBATCH_|SRUN_" | cut -d= -f1 | awk '{print "-u " $0}') sbatch --constraint=GENOA --account=$account"  # we need to remove the existing SLURM variables otherwise they lay be unexpectedly inherited by the submitted script
    107107      ;;
    108108    *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)"
  • BOL/LMDZ_Setup_amaury/script_SIMU

    r5006 r5034  
    2020#@SP#SBATCH --ntasks=8
    2121#@SP#SBATCH --cpus-per-task=8
    22 #@SP#SBATCH --hint=nomultithread
    2322#@SP#SBATCH --time=00:30:00
    2423#@SP#SBATCH --output=outNOM_SIMU%j
     
    2827#@ADS#SBATCH --ntasks=8
    2928#@ADS#SBATCH --cpus-per-task=8
    30 #@ADS#SBATCH --ntasks-per-node=8  # TODO check how to scale this
    31 #@ADS#SBATCH --hint=nomultithread
     29#@ADS#SBATCH --ntasks-per-node=8
    3230#@ADS#SBATCH --time=00:30:00
    3331#@ADS#SBATCH --output=outNOM_SIMU%j
  • BOL/LMDZ_Setup_amaury/setup.sh

    r5030 r5034  
    688688    if [[ $ok_guide != "y" ]]; then # Running first simulation automatically except for nudging
    689689      cat << ...eod >> tmp
    690        $SUBMITCMD tmp_$SIM
     690      echo "Submitting job tmp_$SIM"
     691      echo "\$SUBMITCMD tmp_$SIM"
     692      \$SUBMITCMD tmp_$SIM
    691693...eod
    692694    fi
Note: See TracChangeset for help on using the changeset viewer.