SparseZipper:增强矩阵扩展以加速 CPU 上的 SpGEMM
SparseZipper: Enhancing Matrix Extensions to Accelerate SpGEMM on CPUs
AI总结:
本文提出 SparseZipper,通过最小化修改面向稠密 GEMM 的矩阵扩展与脉动阵列,使其支持非结构化高度稀疏矩阵的 SpGEMM,并以低面积开销获得显著加速。
摘要:
通用矩阵乘法(GEMM)的重要性正推动几乎所有当代 ISA 增加用于稠密矩阵乘法的新指令集扩展,而这些扩展通常通过高性能脉动阵列实现。然而,新兴工作负载中的矩阵并不总是稠密的,绝大多数值为零的稀疏矩阵正变得越来越普遍。现有矩阵扩展和微架构无法高效处理高度稀疏矩阵,原因有两个:(1)当一个或两个输入值为零时产生无效工作;(2)与稀疏矩阵格式不兼容。本工作提出 SparseZipper,它对专为稠密-稠密 GEMM 设计的现有矩阵扩展和基于脉动阵列的微架构进行最小修改,以加速运行于具有非结构化稀疏结构的高度稀疏矩阵上的稀疏-稀疏 GEMM。性能评估表明,与基于标量哈希的 SpGEMM 实现和最先进的向量化 SpGEMM 版本相比,SparseZipper 分别实现 5.98 倍和 2.61 倍加速。组件级面积评估表明,SparseZipper 仅使基线 16×16 脉动阵列面积增加 12.7%,从而使整个片上系统的面积开销仅为几个百分点。
英文摘要:
The importance of general matrix multiplication (GEMM) is motivating new instruction set extensions for multiplying dense matrices in almost all contemporary ISAs, and these extensions are often implemented using high-performance systolic arrays. However, matrices in emerging workloads are not always dense, and sparse matrices where the vast majority of values are zeros are becoming more common. Existing matrix extensions and micro-architectures cannot efficiently process highly sparse matrices due to two reasons: (1) wasted work when one or both input values are zero; and (2) incompatibility with sparse matrix formats. This work proposes SparseZipper that minimally modifies existing matrix extensions and systolic-array-based micro-architectures specialized for dense-dense GEMM to accelerate sparse-sparse GEMM operating on highly sparse matrices with unstructured sparsity structures. Our performance evaluation shows SparseZipper achieves 5.98x and 2.61x speedup over a scalar hash-based implementation of SpGEMM and a state-of-the-art vectorized SpGEMM version, respectively. Our component-level area evaluation shows SparseZipper increases the area of a baseline 16x16 systolic array by only 12.7% resulting in an area overhead for an entire system-on-chip of just a few percent.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。