Abstract
As AI workloads, particularly Transformer-based models, continue to scale, the demand for high-performance many-core architectures has intensified. However, scaling to 1024-core clusters introduces significant interconnect bottlenecks and Non-Uniform Memory Access (NUMA) challenges. This paper presents a Dynamic Allocation Scheme (DAS) that combines a low-overhead hardware remapping unit with a software-driven unified dynamic allocator. Evaluated on the 1024-core TeraPool RISC-V cluster, DAS achieves a 1.94× speedup on Vision Transformer (ViT) encoder layers and demonstrates architectural efficiency exceeding that of high-end GPUs in normalized throughput.
Introduction
The evolution of artificial intelligence is increasingly driven by large-scale models such as Transformers. To meet the computational demands of these models, hardware architects are designing chips with massive arrays of Processing Elements (PEs). While "scaling up" to 1024 cores on a single cluster offers immense theoretical throughput, it creates a physical routing crisis. A traditional "flat" interconnect, where every core has equal access to every memory bank, is physically impossible to implement at this scale due to routing congestion and area constraints.
The Interconnect Bottleneck
Modern kilo-core designs often resort to hierarchical layouts, leading to Non-Uniform Memory Access (NUMA). In these systems, cores have "local" memory banks with low latency and "remote" banks with significantly higher latency. Standard memory mapping techniques, such as fixed word-level interleaving, often fail to account for the specific data access patterns of complex AI kernels. This mismatch results in frequent remote memory accesses, bank conflicts, and idle cycles, ultimately bottlenecking the performance of the entire cluster.
The Dynamic Allocation Scheme (DAS)
To address these limitations, the researchers developed the Dynamic Allocation Scheme (DAS), a hardware-software co-design that enables adaptive memory mapping tailored to specific kernel requirements.
1. Programmable Address-Remapping Hardware
The hardware component of DAS is a lightweight remapping unit positioned between the cores and the memory subsystem. Unlike static mapping, this unit is programmable at runtime. It allows the system to logically "fold" data into specific physical memory partitions. By reconfiguring the mapping based on the task, the system ensures that the data required by a specific group of cores is physically located in the banks closest to them.
2. Unified Dynamic Allocator
The software component consists of a runtime library that manages a dynamic heap. When a kernel—such as a Matrix Multiplication or Softmax—is scheduled, the allocator identifies an available memory region and configures the hardware remapping unit to optimize for that kernel's access pattern. This coordination minimizes "remote" hops and maximizes local bandwidth utilization.
Evaluation and Results
The DAS was implemented and tested on the TeraPool platform, an open-source 1024-core RISC-V cluster operating at 920 MHz. The evaluation focused on both fundamental kernels and end-to-end Vision Transformer (ViT) layers.
Kernel Performance
DAS demonstrated significant improvements over the standard fixed-interleaving baseline:
- GEMV: Up to 3.68× speedup.
- GEMM: Up to 2.77× speedup.
These gains are attributed to the reduction of bank conflicts and the optimization of data locality, which are critical for matrix-heavy operations.
End-to-End Model Performance
On the ViT-L/16 encoder layer, the DAS-enabled cluster achieved a 1.94× speedup, completing the layer in 5.67 ms. Furthermore, the system maintained a high PE utilization of 81%, a stark contrast to the baseline where cores frequently stalled waiting for remote data.
Comparison with Industry Standards
A notable finding was the comparison with the NVIDIA A100 GPU. While the A100 possesses higher absolute peak performance, the DAS-enhanced RISC-V cluster achieved a higher normalized throughput (0.438 vs 0.423 MACs per cycle per PE) on the ViT-B/16 benchmark. This indicates that the DAS architecture provides superior efficiency for these specific AI workloads.
Overhead and Implementation
One of the primary advantages of DAS is its minimal impact on chip resources. The hardware remapping logic occupies less than 0.1% of the total chip area. Additionally, the implementation does not degrade the maximum clock frequency, ensuring that the performance gains do not come at the cost of physical design complexity or power efficiency.
Conclusion and Future Work
The Dynamic Allocation Scheme provides a viable path for scaling many-core RISC-V clusters to 1024 cores and beyond. By resolving the NUMA bottleneck through a simple hardware-software interface, DAS enables high utilization and significant speedups for Transformer models.
Future research will focus on automating the DAS configuration process through compiler integration to reduce the burden on programmers. Additionally, the scalability of this scheme will be tested on "mega-clusters" exceeding 4096 cores to determine the upper limits of this adaptive mapping approach. While DAS is highly effective for structured workloads like those in AI, further investigation is needed to adapt these techniques for irregular data structures found in graph processing and other non-linear applications.
Summary updated