Catwalk: A Quick Development Path for Performance Models

Felix Wolf, Christian H. Bischof, Torsten Hoefler, Bernd Mohr, Gabriel Wittum, Alexandru Calotoiu, Christian Iwainsky, Alexandre Strube, Andreas Vogel

Introduction

In high-performance computing (HPC), scalability is the primary metric of success. However, many parallel applications contain latent "scalability bugs"—performance bottlenecks that only manifest when the code is scaled to thousands of processors. These bugs are notoriously expensive to identify, often requiring massive machine time and significant code refactoring. The Catwalk project introduces an automated framework designed to catch these issues early by generating empirical performance models without the labor-intensive requirements of manual analytical modeling.

The Automated Modeling Pipeline

Traditionally, developers only model a few "important" kernels due to the complexity of manual derivation. This selective approach often misses bottlenecks in less obvious code paths. Catwalk addresses this by automating the entire pipeline, from experiment execution to model selection.

The Catwalk automated performance modeling workflow.

The workflow utilizes the Jülich Benchmarking Environment (JuBE) to automate execution across varying processor counts. At its core, the system uses a Performance Model Normal Form (PMNF), which assumes most algorithms follow a specific mathematical structure: $$f(p) = \sum_{k=1}^n c_k \cdot p^{i_k} \cdot \log_2^{j_k}(p)$$ where $p$ represents the number of processors. The tool evaluates a library of "model hypotheses," using regression and cross-validation to select the most accurate model for every program region.

Identifying Scalability Bottlenecks

By modeling every part of the code automatically, Catwalk eliminates human bias. A key strength of this empirical "black-box" approach is its ability to identify non-obvious bottlenecks, such as those caused by communication patterns rather than raw data volume.

Performance model extrapolation for MPI_Recv time in Sweep3D.

In a case study of the Sweep3D neutron transport benchmark, the tool revealed that time spent in MPI_Recv grew with $\sqrt{p}$ even though message counts remained constant. This identified "wait states" caused by the wavefront algorithm's diagonal travel path as the true scalability bottleneck. As shown in the figure above, the model trained on small-scale data (up to $2^{11}$ processes) accurately predicted performance at much larger scales, with very low relative error.

Key Results and Validation

The framework has been validated across several real-world HPC applications:

  • HOMME Climate Code: The tool uncovered two scalability issues in a code previously thought to have only one.
  • UG4 Multigrid Solver: Catwalk confirmed that no kernel grew faster than $O(\log p)$, verifying the code's theoretical readiness for exascale.
  • PEMOGEN Subproject: Demonstrated extreme efficiency by automatically instrumenting and modeling over 3,300 kernels across 15 different applications.

Conclusion and Future Work

Catwalk demonstrates that automated empirical modeling is a viable path for identifying scalability bugs before they become prohibitively expensive. While current results focus on MPI-based scaling, future work aims to improve shared-memory (OpenMP) modeling and incorporate multi-parameter models (e.g., varying both processor count $p$ and problem size $n$) to better distinguish between strong and weak scaling. The ultimate goal is to integrate these models into the hardware-software co-design process for future exascale systems.

Summary updated

BibTeX
@inproceedings{wolf2014catwalk,
  author = {Felix Wolf and Christian H. Bischof and Torsten Hoefler and Bernd Mohr and Gabriel Wittum and Alexandru Calotoiu and Christian Iwainsky and Alexandre Strube and Andreas Vogel},
  title = {{Catwalk: A Quick Development Path for Performance Models}},
  booktitle = {Euro-Par Workshops},
  year = {2014},
  doi = {10.1007/978-3-319-14313-2\_50},
}
Figure