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

分布式与异构张量-向量收缩算法用于高性能计算

Distributed and heterogeneous tensor-vector contraction algorithms for high performance computing

Pedro J. Martinez-Ferrer, Albert-Jan Yzelman, Vicenç Beltran

AI总结:

本文提出分布式与异构张量-向量收缩算法,实现高效并行化,节省内存并提升性能,适用于高性能计算场景。

摘要:

张量-向量收缩(TVC)是其类别中内存受限最严重的操作,也是高阶幂法(HOPM)的核心组成部分。本文为稠密张量的原生TVC算法引入了分布式内存并行化,该算法整体上对收缩模式、张量分裂和张量阶数保持无关性。类似地,我们提出了一种新颖的分布式HOPM,即dHOPM3,它能够节省高达一个数量级的流式内存,并且在采用基于任务的并行化时,其数据移动成本约为分布式TVC操作(dTVC)的两倍。本文在三种不同架构(配备多核和加速器)上进行的数值实验证实,dTVC和dHOPM3的性能保持相对接近系统峰值内存带宽(根据架构不同,为50%-80%),并与STREAM基准测试的数据相当。在强扩展性场景中,我们这两种算法的原生多核实现能够达到与基于最先进的CUDA批量内核相当甚至更高的性能指标。最后,我们证明了在硬件不支持低精度数据类型的情况下,计算和通信也能从混合精度算术中受益。

英文摘要:

The tensor-vector contraction (TVC) is the most memory-bound operation of its class and a core component of the higher-order power method (HOPM). This paper brings distributed-memory parallelization to a native TVC algorithm for dense tensors that overall remains oblivious to contraction mode, tensor splitting and tensor order. Similarly, we propose a novel distributed HOPM, namely dHOPM3, that can save up to one order of magnitude of streamed memory and is about twice as costly in terms of data movement as a distributed TVC operation (dTVC) when using task-based parallelization. The numerical experiments carried out in this work on three different architectures featuring multi-core and accelerators confirm that the performances of dTVC and dHOPM3 remain relatively close to the peak system memory bandwidth (50%-80%, depending on the architecture) and on par with STREAM benchmark figures. On strong scalability scenarios, our native multi-core implementations of these two algorithms can achieve similar and sometimes even greater performance figures than those based upon state-of-the-art CUDA batched kernels. Finally, we demonstrate that both computation and communication can benefit from mixed precision arithmetic also in cases where the hardware does not support low precision data types natively.

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

↑