Abstract
Optimizing the performance of large-scale parallel codes is critical for efficient utilization of computing resources. Code developers often explore various execution parameters, such as hardware configurations, system software choices, and application parameters, and are interested in detecting and understanding bottlenecks in different executions. They often collect hierarchical performance profiles represented as call graphs, which combine performance metrics with their execution contexts. The crucial task of exploring multiple call graphs together is tedious and challenging because of the many structural differences in the execution contexts and significant variability in the collected performance metrics (e.g., execution runtime). In this paper, we present an enhanced version of CallFlow to support the exploration of ensembles of call graphs using new types of visualizations, analysis, graph operations, and features. We introduce ensemble-Sankey, a new visual design that combines the strengths of resource-flow (Sankey) and box-plot visualization techniques. Whereas the resource-flow visualization can easily and intuitively describe the graphical nature of the call graph, the box plots overlaid on the nodes of Sankey convey the performance variability within the ensemble. Our interactive visual interface provides linked views to help explore ensembles of call graphs, e.g., by facilitating the analysis of structural differences, and identifying similar or distinct call graphs. We demonstrate the effectiveness and usefulness of our design through case studies on large-scale parallel codes.
Introduction
High-Performance Computing (HPC) developers constantly tune hardware configurations, system software, and application parameters to achieve peak performance. To diagnose the impact of these changes, they rely on performance profiles represented as call graphs—hierarchical structures that map function calls to resource consumption, such as execution time or memory usage.
While analyzing a single call graph is complex, the real challenge lies in comparing ensembles of dozens or hundreds of profiles generated across parametric studies. Traditional tools often limit users to side-by-side comparisons or non-structural statistical summaries that strip away the execution context. Developers require a solution that maintains the structural "where" of the code while simultaneously revealing performance variability across the entire ensemble.
Data Unification and Graph Structures
To handle the complexity of multiple profiles, the authors developed a scalable data pipeline that unifies disparate calling contexts into a single "ensemble GraphFrame." This process involves several stages of graph transformation to balance detail with visual scalability.
As shown in the figure above, the pipeline begins with individual Calling Contexts (a), which are merged into a Calling Context Tree (b) to represent all unique execution paths. To further simplify the view, nodes are aggregated by function name into a Call Graph (c). Finally, for maximum scalability, nodes can be semantically grouped by library or module into a Super Graph (d). This unified structure allows the system to aggregate performance metrics into vectors, enabling statistical analysis across the entire ensemble.
Visual Design: Ensemble-Sankey
The core contribution of this work is the ensemble-Sankey visualization. Building on standard Sankey diagrams that use edge thickness to show resource flow, this new design incorporates statistical distributions directly into the nodes:
- Node Geometry: A node's height represents the maximum inclusive runtime across all executions in the ensemble.
- Distribution Encoding: Inside each node, a smooth gradient histogram visually encodes the distribution of runtimes. This allows developers to immediately identify whether a function's performance is stable, highly variable, or affected by outliers without losing the context of the program's flow.
- Contextual Diffing: The tool includes a "diff" mode that calculates the deviation from the mean runtime. Overlaid on the unified graph using a red/green colormap, this feature highlights performance regressions (red) or improvements (green) relative to the ensemble average.
Case Studies and Results
The effectiveness of the enhanced CallFlow tool was demonstrated through several real-world HPC case studies:
- Adaptive Multilinear Mesh (AMM): In an ensemble of 18 profiles, the ensemble-Sankey revealed unexpected performance skew in specific modules. Detailed inspection uncovered hash collisions in
std::unordered_mapwithin recursive calls, leading to immediate optimization efforts. - LULESH Scaling Study: Analyzing 8 profiles from a weak scaling study (1 to 512 MPI processes), the tool identified two specific runs that performed worse than expected. Linked views pinpointed
MPI_AllreduceandCalcHourGlassControlForElemsas the primary bottlenecks. - Scalability: The system maintained interactive performance while handling an ensemble of 100 profiles from the OSU_Bcast benchmark, proving its utility for large-scale benchmarking experiments.
Conclusion and Future Work
By merging structural resource-flow diagrams with statistical distributions, the ensemble-Sankey provides a powerful lens for HPC performance analysis. It reduces the cognitive load of comparing complex call graphs by providing a unified, context-aware view of performance variability.
Future work will focus on improving the clustering of execution parameters and developing metrics to compare ensembles with significantly different topologies. The authors also plan to extend the tool to support temporal analysis, such as tracking performance evolution across a software's version history.
Summary updated