arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2111.09947cs.DCcs.DScs.MS
收藏

屏蔽稀疏矩阵-矩阵乘积的并行算法

Parallel Algorithms for Masked Sparse Matrix-Matrix Products

Srđan Milaković, Oguz Selvitopi, Israt Nisa, Zoran Budimlić, Aydin Buluc

摘要:

计算两个稀疏矩阵的乘积(SpGEMM)是各种组合和图形算法以及各种生物信息学和数据分析应用中用于计算内积相似性的基本操作。对于一类重要的算法,只需要输出条目的子集,并且所得到的操作被称为屏蔽SpGEMM,因为输出条目的子集被认为是“屏蔽”的。用于掩蔽SpGEMM的现有算法通常不将掩蔽视为乘法的一部分,并且要么首先计算常规SpGEMM,然后进行掩蔽,要么仅对未掩蔽的输出元素执行稀疏内积。在这项工作中,我们研究了各种新的算法和数据结构,这是相当具有挑战性和重要的计算,并提供指导方针,如何设计一个快速掩蔽SpGEMM共享内存架构。我们的评估表明,矩阵和掩模密度,掩模结构和缓存行为等因素在实现高性能的掩蔽SpGEMM中起着至关重要的作用。我们评估我们的算法在大量的矩阵上使用几个现实世界的基准,并表明我们的算法在大多数情况下显着优于最先进的掩蔽SpGEMM实现。

英文摘要:

Computing the product of two sparse matrices (SpGEMM) is a fundamental operation in various combinatorial and graph algorithms as well as various bioinformatics and data analytics applications for computing inner-product similarities. For an important class of algorithms, only a subset of the output entries are needed, and the resulting operation is known as Masked SpGEMM since a subset of the output entries is considered to be "masked out". Existing algorithms for Masked SpGEMM usually do not consider mask as part of multiplication and either first compute a regular SpGEMM followed by masking, or perform a sparse inner product only for output elements that are not masked out. In this work, we investigate various novel algorithms and data structures for this rather challenging and important computation, and provide guidelines on how to design a fast Masked-SpGEMM for shared-memory architectures. Our evaluations show that factors such as matrix and mask density, mask structure and cache behavior play a vital role in attaining high performance for Masked SpGEMM. We evaluate our algorithms on a large number of matrices using several real-world benchmarks and show that our algorithms in most cases significantly outperform the state of the art for Masked SpGEMM implementations.

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

↑