Changes between Version 12 and Version 13 of Doc/ComputingCenters/LSCE
- Timestamp:
- 01/18/22 21:50:09 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/ComputingCenters/LSCE
v12 v13 45 45 46 46 ## Example of parallel MPI job ## 47 Here is an example of a simple job to run the orchidee_ol executable. All input files and the executable must be in the directory before running the executable. 47 Here is an example of a job to run ORCHIDEE offline model launched on 15 cores with XIOS server on 1 core. This example can also be used for LMDZ, change the executable name in the run_file. A minimum change before launching the script is to source the modules that are needed. The same modules as used during compilation should be set. 48 49 All input files and executables should be available in the folder where the job is launched. 48 50 {{{ 49 51 ###################### … … 56 58 #PBS -o Script_Output 57 59 #PBS -S /bin/ksh 58 #PBS -l nodes=1:ppn= 860 #PBS -l nodes=1:ppn=16 59 61 60 62 61 ## First source following to acces the command module under ksh 63 ## Go to current folder 64 cd $PBS_O_WORKDIR 65 66 ## To access module command 62 67 source /usr/share/Modules/init/ksh 63 68 64 69 ## Source same modules as used during compilation. See examples below depending on the configurations used. 65 70 # For ORCHIDEE_3 and more recent offline versions or coupled v6.2 and more recent versions: 66 #source .. ../config/ORCHIDEE_OL/ARCH/arch-ifort_LSCE.env67 #source .. ../config/LMDZOR_v6/ARCH/arch-ifort_LSCE.env71 #source ../modipsl/config/ORCHIDEE_OL/ARCH/arch-ifort_LSCE.env 72 #source ../modipsl/config/LMDZOR_v6/ARCH/arch-ifort_LSCE.env 68 73 # For ORCHIDEE_2_0, 2_1, 2_2 and coupled models v6.1.x: 69 # source /home/orchideeshare/igcmg/MachineEnvironment/obelix/env_atlas_obelix74 # source /home/orchideeshare/igcmg/MachineEnvironment/obelix/env_atlas_obelix 70 75 71 ## Go to current folder and execute 72 cd $PBS_O_WORKDIR 73 time mpirun orchidee_ol 76 ## Create a run_file to be used to lauch with XIOS in server mode 77 # Note: 31+1 should be equal the number set in the header. For example, if you set 16 in the header, set -np 15 for orchidee and keep -np 1 for xios. 78 # If you want to run LMDZ, change orchidee_ol_prod into the name for the lmdz executable. 79 rm -f run_file 80 echo "-np 15 ./orchidee_ol_prod" > run_file 81 echo "-np 1 ./xios_server_prod.exe " >> run_file 82 chmod +x run_file 83 84 ## Launch the executables 85 time mpirun --app ./run_file 86 74 87 }}} 75 88