Changeset 5046
- Timestamp:
- Jul 11, 2024, 12:52:31 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup_amaury/lmdz_env.sh
r5034 r5046 72 72 adast) 73 73 module purge 74 module load PrgEnv-gnu 75 module load gcc/1 3.2.0 # required, see https://dci.dci-gitlab.cines.fr/webextranet/user_support/index.html#prgenv-and-compilers74 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 76 76 77 77 function cdo { # cdo is available as a spack cmd which requires a specific, incompatible env 78 78 unset cdo 79 79 module purge 80 module load GCC-CPU-3.1.0 81 /opt/software/gaia-external/CPU/cdo-2.4.0/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__spa/cdo-2.4.0-gcc-12.1-b3qr/bin/cdo "$@" 80 module use /opt/software/gaia/branches/530/latest/Core 81 module load GCC-CPU-4.0.0 82 module load cdo/2.4.2-mpi 83 cdo "$@" 82 84 set_env 83 85 } … … 103 105 N_HYPERTHREADING=2 104 106 MPICMD="srun -n" 105 RUNBASHCMD="srun --label --account=$account --constraint=GENOA --ntasks-per-node=1 -n 1 --time=00:15:00 -c" 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 107 # RUNBASHCMD="srun --label --account=$account --constraint=GENOA --ntasks-per-node=1 -n 1 --time=00:15:00 -c" 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 script 107 110 ;; 108 111 *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)"
Note: See TracChangeset
for help on using the changeset viewer.