Flexible Communication Avoiding Matrix Multiplication on FPGA with High-Level Synthesis

Johannes de Fine Licht, Grzegorz Kwasniewski, Torsten Hoefler
12/13/2019
cs.DCcs.CC

Official code: spcl/gemm_hls (395 stars, C++, BSD-3-Clause, last commit 2025-01-20).

Abstract

Data movement is the dominating factor affecting performance and energy in modern computing systems. Consequently, many algorithms have been developed to minimize the number of I/O operations for common computing patterns.

Show full abstract

Matrix multiplication is no exception, and lower bounds have been proven and implemented both for shared and distributed memory systems. Reconfigurable hardware platforms are a lucrative target for I/O minimizing algorithms, as they offer full control of memory accesses to the programmer. While bounds developed in the context of fixed architectures still apply to these platforms, the spatially distributed nature of their computational and memory resources requires a decentralized approach to optimize algorithms for maximum hardware utilization. We present a model to optimize matrix multiplication for FPGA platforms, simultaneously targeting maximum performance and minimum off-chip data movement, within constraints set by the hardware. We map the model to a concrete architecture using a high-level synthesis tool, maintaining a high level of abstraction, allowing us to support arbitrary data types, and enables maintainability and portability across FPGA devices. Kernels generated from our architecture are shown to offer competitive performance in practice, scaling with both compute and memory resources. We offer our design as an open source project to encourage the open development of linear algebra and I/O minimizing algorithms on reconfigurable hardware platforms.

View on arXivView PDF

Code Implementations(1)

spcl/gemm_hlsOfficial100%
BSD-3-Clause

Scalable systolic array-based matrix-matrix multiplication implemented in Vivado HLS for Xilinx FPGAs.

39562C++, CMakeJun 1, 20181 years agoBSD-3-Clause
fpgahigh-level-synthesishlsvivado-hls

Similar Papers

Cite this paper

@article{licht2019flexible,
  title  = {Flexible Communication Avoiding Matrix Multiplication on FPGA with High-Level Synthesis},
  author = {Johannes de Fine Licht and Grzegorz Kwasniewski and Torsten Hoefler},
  year   = {2019},
  eprint = {1912.06526},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.06526}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1912.06526.svg)](https://codeofpaper.com/paper/1912.06526)

Discussion