Skip to content

stevenio/ravel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ravel

Ravel is an MPI trace visualization tool. Ravel is unique in that it shows not only physical timelines, but also logical ones structured to better capture the intended organization of communication operations. Ravel reads Open Trace Format versions 1 and 2, calculates logical structure, and presents the results using multiple coordinated views.

In logical time, all operations are colored via some metric. The default metric is lateness which measures the difference in exit time of an operation compared to its peers at the same logical timestep.

Ravel Logical and Physical Timelines

Installation

Ravel depends on:

To install:

$ git clone https://github.com/scalability-llnl/ravel.git
$ mkdir ravel/build
$ cd ravel/build
$ cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/directory ..
$ make
$ make install

If a dependency is not found, add its install directory to the CMAKE_PREFIX_PATH environment variable.

Usage

Opening a Trace

Before opening the trace, check your settings under Options->OTF Importing. These options will affect the logical organization even determined by Ravel. Once you are happy with your options, use File->Open Trace and navigate to your .otf or .otf2 file.

Partitions

Ravel partitions the trace into fine-grained communication phases -- sets of communication operations that must belong together. It imposes a happened-before ordering between traces to better represent how developers think of them separately.

  • Automatically determine partitions: use happened-before relationships and the following options:
    • use Waitall heuristic: OTF version 1 only, will group all uninterrupted send operations before each Waitall in the same phase
    • merge Partitions by call tree: Will merge communication operations up the call stack until reaching a call containing multiple such operations.
    • merge Partitions to complete Leaps: Avoids sparse partitions by forcing each rank to be active at each distance in the phase DAG. Useful for bulk synchronous codes.
      • skip Leaps that cannot be merged: Relaxes the leap merge when it cannot find a next merge.
    • merge across global steps: This merge happens after stepping, so it does not affect the logical structure, but groups MPI ranks that cover the same logical step.
  • Partition at function breaks: Use if you know your phases are contained in a given function. List the function.

Other Options

  • Matching send/recv must have the same message size: Enforces send and receive reporting the same message size. Uncheck this for Scalasca-generated OTF2.
  • Advanced stepping within a partition: Align sends based on happened-before structure rather than as early as possible.
  • Coalesce Isends: Groups neighboring MPI_Isends into a single operation which may send to multiple receive operations. We recommend this option by default
  • Cluster processes: Shows a cluster view that clusters the processes by the active metric. This is useful for large process counts.
    • Seed: Set seed for repeatable clustering.

Navigating Traces

The three timeline views support linked panning, zooming and selection. The overview shows the total metric value over time steps for the whole trace. Clicking and dragging in this view will select a span of timesteps in the other views.

Navigation Control
Pan Left-click drag
Zoom in time Mouse wheel
Zoom in processes Shift + Mouse wheel
Zoom to rectangle Right-click drag rectangle
Select operation Right-click operation
Tool tips Hover

The cluster view has a slider which changes the size of the neighborhood shown in the upper part of the view. The lower part of the view shows the clusters. Left-click to divide clusters into its children. Click on dendrogram nodes to collapse clusters. Dendrogram pertains to left-most visible partition. Clustering currently shows the first partition rather than all.

Saving Traces

All traces are saved in OTF2 and include only the information from the original trace that is used by Ravel. In addition, communication-related operations used for logical structure have an OTF2_AttributeList associated with their Leave events. These lists include a phase and step value defining the logical structure used by Ravel, as well as any metric values computed for that operation. Any metric values ending in _agg represent the calculated value of the aggregated non-communication operation directly preceding.

Authors

Ravel was written by Kate Isaacs.

License

Ravel is released under the LGPL license. For more details see the LICENSE file.

LLNL-CODE-663885

Related Publications

Katherine E. Isaacs, Peer-Timo Bremer, Ilir Jusufi, Todd Gamblin, Abhinav Bhatele, Martin Schulz, and Bernd Hamann. Combing the communication hairball: Visualizing parallel execution traces using logical time. IEEE Transactions on Visualization and Computer Graphics, Proceedings of InfoVis '14, December 2014. DOI: 10.1109/TVCG.2014.2346456

About

Ravel MPI trace visualization tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 98.8%
  • Other 1.2%