Systolic Computing on GPUs for Productive Performance

Yun (Eric) Liang, Hongbo Rong, Xiaochen Hao, Yun Liang 0001, Lidong Xu, Hong H. Jiang, Pradeep DubeyarXiv 2020

Abstract

This paper presents a novel language and compiler framework designed to facilitate the creation of high-performance "software systolic arrays" on GPUs. By mapping abstract processing elements to SIMD lanes and utilizing vector registers for inter-lane communication, the proposed system enables developers to achieve significant performance gains. Evaluation on Intel GPUs demonstrates that software-defined systolic arrays can outperform specialized hardware units by up to 59% for convolution tasks while maintaining high programmer productivity through high-level abstractions.

Introduction

Modern Graphics Processing Units (GPUs) offer immense computational power, yet harnessing this potential often requires navigating complex programming models like CUDA or OpenCL. These models are primarily centered around the Single-Instruction Multiple-Threads (SIMT) paradigm. While effective for many parallel workloads, SIMT can be cumbersome for algorithms that naturally follow a rhythmic, localized dataflow, such as systolic arrays.

A systolic array is a network of processing elements (PEs) that compute and pass data to their neighbors in a synchronized "heartbeat" fashion. While common in FPGAs and specialized AI accelerators, implementing such structures on GPUs typically demands low-level manual optimization of shuffle instructions and register management. This work introduces a general framework to productively map arbitrary systolic algorithms onto GPU SIMD hardware.

Methods

The proposed system decouples the algorithmic definition from its hardware implementation through a three-tiered approach:

  1. Language Abstraction: Computations are defined using Uniform Recurrence Equations (UREs), a functional mathematical representation of data movement and transformation.
  2. Space-Time Transformation: Developers specify a "projection" to map computations onto physical hardware and a "schedule" to determine execution timing.
  3. Compiler Automation: The compiler translates UREs and space-time transforms into GPU-specific code. It automatically maps abstract PEs to physical SIMD lanes, utilizes vector registers as communication "wires," generates shuffle instructions for data movement, and performs register coalescing to optimize memory usage.
Overview of the framework: from URE-based temporal definition and spatial mapping to Intel GPU execution units.

The prototype was implemented for Intel GPUs using the CM (C for Metal) language, which provides explicit control over SIMD operations.

Results and Evaluation

The framework was evaluated using 1-D and 2-D convolution benchmarks on an Intel HD Graphics 620 GPU. The results indicate that software-defined systolic arrays can be highly efficient. For 1-D convolution, the best systolic designs achieved a 47% to 59% speedup over the GPU's dedicated hardware samplers. Analytical modeling confirmed that these designs could reach 100% utilization of SIMD lanes.

Systolic dataflow for 1-D convolution (SBM design) showing partial result passing and data movement.

Furthermore, the software approach offers superior flexibility. Unlike fixed-function hardware limited to specific filter sizes and strides, the systolic framework handles arbitrary configurations without performance degradation. The productivity benefits are also notable; complex designs like the "SBM" convolution can be expressed in approximately 10–20 minutes, with subsequent modifications taking only minutes.

Conclusion

This research demonstrates that SIMD architectures are a natural fit for systolic arrays. By treating SIMD lanes as processing elements, software can mimic and even surpass specialized hardware performance. While the current prototype is specific to Intel GPUs, the underlying principles of URE-based abstraction and space-time transformation are generalizable. Future work includes extending the framework to other GPU architectures, automating host code generation, and developing a design space explorer to automatically identify optimal systolic configurations for diverse workloads.

Summary updated

BibTeX
@misc{liang2020systolic,
  author = {Yun (Eric) Liang and Hongbo Rong and Xiaochen Hao and Yun Liang and Lidong Xu and Hong H. Jiang and Pradeep Dubey},
  title = {{Systolic Computing on GPUs for Productive Performance}},
  year = {2020},
  eprint = {2010.15884},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.15884},
}
Figure