Changeset 4955 for BOL/LMDZ_Setup_amaury/lmdz_env.sh
- Timestamp:
- May 30, 2024, 2:36:54 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup_amaury/lmdz_env.sh
r4953 r4955 7 7 echo "Setting up lmdz_env on $hostname" 8 8 9 # Platform-specific 9 10 case ${hostname:0:5} in 10 11 jean-) … … 27 28 # idrproj -d newproj redefinit "newproj" en tant que projet actif, 28 29 # 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" 32 33 # Espaces suivants definis par defaut en fonction du groupe actif, 33 34 # par exemple : SCRATCHD=$SCRATCH is /gpfsstore/rech/$groupe/$login 34 35 # * On peut aussi ne pas installer les scripts a la racine de STORE, 35 36 # mais dans STORED=$STORE/your_folder 36 S TORED=$STORE37 S CRATCHD=$SCRATCH37 SIMRESDIR=$STORE 38 SIMRUNTOPDIR="$SCRATCH/LMDZ_Setup" 38 39 LMDZD=$WORK 39 40 NB_MPI_MAX=2000 40 41 NB_OMP_MAX=20 41 42 #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 ;; 43 49 *) # TODO mettre clairement dans ce paragraphe une doc de chaque param 44 50 ARCH="local-gfortran-parallel" 45 51 # submit=". " 46 52 # 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> 53 62 esac 54 63
Note: See TracChangeset
for help on using the changeset viewer.