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

Deinsum:实用的I/O最优多线性代数

Deinsum: Practically I/O Optimal Multilinear Algebra

Alexandros Nikolaos Ziogas, Grzegorz Kwasniewski, Tal Ben-Nun, Timo Schneider, Torsten Hoefler

摘要:

在现代并行系统中,多线性代数核的性能主要取决于数据移动。然而,推导出数据移动最优的分布式调度程序与许多高维输入是一个出了名的困难的问题。最先进的库依赖于几何学,并且经常退回到次优的张量折叠和BLAS调用。我们提出Deinsum,分布式多线性代数计算的自动化框架表示在爱因斯坦符号,严格的数学工具来解决这个问题的基础上。我们的框架自动导出数据移动最优的平铺,并生成相应的分布式调度,通过增加其算术强度进一步优化本地计算的性能。为了展示我们的方法的好处,我们在两个重要的张量核类上进行了测试:矩阵化张量时间Khatri-Rao乘积和张量时间矩阵链。我们展示了Piz Daint超级计算机的性能结果和扩展,在512个节点上的最先进的解决方案上加速高达19倍。

英文摘要:

Multilinear algebra kernel performance on modern massively-parallel systems is determined mainly by data movement. However, deriving data movement-optimal distributed schedules for programs with many high-dimensional inputs is a notoriously hard problem. State-of-the-art libraries rely on heuristics and often fall back to suboptimal tensor folding and BLAS calls. We present Deinsum, an automated framework for distributed multilinear algebra computations expressed in Einstein notation, based on rigorous mathematical tools to address this problem. Our framework automatically derives data movement-optimal tiling and generates corresponding distributed schedules, further optimizing the performance of local computations by increasing their arithmetic intensity. To show the benefits of our approach, we test it on two important tensor kernel classes: Matricized Tensor Times Khatri-Rao Products and Tensor Times Matrix chains. We show performance results and scaling on the Piz Daint supercomputer, with up to 19x speedup over state-of-the-art solutions on 512 nodes.

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

↑