- Timestamp:
- Jun 13, 2024, 2:39:53 PM (5 months ago)
- Location:
- BOL/LMDZ_Setup_amaury
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup_amaury/lmdz_env.sh
r4978 r4980 51 51 module load gcc/11.2.0 52 52 module load openmpi/4.0.7 53 module load cdo/2.3.0 53 54 54 55 root_dir=~/"LMDZ_SETUP_ROOT/LMDZ_Setup"; … … 59 60 NB_MPI_MAX=20 60 61 NB_OMP_MAX=1 61 RUNCMD=" srun --label -n"62 RUNCMD="mpirun -n" # on spirit, we can't run MPI using srun from within sbatch 62 63 SUBMITCMD="sbatch" 63 64 ;; … … 79 80 SUBMITCMD="sbatch --account=$account" 80 81 ;; 81 *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluste dcpus and memory)"82 *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)" 82 83 root_dir="/home/abarral/PycharmProjects/installLMDZ/LMDZ_Setup"; # Where LMDZ_Setup is extracted. Can't use $(pwd) since this script gets copied and ran from several locations 83 84 ARCH="local-gfortran-parallel" -
BOL/LMDZ_Setup_amaury/main.sh
r4954 r4980 48 48 # Grid number of points IMxJMxLM 49 49 resol="144x142x79" 50 resol="32x32x39" # TODO TEMP 50 51 51 52 # Using XIOS for IOs: "-xios" for enabled, else "" -
BOL/LMDZ_Setup_amaury/script_SIMU
r4978 r4980 23 23 #@SP#SBATCH --time=00:30:00 24 24 #@SP#SBATCH --output=outNOM_SIMU%j 25 #@SP#SBATCH --error=outNOM_SIMU%j#@SP#Spirit26 #@SP#SBATCH --job-name=NOM_SIMU27 #@SP#SBATCH --ntasks=828 #@SP#SBATCH --cpus-per-task=829 #@SP#SBATCH --hint=nomultithread30 #@SP#SBATCH --time=00:30:0031 #@SP#SBATCH --output=outNOM_SIMU%j32 25 #@SP#SBATCH --error=outNOM_SIMU%j 33 26 #@ADS#Adastra … … 40 33 #@ADS#SBATCH --error=outNOM_SIMU%j 41 34 42 set -ex 43 set +u # Amaury 06/24: for local use (no $SLURM_CPUS_PER_TASK) - should be removed if we ever rewrite this whole legacy script properly... 35 set -eux 44 36 45 37 # Number of MPI processes : … … 48 40 nthreads=8 49 41 export OMP_NUM_THREADS=$nthreads 50 51 # For Jean-Zay (replacing the next 3 lines, commented out) 52 #export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK 53 42 #@JZ#export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK # For Jean-Zay (replacing the next 3 lines, commented out) 54 43 # private memory for each thread 55 44 export OMP_STACKSIZE=800M 56 # Binding 57 export OMP_PLACES=cores 45 46 47 #@JZ#export OMP_PLACES=cores # "binding" present in old script_SIMU, but terribly reduces performance on Spirit... 48 ulimit -s unlimited 49 #@SP ulimit -Ss 8192 58 50 59 51 simul=NOM_SIMU 60 ulimit -s unlimited61 #### reste ada : export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/smplocal/pub/NetCDF/4.1.3/lib:/smplocal/pub/HDF5/1.8.9/seq/lib62 63 52 64 53 reseau_local=0 … … 403 392 if [ $num -le 250 ] ; then 404 393 sed -e 's/^simul=.*.$/simul='$simul_new'/' -e 's/^\# @ job_nam.*.=.*.$/\# @ job_name = '$simul_new'/' tmp_$simul >| tmp_$simul_new 405 sbatchtmp_$simul_new394 $SUBMITCMD tmp_$simul_new 406 395 fi 407 396 fi … … 417 406 418 407 cd $SCRIPTDIR 419 sbatchtmp_$simul408 $SUBMITCMD tmp_$simul -
BOL/LMDZ_Setup_amaury/setup.sh
r4978 r4980 13 13 # add "-debug" to the compilation options in the compile.sh script created in the present folder, and run it (./compile.sh gcm) 14 14 # ALTERNATIVELY : you can remove $optim in the definition of "LMDZname" below 15 optim=""16 #optim="-debug"15 #optim="" 16 optim="-debug" # TODO temp 17 17 18 18 #NOTE : "testmode=y" is for running in test mode : … … 41 41 # - number: orchidee version number : only rev 7983 on branch _2_2, and 7994 on trunk, are available 42 42 veget="CMIP6" 43 veget="none" # TODO temp 43 44 #AS : If you have installed the model with a given "veget" option, and you want to change it : 44 45 # --> RECOMMENDED : re-install the model from scratch in a new TEST_PROD folder … … 64 65 # For aerosols=n, the corresponding flags will automatically be set to "n". 65 66 # With XIOS : adjust DEF/XMLfiles*/file*xml 67 68 netcdf=0 # TODO set back to 0 66 69 } 67 70 … … 209 212 # (Temporary) Constraints for aerosols=spla : 210 213 # --> resolution 128x88x79 and rad=rrtm 211 if [[ $aerosols = 1&& $resol != "128x88x79" ]]; then214 if [[ $aerosols = "spla" && $resol != "128x88x79" ]]; then 212 215 echo 'STOP: For now, <aerosols=spla> requires <resol=128x88x79>, and uses the zoomed grid from gcm.def_zNAfrica_BiJe, for which forcing & initial files are available' 213 216 echo "Right now resol=<$resol>" … … 235 238 cp "$local/install_lmdz.sh" . 236 239 chmod +x install_lmdz.sh 237 echo "./install_lmdz.sh -noclean $optim -v $version $svnopt -d $resol -rad $rad -bench 0 -parallel mpi_omp $ins_cosp $ins_xios $ins_aero $ins_inlandsis -name $LMDZname -veget $veget -netcdf 0-arch $ARCH" >> install_lmdz_options.$$.sh240 echo "./install_lmdz.sh -noclean $optim -v $version $svnopt -d $resol -rad $rad -bench 0 -parallel mpi_omp $ins_cosp $ins_xios $ins_aero $ins_inlandsis -name $LMDZname -veget $veget -netcdf $netcdf -arch $ARCH" >> install_lmdz_options.$$.sh 238 241 chmod +x install_lmdz_options.$$.sh 239 242 echo "Running install_lmdz_options.$$.sh" … … 286 289 # TEMPORAIREMENT pour spla on force l'utilisation de gcm.def_zNAfrica_BiJe (avec resolution 128x88x79) 287 290 #---------------------------------------------------------------------- 288 if [[ $aerosols = spla]]; then cp DEF/gcm.def_zNAfrica_BiJe DEF/gcm.def; fi291 if [[ $aerosols = "spla" ]]; then cp DEF/gcm.def_zNAfrica_BiJe DEF/gcm.def; fi 289 292 290 293 # Inscription du choix ok_guide dans DEF/guide.def … … 302 305 # cf options veget, aerosols, cosp, xios 303 306 #--------------------------------------------------------------------- 304 if [[ $veget = none]]; then VEGET="n"; else VEGET="y"; fi307 if [[ $veget = "none" ]]; then VEGET="n"; else VEGET="y"; fi 305 308 sed -i'' -e 's/VEGET=.*.$/VEGET='$VEGET'/' DEF/config.def 306 309 … … 603 606 #@JZ#SBATCH --job-name=Init # nom du job 604 607 #@JZ#SBATCH --ntasks=1 # Nombre de processus MPI 605 #@JZ#SBATCH --cpus-per-task=1 6# nombre de threads OpenMP608 #@JZ#SBATCH --cpus-per-task=1 # nombre de threads OpenMP 606 609 #@JZ# /!\ Attention, la ligne suivante est trompeuse mais dans le vocabulaire 607 610 #@JZ# de Slurm "multithread" fait bien référence à l'hyperthreading. … … 615 618 #@SP#SBATCH --job-name=Init 616 619 #@SP#SBATCH --ntasks=1 617 #@SP#SBATCH --cpus-per-task=1 6620 #@SP#SBATCH --cpus-per-task=1 618 621 #@SP#SBATCH --hint=nomultithread 619 622 #@SP#SBATCH --time=00:10:00 … … 623 626 #@ADS#SBATCH --job-name=Init 624 627 #@ADS#SBATCH --ntasks=1 625 #@ADS#SBATCH --cpus-per-task=1 6628 #@ADS#SBATCH --cpus-per-task=1 626 629 #@ADS#SBATCH --hint=nomultithread 627 630 #@ADS#SBATCH --time=00:10:00 … … 636 639 . lmdz_env.sh 637 640 ulimit -s unlimited 638 export OMP_STACKSIZE=800M639 export OMP_NUM_THREADS=1640 641 cd $SIMRUNDIR/$INIT 641 642 echo "Executable : $ce0l"
Note: See TracChangeset
for help on using the changeset viewer.