Ignore:
Timestamp:
Jul 1, 2024, 10:09:23 AM (3 months ago)
Author:
abarral
Message:

update lmdz_env.sh to separate bash run and srun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r4995 r5000  
    4444      NB_MPI_MAX=2000
    4545      NB_OMP_MAX=20
    46       RUNCMD="srun --label -n"
     46      MPICMD="srun -n"
     47      RUNBASHCMD="srun -A $account@cpu --label -n 1 -c"
    4748      SUBMITCMD="sbatch -A $account@cpu"
    4849      ;;
     
    5455      module load cdo/2.3.0
    5556
    56       root_dir=~/"LMDZ_SETUP_ROOT/LMDZ_Setup";
     57      root_dir="/data/abarral/LMDZ_SETUP_ROOT/LMDZ_Setup";
    5758      ARCH="X64_MESOIPSL-GNU"
    5859      SIMRUNBASEDIR="$SCRATCH/"
    5960      LMDZD="$root_dir/LMDZD"
    6061      LMDZ_INIT="$root_dir/LMDZ_Init"
    61       NB_MPI_MAX=20
     62      NB_MPI_MAX=5
    6263      NB_OMP_MAX=1
    63       RUNCMD="mpirun -n"  # on spirit, we can't run MPI using srun from within sbatch
     64      MPICMD="mpirun -np"  # on spirit, we can't run MPI using srun from within sbatch
     65      RUNBASHCMD="bash"
    6466      SUBMITCMD="sbatch"
    6567      ;;
     
    9496      NB_MPI_MAX=1  # TODO 2000 in JZ
    9597      NB_OMP_MAX=1  # TODO 20 in JZ
    96       RUNCMD="srun --label --account=$account --constraint=GENOA -n"
     98      MPICMD="srun -n"
     99      RUNBASHCMD="srun --label --account=$account --constraint=GENOA --ntasks-per-node=1 -n 1 --time=00:10:00 -c"
    97100      SUBMITCMD="sbatch --constraint=GENOA --account=$account"
    98101      ;;
     
    105108      NB_MPI_MAX=2  # Max number of MPI cores (only for running simulations)
    106109      NB_OMP_MAX=1  # Max number of OMP threads (only for running simulations)
    107       RUNCMD="mpirun -np" # command to run a job, as $runcmd <nprocs> <script>
     110      MPICMD="mpirun -np" # command to run an mpi executable, as $MPICMD <nprocs> <script>
     111      RUNBASHCMD="bash" # command to run a bash job, as $runbashcmd (nthreads) <script> [nthreads only supplied if =/="bash"]
    108112      SUBMITCMD="."  # command to sumbit a job, as $submitcmd <script>
    109113      ;;
Note: See TracChangeset for help on using the changeset viewer.