Intel(R) Trace Analyzer and Collector
Einleitung
Es ist Version 7.2.0.11 des Intel(R) Trace Analyzer's
and Collector's unter /opt/intel/itac/7.2.0.11/ verfügbar. Der Intel
Trace Analyzer ist ein Tool zur grafischen Darstellung von
MPI-Kommunikation. Während des Compile-Vorgangs werden der Compiler
und zugehörige MPI-Bibliotheken angewiesen Metadaten über die
MPI-Kommunikation des zu analysierenden Programms zu generieren. Diese
können in vielfältiger Weise aufbereitet und analysiert
werden. Typischerweise erfolgt die Darstellung einzelner Threads als
Spurfile. Weiter Informationen und der Verweis auf die Dokumentation stehen in der Datei:
/opt/intel/itac/7.2.0.011/README.txt
Ein Beispiel
1. Einbinden der dafür notwendigen Umgebungsvariablen:source /opt/intel/impi/3.2.1/bin64/mpivars.sh source /opt/intel/Compiler/11.0/081/bin/iccvars.sh intel64 source /opt/intel/Compiler/11.0/081/bin/ifortvars.sh intel64 source /opt/intel/itac/7.2.0.011/bin/itacvars.sh
source /G/home/software/etc/env/intel.sh
für Fortran:
mpiifort -trace /G/home/kurs/mpi/mxv.f
für C:
mpiicc -trace jacobi4.c
3.1 Batch-File erstellen:
#!/bin/bash # PBS -V source /opt/intel/impi/3.2.1/bin64/mpivars.sh # create the mpd.hosts text file that lists the nodes in the cluster using one # host name per line: cat $PBS_NODEFILE > $PWD/mpd.hosts PBS_NODEFILE_UNIQUE=`cat $PBS_NODEFILE | uniq` # Count number of requested processors np=$(cat $PBS_NODEFILE | wc -l) # Count nodes nnodes=`echo $PBS_NODEFILE_UNIQUE | wc -w` # Shut down the eventual MPD daemons using the mpdallexit command: mpdallexit 2>/dev/null #Use the mpdboot command to start up the MPD daemons (mpdboot -n <#nodes>): #The file $PWD/mpd.hosts will be used by default if it is present. mpdboot -r ssh -n $nnodes #Use the mpdtrace command to determine the status of the MPD daemons: echo ------------------------ echo output: mpdtrace mpdtrace echo ------------------------ EXEC=./a.out LD_PRELOAD=/opt/intel/itac/7.2.0.011/itac/slib_impi3/libVT.so mpiexec -n $np $EXEC mpdallexit 2>/dev/null
3.2. Tracejob submittieren:
qsub -qc8 BATCHFILE -lnodes=1:ppn=4
4. Trace Analyzer (nach Beendigung des Jobs und mit aktiviertem X-Forward!) starten mit:
traceanalyzer a.out.stf