arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.11081cs.ARcs.DC
收藏

Sextans:一个通用稀疏矩阵和稠密矩阵乘法的流加速器

Sextans: A Streaming Accelerator for General-Purpose Sparse-Matrix Dense-Matrix Multiplication

Linghao Song, Yuze Chi, Atefeh Sohrabizadeh, Young-kyu Choi, Jason Lau, Jason Cong

摘要:

稀疏矩阵稠密矩阵乘法(SpMM)是广泛应用的关键运算符,包括科学计算、图形处理和深度学习。SpMM加速器的设计面临着三个挑战:(1)稀疏矩阵中元素的随机分布导致的随机内存访问和处理负载的不平衡;(2)无法在片上实现的大型矩阵的数据处理效率低下;(3)非通用加速器设计,一个加速器只能处理固定大小的问题。在本文中,我们提出了六分之一,通用的SpMM处理的加速器。Sextans加速器的特点是(1)使用片内存储器进行快速随机访问,(2)对片外大型矩阵进行流式访问,(3)使用II=1流水线实现平衡工作负载的PE感知非零调度,以及(4)硬件灵活性,可以一次性对硬件进行原型设计,以支持不同大小的Spectrometer作为通用加速器。我们利用高带宽内存(HBM)的有效访问稀疏和密集矩阵。在评估中,我们提出了一个FPGA原型Sextans,这是可执行的Xilinx U280 HBM FPGA板和一个预计的原型Sextans-P具有更高的带宽比V100和更多的频率优化。我们对1,400个Sparse在各种稀疏矩阵上进行了全面评估,其中包括来自SNAP的50个矩阵和来自SuiteSparse的150个矩阵。我们将Sextans与NVIDIA K80和V100 GPU进行了比较,Sextans在K80 GPU上实现了2.50倍的几何加速比,Sextans-P在V100 GPU上实现了1.14倍的几何加速比(K80的4.94倍)。该代码可在https://github.com/linghaosong/Sextans上获得。

英文摘要:

Sparse-Matrix Dense-Matrix multiplication (SpMM) is the key operator for a wide range of applications, including scientific computing, graph processing, and deep learning. Architecting accelerators for SpMM is faced with three challenges - (1) the random memory accessing and unbalanced load in processing because of random distribution of elements in sparse matrices, (2) inefficient data handling of the large matrices which can not be fit on-chip, and (3) anon-general-purpose accelerator design where one accelerator can only process a fixed-size problem. In this paper, we present Sextans, an accelerator for general-purpose SpMM processing. Sextans accelerator features (1) fast random access using on-chip memory, (2) streaming access to off-chip large matrices, (3) PE-aware non-zero scheduling for balanced workload with an II=1 pipeline, and (4) hardware flexibility to enable prototyping the hardware once to support SpMMs of different size as a general-purpose accelerator. We leverage high bandwidth memory (HBM) for the efficient accessing of both sparse and dense matrices. In the evaluation, we present an FPGA prototype Sextans which is executable on a Xilinx U280 HBM FPGA board and a projected prototype Sextans-P with higher bandwidth comparable to V100 and more frequency optimization. We conduct a comprehensive evaluation on 1,400 SpMMs on a wide range of sparse matrices including 50 matrices from SNAP and 150 from SuiteSparse. WecompareSextanswith NVIDIA K80 and V100 GPUs.Sextansachieves a 2.50x geomean speedup over K80 GPU andSextans-Pachieves a 1.14x geomean speedup over V100 GPU (4.94x over K80). The code is available at https://github.com/linghaosong/Sextans.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑