Changes between Version 4 and Version 5 of Doc/env/TgccCurie
- Timestamp:
- 08/04/14 14:51:17 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/env/TgccCurie
v4 v5 172 172 # How to use the ddt debuger for the coupled model (or any other MPMD mode) # 173 173 174 ## MPI only ## 175 174 176 * compile the model you wish to debug with the -g option (necessary in order to have access to sources from the ddt interface) 175 177 * create a debug directory which includes the model executables and the input files required by the model 176 178 * create a simplified debug job which allows you to start a run in the debug directory 177 * add the command "module load ddt /3.2" to your job179 * add the command "module load ddt" to your job 178 180 * add the creation of configuration run_file 179 181 * add a ddt start command in your job … … 181 183 {{{ 182 184 ... 183 module load ddt /3.2185 module load ddt 184 186 unset SLURM_SPANK_AUKS 185 187 … … 198 200 * in mpirun arguments put "--app ${TMPDIR_DEBUG}/run_file" with TMPDIR_DEBUG = debug directory 199 201 * click on "Run" then on the "play" key in the upper left corner 202 203 ## Hybrid MPI-OpenMP (use of mpirun -rankfile method) ## 204 205 * compile the model you wish to debug with the -g option (necessary in order to have access to sources from the ddt interface) 206 * create a debug directory which includes the model executables and the input files required by the model 207 * create a simplified debug job which allows you to start a run in the debug directory 208 * add the command "module load ddt" to your job 209 * example with 4 OpenMP threads for lmdz and 1 OpenMP thread for nemo : 210 {{{ 211 ddt -start -n 51 -mpiargs "-rankfile rankfile.txt --tag-output \ 212 -np 20 -x KMP_STACKSIZE=3g -x KMP_LIBRARY=turnaround -x MKL_SERIAL=YES -x OMP_NUM_THREADS=4 ./lmdz.x : \ 213 -np 31 -x OMP_NUM_THREADS=1 ./opa.xx 214 " 215 }}} 216 * start the job with graphic export : ccc_msub -X Job 217 * if not default option, select "Autoselect Bullx MPI" in Options and relaunch the job. 200 218 201 219 # Errors on curie when running simulations #