Pipit: Scripting the analysis of parallel execution traces
Abhinav Bhatele, Rakrish Dhakal, Alexander Movsesyan, Aditya K. Ranjan, Onur Cankur
TL;DR
Pipit addresses the challenge of scalable, automated analysis of parallel execution traces by providing a Python-based API built on top of pandas that reads multiple trace formats into a uniform DataFrame model. It unifies per-process/per-thread trace data, offers high-level and low-level operations for computing inclusive/exclusive times, call graphs, and communication analyses, and includes data reduction and visualization capabilities. The library supports cross-run comparisons and pattern detection, enabling scriptable performance tuning workflows beyond what GUI tools offer. By delivering a modular, extensible, and open-source solution, Pipit aims to streamline reproducible performance analysis and accelerate HPC optimization across diverse trace formats and applications.
Abstract
Performance analysis is a critical step in the oft-repeated, iterative process of performance tuning of parallel programs. Per-process, per-thread traces (detailed logs of events with timestamps) enable in-depth analysis of parallel program execution to identify different kinds of performance issues. Often times, trace collection tools provide a graphical tool to analyze the trace output. However, these GUI-based tools only support specific file formats, are challenging to scale to large trace sizes, limit data exploration to the implemented graphical views, and do not support automated comparisons of two or more datasets. In this paper, we present a programmatic approach to analyzing parallel execution traces by leveraging pandas, a powerful Python-based data analysis library. We have developed a Python library, Pipit, on top of pandas that can read traces in different file formats (OTF2, HPCToolkit, Projections, Nsight Systems, etc.) and provides a uniform data structure in the form of a pandas DataFrame. Pipit provides operations to aggregate, filter, and transform the events in a trace to present the data in different ways. We also provide several functions to quickly and easily identify performance issues in parallel executions. More importantly, the API is easily extensible to support custom analyses by different end users.
