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

GPU上的快速Kronecker矩阵-矩阵乘法

Fast Kronecker Matrix-Matrix Multiplication on GPUs

Abhinav Jangda, Mohit Yadav

AI总结:

本文提出FastKron技术,通过摆脱对通用线性代数运算的依赖并引入Kron-Matmul特定优化,在单GPU和多GPU上分别实现最高40.7倍和7.85倍的性能提升。

摘要:

Kronecker矩阵-矩阵乘法(Kron-Matmul)是一个矩阵与若干较小矩阵的Kronecker积之间的乘法。Kron-Matmul是许多科学计算和机器学习计算的核心运算。最先进的Kron-Matmul实现利用现有的张量代数运算,例如矩阵乘法、转置和张量矩阵乘法。然而,这种设计选择阻碍了若干针对Kron-Matmul的特定优化,从而在性能上留下了显著提升空间。为了解决这一问题,我们提出了FastKron,这是一种在单个和多个GPU上执行Kron-Matmul的高效技术。FastKron独立于线性代数运算,从而能够实现若干针对Kron-Matmul的新优化。因此,与现有实现相比,它在1个GPU和16个GPU上分别实现了高达40.7倍和7.85倍的加速。

英文摘要:

Kronecker Matrix-Matrix Multiplication (Kron-Matmul) is the multiplication of a matrix with the Kronecker Product of several smaller matrices. Kron-Matmul is a core operation for many scientific and machine learning computations. State-of-the-art Kron-Matmul implementations utilize existing tensor algebra operations, such as matrix multiplication, transpose, and tensor matrix multiplication. However, this design choice prevents several Kron-Matmul specific optimizations, thus, leaving significant performance on the table. To address this issue, we present FastKron, an efficient technique for Kron-Matmul on single and multiple GPUs. FastKron is independent of linear algebra operations enabling several new optimizations for Kron-Matmul. Thus, it performs up to 40.7x and 7.85x faster than existing implementations on 1 and 16 GPUs respectively.

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

↑