Changes between Version 15 and Version 16 of Documentation/UserGuide/IDB


Ignore:
Timestamp:
2018-03-14T10:57:21+01:00 (6 years ago)
Author:
ajornet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/IDB

    v15 v16  
    193193Totalview is GUI debugger that works very will with mpi/omp binaries. You can find it installed in big HPCs such as Curie or ADA. 
    194194 
    195 * Curie 
     195== Curie == 
     196 
     197=== SPMD === 
    196198 
    197199In order to run totalview you need to make available to you like this: 
     
    204206}}} 
    205207This call ask for 16 processos in the standard queue. -d tv selects totalview as a debugger. 
     208 
     209When the startup window shows up, select "Enable memory debugging".  
     210 
     211=== MPMD === 
     212 
     213The script below defines how to run an MPI-OpenMP with totalview (eg: coupled LMDZ + Orchidee) program: 
     214 
     215{{{ 
     216#!/bin/bash 
     217#MSUB -r mictgrm_test # Request name 
     218#MSUB -n 64 # Number of tasks to use 
     219#MSUB -c 2 # Number of tasks to use 
     220#MSUB -T 4000 # Elapsed time limit in seconds 
     221#MSUB -o orchid_%I.o # Standard output. %I is the job id 
     222#MSUB -e orchid_%I.e # Error output. %I is the job id 
     223#MSUB -Q normal  
     224#MSUB -D 
     225#MSUB -X 
     226#MSUB -A gen6328 
     227#MSUB -q standard 
     228 
     229 
     230set -x 
     231module unload netcdf hdf5 
     232module load netcdf/4.3.3.1_hdf5_parallel 
     233module load hdf5/1.8.9_parallel 
     234module load totalview 
     235 
     236#module load ddt 
     237#unset SLURM_SPANK_AUKS 
     238 
     239# enable core dump file in case of error 
     240ulimit -c unlimited 
     241 
     242export KMP_STACKSIZE=3g 
     243export KMP_LIBRARY=turnaround 
     244export MKL_SERIAL=YES 
     245OMP_NUM_THREADS=2 
     246 
     247cat << END > pp.conf 
     2484    ./xios.x 
     24960   totalview ./lmdz.x 
     250END 
     251 
     252mpirun -tv -n 4 ./xios.x : -n 60 ./lmdz.x 
     253}}} 
     254 
     255In this specific case, coupled lmdz + Orchidee runs 60 MPI procs and 4 XIOS procs with 2 OpenMP threads. In total, it requires 128 procs. 
    206256 
    207257When the startup window shows up, select "Enable memory debugging".