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

Acc-SpMM:利用GPU Tensor Core加速通用稀疏矩阵-矩阵乘法

Acc-SpMM: Accelerating General-purpose Sparse Matrix-Matrix Multiplication with GPU Tensor Cores

Haisha Zhao, San Li, Jiaheng Wang, Chunbao Zhou, Jue Wang, Zhikuang Xin, Shunde Li, Zhiqiang Liang, Zhijie Pan, Fang Liu, Yan Zeng, Yangang Wang, Xuebin Chi

AI总结:

针对通用SpMM的硬件性能释放需求,提出基于GPU Tensor Core的高性能库Acc-SpMM,通过重排序、压缩格式等多重优化,在多代NVIDIA GPU上实现了相较cuSPARSE的显著性能提升。

摘要:

通用稀疏矩阵-矩阵乘法(SpMM)是科学计算与深度学习领域的基础内核。Tensor Core(TC,张量核心)等新型矩阵计算单元的出现为SpMM加速带来了更多机遇,但要充分释放硬件性能潜力,需进行系统性优化。本文提出Acc-SpMM——一款基于Tensor Core的高性能SpMM库,包含多重优化策略:基于数据亲和性的重排序、内存高效的压缩格式、高吞吐量流水线,以及自适应的稀疏感知负载均衡。在多种NVIDIA GPU架构上,使用各类基准矩阵与当前最优的SpMM内核对比,Acc-SpMM实现了显著性能提升:在RTX 4090上相较cuSPARSE平均加速2.52倍(最高5.11倍),在A800上平均加速1.91倍(最高4.68倍),在H100上平均加速1.58倍(最高3.60倍)。

英文摘要:

General-purpose Sparse Matrix-Matrix Multiplication (SpMM) is a fundamental kernel in scientific computing and deep learning. The emergence of new matrix computation units such as Tensor Cores (TCs) brings more opportunities for SpMM acceleration. However, in order to fully unleash the power of hardware performance, systematic optimization is required. In this paper, we propose Acc-SpMM, a high-performance SpMM library on TCs, with multiple optimizations, including data-affinity-based reordering, memory efficient compressed format, high-throughput pipeline, and adaptive sparsity-aware load balancing. In contrast to the state-of-the-art SpMM kernels on various NVIDIA GPU architectures with a diverse range of benchmark matrices, Acc-SpMM achieves significant performance improvements, on average 2.52x (up to 5.11x) speedup on RTX 4090, on average 1.91x (up to 4.68x) speedup on A800, and on average 1.58x (up to 3.60x) speedup on H100 over cuSPARSE.

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

↑