A programming model and runtime system for significance-aware energy-efficient computing

Vassilis Vassiliadis, Konstantinos Parasyris, Charalambos Chalios, Christos D. Antonopoulos, Spyros Lalis, Nikolaos Bellas, Hans Vandierendonck, Dimitrios S. Nikolopoulos

TL;DR

This paper introduces a novel programming model and runtime system that allows developers to achieve significant energy savings by selectively approximating less critical parts of their programs. By explicitly marking task significance, the system intelligently trades output quality for reduced energy consumption, demonstrating up to 83% energy reduction with graceful quality degradation.

What Problem Does This Paper Address?

Modern computing faces a growing challenge in managing energy consumption, especially with the advent of exascale computing and the proliferation of energy-constrained embedded devices. A significant contributor to this energy footprint is the assumption that all parts of a program are equally important and must be executed with full accuracy. This paper addresses the gap by recognizing that many computations can tolerate a degree of imprecision without substantially impacting the final output's quality. The challenge lies in providing a structured and flexible way for programmers to exploit this observation, enabling them to control the trade-off between energy efficiency and output quality without requiring extensive code rewrites or sacrificing application performance.

Methods

The core of this work is a task-based programming model that allows programmers to define tasks and assign them a significance level (ranging from 0.0 to 1.0). This significance indicates how crucial a task is for the final output's accuracy. Programmers can optionally provide an approximate version of a task (using an approxfun clause) that offers a less accurate but more energy-efficient computation.

Crucially, the system introduces a runtime system that leverages this significance information. It employs various runtime policies to decide whether to execute a task accurately or approximately. These policies aim to meet a programmer-specified ratio of accurately executed tasks within a group, ensuring a controlled degradation of quality. Two primary runtime policies are proposed:

  • Global Task Buffering (GTB): This policy buffers tasks before issuing them to workers. Once a buffer is full or a synchronization barrier is hit, tasks are sorted by significance, and the least significant ones are approximated (or dropped if no approximate version is provided) until the desired ratio of accurate tasks is met.
  • Local Queue History (LQH): This policy issues tasks immediately. Each worker then decides on approximation based on the historical significance of tasks it has already executed and the target ratio. This approach is more decentralized and potentially more scalable.

Datasets

The paper does not explicitly mention or introduce new datasets. Instead, it uses a set of six benchmark kernels for evaluation, including:

  • Sobel (image processing)
  • DCT (image compression)
  • MC (Monte Carlo simulation)
  • Kmeans (clustering)
  • Jacobi (iterative solver)
  • Fluidanimate (fluid dynamics simulation)

These benchmarks were chosen to represent a variety of computational characteristics and were ported to the proposed programming model.

Key Insights and Ideas

  • Significance as a First-Class Citizen: Elevating "significance" to a first-class concern in programming, akin to parallelism, is a powerful abstraction for managing approximate computing.
  • Structured Trade-offs: The task-based model with significance tagging provides a structured and flexible way to explore the quality-energy-performance space without invasive code changes.
  • Graceful Degradation is Achievable: The system consistently demonstrates "graceful quality degradation," meaning that even with aggressive approximation, the output remains meaningful and usable, unlike brute-force methods like aggressive loop perforation.
  • Runtime Intelligence: The runtime policies (GTB and LQH) are key to realizing the benefits of the programming model, intelligently managing task execution to meet user-defined quality targets.
  • Policy Trade-offs: GTB offers more deterministic control and potentially better accuracy adherence, while LQH is generally faster and more energy-efficient due to its decentralized nature, though it can be less precise in meeting exact ratios.

Key Results

  • Energy Reduction: The system achieved significant energy reductions, up to 83% compared to a fully accurate execution and up to 35% compared to loop perforation.
  • Performance Gains: Approximated versions of benchmarks ran significantly faster.
  • Quality Control: The ratio parameter in taskwait pragmas effectively controlled the quality of the final output, allowing for a spectrum of approximations.
  • Minimal Overhead: The significance-aware runtime system incurred negligible overhead, typically below 7%, even for benchmarks with many lightweight tasks.
  • Benchmark Performance:
    • Sobel: Achieved good energy savings with graceful quality degradation, outperforming loop perforation in quality.
  • DCT: Highly amenable to approximation, with policies performing comparably to loop perforation but with better quality.
  • MC: Showed significant performance and energy gains with minimal quality loss.
  • Kmeans: Demonstrated graceful behavior, with GTB policies outperforming perforation, while LQH offered similar quality to accurate execution with energy benefits.
  • Jacobi: Blind perforation was more efficient but less accurate; the proposed model offered a better balance.
  • Fluidanimate: Highly sensitive to errors, requiring careful approximation (mild degree) and alternating accurate/approximate steps.

Limitations and Future Work

  • Limitations:
    • The GTB policy, especially with a "Max Buffer" setting, can introduce overhead due to task buffering and sorting, particularly for applications with many small tasks.
  • The LQH policy, while efficient, can only approximate the desired ratio of accurate tasks due to its localized view, potentially leading to slightly lower quality than GTB in some cases.
  • The paper notes that for Fluidanimate, only mild approximation was acceptable, indicating that not all applications are equally tolerant to approximation.
  • Future Work:
    • Explore more advanced optimization scenarios, such as combining Dynamic Voltage and Frequency Scaling (DVFS) with approximate task execution on slower, lower-power cores.
  • Extend the programming model to support approximate computing on ultra low-power but unreliable hardware.
  • Investigate further integration with hardware features for more efficient approximate execution.

Summary updated

BibTeX
@inproceedings{vassiliadis2015programming,
  author = {Vassilis Vassiliadis and Konstantinos Parasyris and Charalambos Chalios and Christos D. Antonopoulos and Spyros Lalis and Nikolaos Bellas and Hans Vandierendonck and Dimitrios S. Nikolopoulos},
  title = {{A programming model and runtime system for significance-aware energy-efficient computing}},
  booktitle = {PPoPP},
  year = {2015},
  doi = {10.1145/2688500.2688546},
}
Figure