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

AsyncSparse:在异步GPU架构上加速稀疏矩阵-矩阵乘法

AsyncSparse: Accelerating Sparse Matrix-Matrix Multiplication on Asynchronous GPU Architectures

Cornell University(康奈尔大学);Georgia Institute of Technology(佐治亚理工学院)

Jie Liu, Huanzhi Pu, Zhiru Zhang

AI总结:

本文提出两种新内核,利用异步GPU特性优化稀疏矩阵乘法,其中WCSR内核在SuiteSparse矩阵上性能优于现有方法,BCSR内核在Qwen2.5-7B预填充任务中实现显著加速。

摘要:

稀疏矩阵-矩阵乘法(SpMM)是科学计算和机器学习中的基本内核。尽管先前工作利用张量核心加速SpMM,但现有稀疏内核未利用现代GPU架构的异步特性,如NVIDIA的Tensor Memory Accelerator(TMA)和warp specialization。本文系统研究了这些特性对SpMM性能的影响,并引入了两个协同设计的内核。对于结构化稀疏性,我们优化了使用Block Compressed Sparse Row(BCSR)格式的warp-specialized生产者-消费者流水线,将TMA数据传输与WGMMA计算重叠。对于不规则稀疏性,我们设计了Window Compressed Sparse Row(WCSR)内核,通过TMA加载稀疏操作数,并将大行窗口分割到线程块中以实现负载平衡。我们的WCSR内核在SuiteSparse矩阵上优于所有现有SpMM内核(1.47倍于AccSpMM,6.24倍于cuSPARSE)。我们的BCSR内核在Qwen2.5-7B预填充任务中实现90%块稀疏度下64K令牌的端到端加速(2.66倍于cuDNN/cuBLAS)

英文摘要:

Sparse Matrix-Matrix Multiplication (SpMM) is a fundamental kernel across scientific computing and machine learning. While prior work accelerates SpMM using Tensor Cores, no existing sparse kernel exploits the asynchronous features of modern GPU architectures, such as NVIDIA's Tensor Memory Accelerator (TMA) and warp specialization. This work systematically studies how these features impact SpMM performance and introduces two co-designed kernels. For structured sparsity, we optimize a warp-specialized producer-consumer pipeline overlapping TMA data transfer with WGMMA computation using Block Compressed Sparse Row (BCSR) format. For irregular sparsity, we design a Window Compressed Sparse Row (WCSR) kernel that loads the sparse operand via TMA and splits large row-windows across thread blocks for load balancing. Our WCSR kernel outperforms all prior SpMM kernels on SuiteSparse matrices (1.47x over AccSpMM, 6.24x over cuSPARSE). Our BCSR kernel achieves a combined 2.66x end-to-end speedup on Qwen2.5-7B prefill at 90% block sparsity with 64K tokens over cuDNN/cuBLAS.

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

↑