Optimizing Offload Performance in Heterogeneous MPSoCs

Luca Colagrande, Luca Benini

Abstract

In the post-Dennard scaling era, heterogeneous Multi-Processor System-on-Chips (MPSoCs) have become essential for achieving high performance within strict power envelopes. However, the overhead associated with offloading tasks from a host processor to accelerator clusters often limits the efficiency of fine-grained parallel workloads. This paper presents a hardware-software co-design approach using the open-source Manticore architecture to minimize these overheads. By implementing hardware-level multicast and a dedicated synchronization unit, we demonstrate a performance increase of up to 47.9% for fine-grained tasks. Furthermore, we provide a deterministic analytical model with less than 1% error, allowing for the mathematical optimization of cluster allocation.

Introduction

As traditional single-core scaling reaches its thermal and physical limits, computer architecture has shifted toward heterogeneous designs. These systems typically pair a complex, high-performance "host" core with a fabric of energy-efficient "accelerator" cores. While this model excels at large-scale data processing, it struggles with fine-grained tasks where the time required to dispatch and synchronize work (the "offload overhead") can exceed the execution time on the accelerator itself. Most existing research treats these offload mechanisms as black boxes, making it difficult to model or optimize the underlying bottlenecks.

The Problem: The Overhead Wall

In standard heterogeneous systems, the host processor must communicate job parameters to each accelerator cluster sequentially. As the number of clusters increases, this linear dispatch time creates a bottleneck. For small problem sizes, adding more compute resources can paradoxically increase total runtime because the host spends more time managing the offload than the cores spend executing the task. This "overhead wall" prevents many-core systems from being effectively utilized for fine-grained parallel kernels.

Methodology

To address these bottlenecks, we utilized the Manticore MPSoC, an open-source hardware platform, and introduced two primary hardware-software co-design extensions:

1. Hardware Multicast

We modified the system interconnect and the host's load-store unit to support hardware-level multicasting. This allows the host to broadcast job arguments to all accelerator clusters simultaneously. By transforming the dispatch overhead from a linear function of the number of clusters into a constant one, the system maintains efficiency even at high core counts.

2. Centralized Credit Counter

To streamline synchronization, we integrated a dedicated hardware synchronization unit. Instead of the host polling individual clusters or handling complex interrupt signals, each cluster increments a hardware counter upon task completion. Once the counter reaches a predefined threshold, a single interrupt is triggered to the host, signaling that the entire job is complete.

3. Analytical Modeling

Because these hardware extensions provide deterministic behavior, we developed a mathematical model to predict execution time ($T$) based on problem size ($N$) and the number of clusters ($M$). This model allows developers to calculate the optimal number of clusters required to meet a specific performance target without over-allocating resources.

Experimental Results

We evaluated our approach using a DAXPY kernel ($aX + Y$) in a cycle-accurate RTL simulation environment (QuestaSim). The system was scaled from 1 to 32 clusters, encompassing up to 288 cores.

  • Performance Gains: The hardware extensions achieved a 47.9% speedup for a 1024-dimension DAXPY kernel compared to the baseline sequential dispatch architecture.
  • Efficiency: In a 32-cluster configuration, the multicast and synchronization units saved over 300 clock cycles per offload event.
  • Model Precision: The analytical runtime model achieved a Mean Absolute Percentage Error (MAPE) of less than 1%. This high degree of predictability is a significant departure from typical heterogeneous systems and enables precise task scheduling.

Conclusion and Future Work

By co-designing hardware and software for task management, we can significantly mitigate the overheads that plague fine-grained parallel processing in MPSoCs. The resulting system is not only faster but also highly predictable, allowing for formal optimization of resource allocation. Future research will explore the impact of these optimizations on more complex kernels with irregular memory access patterns and the development of compilers that automatically utilize the analytical model for autonomous offload decisions.

Summary updated

BibTeX
@inproceedings{colagrande2024optimizing,
  author = {Luca Colagrande and Luca Benini},
  title = {{Optimizing Offload Performance in Heterogeneous MPSoCs}},
  booktitle = {DATE},
  year = {2024},
  doi = {10.23919/date58400.2024.10546670},
}
Figure