Changeset 5046


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

fix Adastra env

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r5034 r5046  
    7272    adast)
    7373      module purge
    74       module load PrgEnv-gnu
    75       module load gcc/13.2.0  # required, see https://dci.dci-gitlab.cines.fr/webextranet/user_support/index.html#prgenv-and-compilers
     74      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
    7676
    7777      function cdo {  # cdo is available as a spack cmd which requires a specific, incompatible env
    7878        unset cdo
    7979        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 "$@"
    8284        set_env
    8385      }
     
    103105      N_HYPERTHREADING=2
    104106      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
    107110      ;;
    108111    *) 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.