arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.09131cs.DC
收藏

Dynasor:一种用于在多核CPU上加速张量分解中稀疏MTTKRP的动态内存布局

Dynasor: A Dynamic Memory Layout for Accelerating Sparse MTTKRP for Tensor Decomposition on Multi-core CPU

Sasindu Wijeratne, Rajgopal Kannan, Viktor Prasanna

AI总结:

本文提出Dynasor算法,利用FLYCOO格式和动态重映射,在多核CPU上通过无锁并发与负载均衡,加速稀疏张量分解中的spMTTKRP内核,实现2.12至9.01倍加速。

摘要:

稀疏矩阵化张量与Khatri-Rao乘积(spMTTKRP)是稀疏张量分解中最耗时的计算内核。本文提出了一种新颖算法,旨在最小化多核CPU平台上输入张量所有模式下spMTTKRP的执行时间。该算法利用FLYCOO张量格式来利用外部内存访问中的数据局部性。通过启用对输入张量独立分区的无锁并发处理,有效利用计算资源。所提出的分区确保了CPU线程间的负载均衡。我们的动态张量重映射技术沿所有模式减少了通信开销。在广泛使用的真实世界张量上,与最先进的CPU实现相比,我们的工作在所有模式的总执行时间上实现了2.12倍至9.01倍的加速。

英文摘要:

Sparse Matricized Tensor Times Khatri-Rao Product (spMTTKRP) is the most time-consuming compute kernel in sparse tensor decomposition. In this paper, we introduce a novel algorithm to minimize the execution time of spMTTKRP across all modes of an input tensor on multi-core CPU platform. The proposed algorithm leverages the FLYCOO tensor format to exploit data locality in external memory accesses. It effectively utilizes computational resources by enabling lock-free concurrent processing of independent partitions of the input tensor. The proposed partitioning ensures load balancing among CPU threads. Our dynamic tensor remapping technique leads to reduced communication overhead along all the modes. On widely used real-world tensors, our work achieves 2.12x - 9.01x speedup in total execution time across all modes compared with the state-of-the-art CPU implementations.

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

↑