Changeset 4995 for BOL/LMDZ_Setup_amaury
- Timestamp:
- Jun 26, 2024, 2:16:21 PM (6 months ago)
- Location:
- BOL/LMDZ_Setup_amaury
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup_amaury/lmdz_env.sh
r4993 r4995 19 19 case ${hostname:0:5} in 20 20 jean-) 21 ARCH="X64_JEANZAY"22 21 module purge 23 22 compilo=19.0.4 # available 2013.0, 2017.2 … … 38 37 # alors $STORE, $WORK etc vont designer les espaces de "newproj") 39 38 account=$(idrproj | grep active | awk '{ print $1}') 40 SUBMITCMD="sbatch -A $account@cpu " 41 RUNCMD="srun --label -n" 42 # Espaces suivants definis par defaut en fonction du groupe actif, 43 # par exemple : SCRATCHD=$SCRATCH is /gpfsstore/rech/$groupe/$login 44 # * On peut aussi ne pas installer les scripts a la racine de STORE, 45 # mais dans STORED=$STORE/your_folder 46 SIMRUNBASEDIR="$SCRATCH/LMDZ_Setup" 47 LMDZD=$WORK 39 root_dir="$WORK/LMDZ_Setup"; 40 ARCH="X64_JEANZAY" 41 SIMRUNBASEDIR="$SCRATCH/" 42 LMDZD="$root_dir/LMDZD" 43 LMDZ_INIT="$root_dir/LMDZ_Init" 48 44 NB_MPI_MAX=2000 49 45 NB_OMP_MAX=20 50 #LMDZ_Init sur le $STORE du $groupe51 LMDZ_INIT=$STORE/LMDZ_Init46 RUNCMD="srun --label -n" 47 SUBMITCMD="sbatch -A $account@cpu" 52 48 ;; 53 49 spiri) -
BOL/LMDZ_Setup_amaury/script_SIMU
r4991 r4995 28 28 #@ADS#SBATCH --ntasks=8 29 29 #@ADS#SBATCH --cpus-per-task=8 30 #@ADS#SBATCH --ntasks-per-node=8 # TODO check how to scale this 30 31 #@ADS#SBATCH --hint=nomultithread 31 32 #@ADS#SBATCH --time=00:30:00 -
BOL/LMDZ_Setup_amaury/setup.sh
r4993 r4995 226 226 echo "Running install_lmdz_options.$$.sh" 227 227 set -o pipefail 228 # TODO (wip) Run install_lmdz using $RUNCMD to 1) speed up 2) avoid issues related to being on the "right" platform for compilation 229 # gcm=$MODEL/$($RUNCMD $make_j bash install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 230 gcm=$MODEL/$(./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 228 # We launch using $RUNCMD, except if it's using mpirun (no srun equivalent for bash script) => if supported, the compilation runs in a cluster job 229 local install_cmd="$RUNCMD $make_j" 230 if [[ $(echo "$RUNCMD" | cut -c -6) = "mpirun" ]]; then 231 install_cmd="" 232 fi 233 gcm=$MODEL/$($install_cmd ./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 234 # gcm=$MODEL/$(./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 231 235 set +o pipefail 232 236 mv install_lmdz.sh install_lmdz.$$.sh … … 310 314 #--------------------------------------------------------------------- 311 315 sed -i'' -e 's/iflag_rrtm=.*.$/iflag_rrtm='"$iflag_rrtm"'/' -e 's/NSW=.*.$/NSW='"$NSW"'/' DEF/physiq.def 312 sed -i"" -e "s:directory_name.*$:directory_name=\"$MODEL/libf/phylmd/ecrad/ ecrad_data\",:" DEF/namelist_ecrad316 sed -i"" -e "s:directory_name.*$:directory_name=\"$MODEL/libf/phylmd/ecrad/data\",:" DEF/namelist_ecrad 313 317 314 318 if [[ $phylmd = "lmdiso" ]]; then iflag_ice_thermo=0; else iflag_ice_thermo=1; fi … … 600 604 #@JZ#SBATCH --error=Init%j.out # Nom du fichier d'erreur (ici commun avec la sortie) 601 605 #@JZ# To submit to dev queue; "time" (above) must be max 2h 602 #@JZ# 606 #@JZ#TESTQ#SBATCH --qos=qos_cpu-dev 603 607 #@SP#Spirit 604 608 #@SP#SBATCH --job-name=Init … … 613 617 #@ADS#SBATCH --ntasks=1 614 618 #@ADS#SBATCH --cpus-per-task=1 619 #@ADS#SBATCH --ntasks-per-node=8 # TODO check how to scale this 615 620 #@ADS#SBATCH --hint=nomultithread 616 621 #@ADS#SBATCH --time=00:10:00 617 622 #@ADS#SBATCH --output=Init%j.out 618 623 #@ADS#SBATCH --error=Init%j.out 624 625 set -eu 619 626 620 627 # ANCIEN MULTI STEP case \${LOADL_STEP_NAME} in
Note: See TracChangeset
for help on using the changeset viewer.