Ignore:
Timestamp:
May 30, 2024, 2:36:54 PM (5 months ago)
Author:
abarral
Message:

(WIP) continue refactoring setup.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r4953 r4955  
    77echo "Setting up lmdz_env on $hostname"
    88
     9# Platform-specific
    910case ${hostname:0:5} in
    1011  jean-)
     
    2728    #   idrproj -d newproj   redefinit "newproj" en tant que  projet actif,
    2829    #        alors $STORE, $WORK etc vont designer les espaces de "newproj")
    29     groupe=$(idrproj | grep active | awk '{ print $1}')
    30     submit="sbatch -A ${groupe}@cpu "
    31     run="srun --label -n "
     30    GROUPE=$(idrproj | grep active | awk '{ print $1}')
     31    SUBMITCMD="sbatch -A $GROUPE@cpu "
     32    RUNCMD="srun --label -n"
    3233    # Espaces suivants definis par defaut en fonction du groupe actif,
    3334    #  par exemple : SCRATCHD=$SCRATCH is /gpfsstore/rech/$groupe/$login
    3435                #    * On peut aussi ne pas installer les scripts a la racine de STORE,
    3536                #        mais dans STORED=$STORE/your_folder
    36     STORED=$STORE
    37     SCRATCHD=$SCRATCH
     37    SIMRESDIR=$STORE
     38    SIMRUNTOPDIR="$SCRATCH/LMDZ_Setup"
    3839    LMDZD=$WORK
    3940    NB_MPI_MAX=2000
    4041    NB_OMP_MAX=20
    4142    #LMDZ_Init sur le $STORE du $groupe
    42     LMDZ_Init=$STORE/LMDZ_Init ;;
     43    LMDZ_INIT=$STORE/LMDZ_Init
     44
     45    JOB_HEADER="#SBATCH -A $groupe@cpu
     46    #@TESTQ#SBATCH --qos=qos_cpu-dev"
     47
     48    ;;
    4349  *)  # TODO mettre clairement dans ce paragraphe une doc de chaque param
    4450    ARCH="local-gfortran-parallel"
    4551#    submit=". "
    4652#    run="mpirun -np "
    47 #    SCRATCHD="/tmp/SCRATCH"
    48 #    STORED=~"/TMP/"
    49     LMDZD="./LMDZD"
    50     NB_MPI_MAX=999999
    51     NB_OMP_MAX=999999
    52 #    LMDZ_Init=~"/LMDZ/LMDZ_Init"
     53    SIMRUNTOPDIR="/tmp/SCRATCH/LMDZ_Setup/"  # Where the simulations will be executed  # TODO Change name if it's actually the SIMRUNDIR
     54    SIMRESDIR=~"/TMP/LMDZ_Setup"  # Where to store the relevant outputs of the simulations
     55    LMDZD="$(pwd)/LMDZD"  # Where the sources will be downloaded and compiled
     56    LMDZ_INIT="$(pwd)/LMDZ_Init"  # Where to store shared files used for initialisation
     57    NB_MPI_MAX=999999  # Max number of MPI cores
     58    NB_OMP_MAX=999999  # Max number of OMP threads
     59    GROUPE=""  # the group to execute the job as
     60    RUNCMD="mpirun -n" # command to run a job, as $runcmd <nprocs> <script>
     61    SUBMITCMD="mpirun"  # command to sumbit a job, as $submitcmd <script>
    5362esac
    5463
Note: See TracChangeset for help on using the changeset viewer.