Changeset 5052 for BOL/LMDZ_Setup_amaury
- Timestamp:
- Jul 15, 2024, 3:30:17 PM (5 months ago)
- Location:
- BOL/LMDZ_Setup_amaury
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup_amaury/lmdz_env.sh
r5046 r5052 73 73 module purge 74 74 module load PrgEnv-gnu # we need to load the env because lmdz links some shared libraries 75 module load gcc/1 2.1.0 # required, see https://dci.dci-gitlab.cines.fr/webextranet/user_support/index.html#prgenv-and-compilers75 module load gcc/13.2.0 # required, see https://dci.dci-gitlab.cines.fr/webextranet/user_support/index.html#prgenv-and-compilers 76 76 77 77 function cdo { # cdo is available as a spack cmd which requires a specific, incompatible env … … 103 103 NB_OMP_MAX=200 104 104 NB_CORE_PER_NODE_MAX=192 105 N_HYPERTHREADING= 2105 N_HYPERTHREADING=1 # Adastra has SMT=2 enabled, but we found no actual performance improvement for the latlon model. Maybe useful for Dynamico ? 106 106 MPICMD="srun -n" 107 107 # RUNBASHCMD="srun --label --account=$account --constraint=GENOA --ntasks-per-node=1 -n 1 --time=00:15:00 -c" 108 108 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 script109 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 110 110 ;; 111 111 *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)" -
BOL/LMDZ_Setup_amaury/script_SIMU
r5034 r5052 84 84 SCRIPTDIR=$SCRATCHD/$MAINDIR 85 85 86 cp $STORED/$MAINDIR/lmdz_env.sh . ; . lmdz_env.sh 86 cp "$STORED/$MAINDIR/lmdz_env.sh" .; . lmdz_env.sh 87 cp "$STORED/$MAINDIR/slurm_set_cpu_binding.sh" . 88 87 89 ERADIR=$STORED/$MAINDIR/GUIDE 88 90 if [ "$aerosols" = "spla" ] ; then ERA10mDIR=$STORED/$MAINDIR/ERA10m ; fi … … 320 322 echo '##################################################################' 321 323 324 #@ADS if 1; then 322 325 time $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 323 330 if [ ! -f restartphy.nc ] ; then 324 331 echo PROBLEME PAS DE FICHIER RESTARTPHY
Note: See TracChangeset
for help on using the changeset viewer.