Power Constrained Autotuning using Graph Neural Networks

Akash Dutta, Jee Choi, Ali Jannesari

Abstract

In High-Performance Computing (HPC), power consumption has emerged as a critical design constraint. Traditional auto-tuning methods for parallel programming models like OpenMP often rely on exhaustive, resource-intensive search processes. This paper introduces PnP Tuner, a novel Graph Neural Network (GNN) based auto-tuner that optimizes OpenMP applications for performance and energy efficiency under strict power caps. By representing code as flow-aware multi-graphs and utilizing Relational Graph Convolutional Networks (RGCNs), PnP Tuner predicts optimal runtime configurations without exhaustive execution. Experimental results across 30 benchmarks demonstrate significant performance improvements (up to 25%) and energy savings (up to 29%) compared to default settings and state-of-the-art tuners.

Introduction

Modern HPC systems frequently employ power capping via tools like Intel’s RAPL to manage thermal and energy constraints. However, static power limits often lead to sub-optimal performance due to the complex interaction between hardware constraints and software configurations. OpenMP, a standard for parallel programming, offers a vast search space of thread counts, scheduling policies, and chunk sizes. Finding the optimal configuration within a power budget is a non-trivial task that traditional "race-to-halt" strategies fail to address effectively.

Methods

The PnP Tuner framework employs a multi-stage pipeline to transform source code into actionable performance predictions.

The PnP Tuner pipeline: from training programs to the final tuning model.

Code Representation and Modeling

The system utilizes ProGraML to convert OpenMP code regions into flow-aware multi-graphs. These graphs capture control flow, data flow, and call relationships, providing a rich semantic representation of the application. A Relational Graph Convolutional Network (RGCN) then processes these graphs to classify the best configuration from a search space of 508 possibilities.

Optimization Scenarios

PnP Tuner addresses two primary objectives:

  1. Performance Maximization: Achieving the highest speedup under a user-defined power limit.
  2. Energy-Delay Product (EDP) Minimization: Balancing execution time and energy consumption to optimize overall efficiency.

The model can operate using purely static features or incorporate dynamic performance counters (e.g., cache misses) to improve prediction accuracy from 74% to 87.5% relative to an oracle.

Results and Discussion

The framework was evaluated using 68 unique OpenMP code regions from suites like PolyBench and various HPC proxy applications (e.g., LULESH, Quicksilver).

Normalized speedups across various applications and power constraints (40W, 60W, 70W, 85W) comparing PnP Tuner variants against BLISS and OpenTuner.

Performance and Efficiency Gains

PnP Tuner consistently outperformed default OpenMP configurations and existing state-of-the-art tools like BLISS and OpenTuner. On the Intel Skylake architecture, the tuner achieved a geometric mean performance improvement of 25% across various power constraints. When optimizing for EDP, energy consumption was reduced by 29% on Skylake and 18% on Haswell, while simultaneously improving performance.

Transfer Learning

A key strength of the PnP Tuner is its ability to adapt to new architectures. By employing transfer learning, a model trained on Intel Haswell was fine-tuned for Intel Skylake with a 76% reduction in training time, demonstrating the practical scalability of the GNN-based approach.

Conclusion

PnP Tuner represents a significant advancement in power-constrained auto-tuning by leveraging the structural insights of Graph Neural Networks. By moving away from trial-and-error execution toward predictive modeling, the system enables efficient optimization of HPC applications. Future work will explore extending this methodology to heterogeneous architectures, including GPUs and mobile devices, and improving robustness for unseen power constraints.

Summary updated

BibTeX
@inproceedings{dutta2023power,
  author = {Akash Dutta and Jee Choi and Ali Jannesari},
  title = {{Power Constrained Autotuning using Graph Neural Networks}},
  booktitle = {IPDPS},
  year = {2023},
  doi = {10.1109/ipdps54959.2023.00060},
}
Figure