arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.08829cs.DCcond-mat.mtrl-sci
收藏

使用节点感知处理器网格优化分布式张量缩并

Optimizing Distributed Tensor Contractions using Node-Aware Processor Grids

Andreas Irmler, Raghavendra Kanakagiri, Sebastian T. Ohlmann, Edgar Solomonik, Andreas Grüneis

AI总结:

本文提出节点感知处理器网格以减少分布式张量缩并的节点间通信,并在 CTF 中实现,显著提升矩阵乘法及耦合簇计算性能。

摘要:

我们提出一种算法,旨在最小化现代多核计算节点上分布式且内存高效的张量缩并方案的节点间通信量。其核心思想是定义处理器网格,以优化所采用缩并算法中的节点内/节点间通信量。我们将所提出的节点感知通信算法实现到 Cyclops Tensor Framework(CTF)中。我们证明,与不使用节点感知处理器网格的传统实现相比,该实现在多达数百个现代计算节点上的矩阵-矩阵乘法和张量缩并中取得了显著提升的性能。与现有最先进的并行矩阵乘法库(COSMA 和 ScaLAPACK)相比,我们的实现表现出良好性能。除讨论矩阵-矩阵乘法的性能外,我们还研究了节点感知通信算法在张量缩并中的性能,这类张量缩并出现在量子化学耦合簇方法中。为此,我们采用修改版 CTF,并结合耦合簇代码 Cc4s。研究结果表明,节点感知通信算法还能够提升在数十至数百个计算节点上运行的实际问题耦合簇理论计算的性能。

英文摘要:

We propose an algorithm that aims at minimizing the inter-node communication volume for distributed and memory-efficient tensor contraction schemes on modern multi-core compute nodes. The key idea is to define processor grids that optimize intra-/inter-node communication volume in the employed contraction algorithms. We present an implementation of the proposed node-aware communication algorithm into the Cyclops Tensor Framework (CTF). We demonstrate that this implementation achieves a significantly improved performance for matrix-matrix-multiplication and tensor-contractions on up to several hundreds modern compute nodes compared to conventional implementations without using node-aware processor grids. Our implementation shows good performance when compared with existing state-of-the-art parallel matrix multiplication libraries (COSMA and ScaLAPACK). In addition to the discussion of the performance for matrix-matrix-multiplication, we also investigate the performance of our node-aware communication algorithm for tensor contractions as they occur in quantum chemical coupled-cluster methods. To this end we employ a modified version of CTF in combination with a coupled-cluster code (Cc4s). Our findings show that the node-aware communication algorithm is also able to improve the performance of coupled-cluster theory calculations for real-world problems running on tens to hundreds of compute nodes.

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

↑