![Page 1: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/1.jpg)
Adventures in Mastering the Use of Performance Evaluation Tools
Manuel Ríos MoralesICOM 5995
December 4, 2002
![Page 2: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/2.jpg)
Overview
Project Proposal Original Goals Problems Encountered
Project Changes Revised Goals New Problems
Final Revision
![Page 3: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/3.jpg)
Project Proposal
Original Goals Master a performance evaluation tool and use it to
evaluate the performance of an existing benchmark. Tool selected: AIMS Benchmark: FT kernel of the NPB
Why AIMS? Provides tools for measurement and analysis of
performance of parallel programs. Can be used to highlight problem areas that can be
modified to improve program execution.
![Page 4: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/4.jpg)
Problems Encountered
Installation Quite challenging Required modification of makefiles and debugging of
some modules
Instrumentation Couldn’t be achieved due to bugs in the software.
![Page 5: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/5.jpg)
Problems Encountered (cont.)
![Page 6: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/6.jpg)
Project Changes
Revised Goals Performance evaluation tool changed to Vampir.
New Problems Compilation of the FT benchmark Installation of VampirTrace
![Page 7: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/7.jpg)
Final Revision
Project goals Understanding basic features of Vampir with the use of
an example provided in the Vampir package.
![Page 8: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/8.jpg)
Vampir Analysis Tool
Vampir consists of two packages: Vampir: Tracefile visualization program with a
graphical user interface for XWindows desktops.
VampirTrace: Instrumented MPI library to link with the user code for automatic tracefile generation on a parallel platform.
![Page 9: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/9.jpg)
VampirTrace
Tool for MPI applications that produces tracefiles that can be analyzed with Vampir.
Records all calls to the MPI library and all transmitted messages.
Allows defining and recording arbitrary user defined events.
Using it requires relinking the application with the VampirTrace profiling library.
![Page 10: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/10.jpg)
VampirTrace (cont.)
mpicc -o test test.c -L/$HOME/VampirTrace/lib/libVT.a –lVT
patch_mpicc Modifies mpicc command to include the –vt option
Mpicc –vt –o test test.c
![Page 11: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/11.jpg)
Vampir
Tool for visualization and analysis of MPI programs
Understand the application behavior Analyze the performance of subroutines or code
blocks Learn about communication patterns, parameters
and performance Identify communication hotspots
![Page 12: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/12.jpg)
Vampir (cont.)
Basics Loading Tracefiles Displays
![Page 13: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/13.jpg)
Global Timeline Display
![Page 14: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/14.jpg)
Global Timeline Display (cont.)
It will automatically open when paused or finished loading a tracefile.
Shows all analyzed state changes for each process over the complete period of time in one display.
Zoom ability allows getting detailed information of the runtime behavior of the traced program.
![Page 15: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/15.jpg)
Activity Chart Display
Shows a statistic about the time spent in each activity individually for each process defined in the tracefile.
![Page 16: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/16.jpg)
Summary Chart Display
Displays the sum of the time consumed by all instrumented activities over all selected processes.
![Page 17: Adventures in Mastering the Use of Performance Evaluation Tools Manuel Ríos Morales ICOM 5995 December 4, 2002](https://reader036.vdocuments.mx/reader036/viewer/2022070409/56649e845503460f94b85d07/html5/thumbnails/17.jpg)
Final Thoughts
Tools that facilitate the instrumentation and visualization of parallel program execution are invaluable.
Programmers can benefit from using these tools since the help highlight any problem areas that can be modified to improve program execution.