Changeset 5052


Ignore:
Timestamp:
Jul 15, 2024, 3:30:17 PM (8 weeks ago)
Author:
abarral
Message:

Fix CPU binding on Adastra

Location:
BOL/LMDZ_Setup_amaury
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r5046 r5052  
    7373      module purge
    7474      module load PrgEnv-gnu  # we need to load the env because lmdz links some shared libraries
    75       module load gcc/12.1.0  # required, see https://dci.dci-gitlab.cines.fr/webextranet/user_support/index.html#prgenv-and-compilers
     75      module load gcc/13.2.0  # required, see https://dci.dci-gitlab.cines.fr/webextranet/user_support/index.html#prgenv-and-compilers
    7676
    7777      function cdo {  # cdo is available as a spack cmd which requires a specific, incompatible env
     
    103103      NB_OMP_MAX=200
    104104      NB_CORE_PER_NODE_MAX=192
    105       N_HYPERTHREADING=2
     105      N_HYPERTHREADING=1  # Adastra has SMT=2 enabled, but we found no actual performance improvement for the latlon model. Maybe useful for Dynamico ?
    106106      MPICMD="srun -n"
    107107#      RUNBASHCMD="srun --label --account=$account --constraint=GENOA --ntasks-per-node=1 -n 1 --time=00:15:00 -c"
    108108      RUNBASHCMD="bash"  # On Adastra the docs says we can use login nodes for compilation
    109       SUBMITCMD="env $(env | grep -E "SLURM_|SBATCH_|SRUN_" | cut -d= -f1 | awk '{print "-u " $0}' | tr '\n' ' ' ) sbatch --constraint=GENOA --account=$account"  # we need to remove the existing SLURM variables otherwise they lay be unexpectedly inherited by the submitted script
     109      SUBMITCMD="env $(env | grep -E "SLURM_|SBATCH_|SRUN_" | cut -d= -f1 | awk '{print "-u " $0}' | tr '\n' ' ' ) sbatch --constraint=GENOA --account=$account"  # we need to remove the existing SLURM variables otherwise they may be unexpectedly inherited by the submitted script
    110110      ;;
    111111    *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)"
  • BOL/LMDZ_Setup_amaury/script_SIMU

    r5034 r5052  
    8484SCRIPTDIR=$SCRATCHD/$MAINDIR
    8585
    86 cp $STORED/$MAINDIR/lmdz_env.sh . ; . lmdz_env.sh
     86cp "$STORED/$MAINDIR/lmdz_env.sh" .; . lmdz_env.sh
     87cp "$STORED/$MAINDIR/slurm_set_cpu_binding.sh" .
     88
    8789ERADIR=$STORED/$MAINDIR/GUIDE
    8890if [ "$aerosols" = "spla" ] ; then ERA10mDIR=$STORED/$MAINDIR/ERA10m ; fi
     
    320322echo '##################################################################'
    321323
     324#@ADS if 1; then
    322325time $MPICMD $ntasks ./gcm.e > listing
     326#@ADS else
     327#@ADS srun --cpu-bind=none --mem-bind=none -- ./slurm_set_cpu_binding.sh ./gcm.e > listing
     328#@ADS fi
     329
    323330if [ ! -f restartphy.nc ] ; then
    324331echo PROBLEME PAS DE FICHIER RESTARTPHY
Note: See TracChangeset for help on using the changeset viewer.