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

稀疏近似矩阵乘法的GPUs加速

Accelerating Sparse Approximate Matrix Multiplication on GPUs

Xiaoyan Liu, Yi Liu, Ming Dun, Bohong Yin, Hailong Yang, Zhongzhi Luan, Depei Qian

摘要:

虽然矩阵乘法在计算线性代数中起着重要的作用,但对于近稀疏矩阵的矩阵乘法却没有有效的解决方法。稀疏近似矩阵乘法(Sparse Approximate Matrix Multiply,SpAMM)是一种弥补传统稠密/稀疏矩阵乘法优化所忽略的性能差距的算法。然而,现有的SpAMM算法未能利用GPU的性能潜力来加速。在本文中,我们提出cuSpAMM,第一个并行SpAMM算法优化多个GPU。提出了几种性能优化方法,包括适应线程并行性的算法重新设计,内存访问优化的阻塞策略,以及张量核的加速。此外,我们扩展cuSpAMM运行在多个GPU上的一个有效的负载平衡方案。我们评估cuSpAMM在多个GPU上的合成和真实世界的数据集。实验结果表明,与供应商优化的cuBLAS和cuSPARSE库相比,cuSpAMM实现了显著的性能加速。

英文摘要:

Although the matrix multiplication plays a vital role in computational linear algebra, there are few efficient solutions for matrix multiplication of the near-sparse matrices. The Sparse Approximate Matrix Multiply (SpAMM) is one of the algorithms to fill the performance gap neglected by traditional optimizations for dense/sparse matrix multiplication. However, existing SpAMM algorithms fail to exploit the performance potential of GPUs for acceleration. In this paper, we present cuSpAMM, the first parallel SpAMM algorithm optimized for multiple GPUs. Several performance optimizations have been proposed, including algorithm re-design to adapt to the thread parallelism, blocking strategies for memory access optimization, and the acceleration with the tensor core. In addition, we scale cuSpAMM to run on multiple GPUs with an effective load balance scheme. We evaluate cuSpAMM on both synthesized and real-world datasets on multiple GPUs. The experiment results show that cuSpAMM achieves significant performance speedup compared to vendor optimized cuBLAS and cuSPARSE libraries.

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

↑