Cypress CSC-1200T Guide de l'utilisateur Page 101

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 100
Chapter 9. Programming tools 101
The source code includes the VAMPIRtrace API calls by the preprocessor
macro USE_VT. It is recommended to include the definitions in the file
$PAL_ROOT/include/VT.inc with the option -I. The program may be
run now, e.g., by the command
t3e% mpprun -n8 loadbal < input
If the program is run as a batch job (see Chapter 8), the command use
vampir has to be included in the jobfile.
By default, the trace file is generated between the calls MPI_INIT and
MPI_FINALIZE. Tracing may also be disabled and enabled by the API
calls VTTRACEOFF and VTTRACEON.
VAMPIRtrace gathers information of activities, i.e., process states with a
start and stop time. Activities are identified by a class name and a sym-
bolic name. A class can contain an arbitrary number of activities. Ac-
tivities can also be nested like subroutines calls. MPI calls automatically
belong to the class MPI. The class and symbolic names are subsequently
used by the VAMPIR visualization tool.
The following Fortran code shows how to define a section of code to
belong to the class Application with the symbolic name initialization.
The integer value 1 is a user-chosen label which must be applied in a
globally consistent manner with and only with the initialization tag.
The variable ierr is an error indicator.
INTEGER :: ierr
CALL VTSYMDEF(1, ’initialization’, ’Application’, ierr)
CALL VTBEGIN(1, ierr)
... initialization code to be marked ...
CALL VTEND(1, ierr)
In Fortran 90, it is a good idea to define symbolic names for the tag
integers, e.g., in a separate MODULE vt by
INTEGER, PARAMETER :: INIT=1
A corresponding C code segment is
VT_symdef(1, "initialization", "Application");
VT_begin(1);
... initialization code to be marked ...
VT_end(1);
9.5.2 The VAMPIR visualization tool
The trace file must be transferred to Caper for the analysis with the X
Window System based VAMPIR visualization tool. The VAMPIR environ-
ment on Caper must be set up using the command
use vampir
Vue de la page 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 123 124

Commentaires sur ces manuels

Pas de commentaire