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

SMASH:稀疏矩阵原子散列

SMASH: Sparse Matrix Atomic Scratchpad Hashing

Northeastern University(东北大学)

Kaustubh Shivdikar

摘要:

稀疏矩阵,更具体地说是SpGEMM内核,常见于广泛的应用中,涵盖基于图的路径查找到机器学习算法(例如,神经网络)。实现SpGEMM内核的一个特殊挑战是对DRAM内存的压力。解决这个问题的一种方法是使用SpGEMM内核实现的内积方法。虽然内积产生较少的中间结果,但由于输入矩阵元素的大量冗余提取,它可能最终使内存带宽饱和。使用基于外部乘积的SpGEMM内核可以减少冗余提取,但代价是由于用于产生/管理部分乘积的额外计算和存储器访问而增加的开销。在这篇论文中,我们介绍了一种新的SpGEMM内核实现的基础上行积的方法。我们利用原子指令来合并生成的中间部分积。原子指令的使用消除了创建部分乘积矩阵的需要。为了评估我们的逐行乘积方法,我们将优化的SpGEMM内核映射到旨在加速基于图的应用程序的自定义加速器。目标加速器是一个名为PIUMA的实验系统,由英特尔开发。PIUMA提供了几个有吸引力的功能,包括快速上下文切换,用户可配置的缓存,全局可寻址内存,非一致性缓存和异步管道。我们调整我们的SpGEMM内核,以利用PIUMA结构的许多功能。本论文比较了我们的SpGEMM实现对以前的解决方案,所有映射到PIUMA框架。我们简要介绍了一些PIUMA架构的功能,然后深入研究我们优化的SpGEMM内核的细节。与竞争方法相比,我们的SpGEMM内核可以实现9.4倍的加速比。

英文摘要:

Sparse matrices, more specifically SpGEMM kernels, are commonly found in a wide range of applications, spanning graph-based path-finding to machine learning algorithms (e.g., neural networks). A particular challenge in implementing SpGEMM kernels has been the pressure placed on DRAM memory. One approach to tackle this problem is to use an inner product method for the SpGEMM kernel implementation. While the inner product produces fewer intermediate results, it can end up saturating the memory bandwidth, given the high number of redundant fetches of the input matrix elements. Using an outer product-based SpGEMM kernel can reduce redundant fetches, but at the cost of increased overhead due to extra computation and memory accesses for producing/managing partial products. In this thesis, we introduce a novel SpGEMM kernel implementation based on the row-wise product approach. We leverage atomic instructions to merge intermediate partial products as they are generated. The use of atomic instructions eliminates the need to create partial product matrices. To evaluate our row-wise product approach, we map an optimized SpGEMM kernel to a custom accelerator designed to accelerate graph-based applications. The targeted accelerator is an experimental system named PIUMA, being developed by Intel. PIUMA provides several attractive features, including fast context switching, user-configurable caches, globally addressable memory, non-coherent caches, and asynchronous pipelines. We tailor our SpGEMM kernel to exploit many of the features of the PIUMA fabric. This thesis compares our SpGEMM implementation against prior solutions, all mapped to the PIUMA framework. We briefly describe some of the PIUMA architecture features and then delve into the details of our optimized SpGEMM kernel. Our SpGEMM kernel can achieve 9.4x speedup as compared to competing approaches.

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

↑