arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.12953cs.DCcs.DS
收藏

低深度空间树算法

Low-Depth Spatial Tree Algorithms

Yves Baumann, Tal Ben-Nun, Maciej Besta, Lukas Gianinazzi, Torsten Hoefler, Piotr Luczynski

AI总结:

针对空间计算机模型中稀疏计算的通信局部性与并行深度问题,本文提出空间树布局及低深度 treefix sum、LCA 算法,实现近线性 energy 与多对数深度。

摘要:

当代加速器设计表现出高度的空间局部性,其中二维物理距离决定处理单元之间的通信成本。这种情况带来了相当大的算法挑战,尤其是在管理稀疏数据时,而稀疏数据是推动数据科学发展的关键组成部分。空间计算机模型通过按距离加权处理器通信成本来量化通信局部性,并引入了一个名为 energy(能量)的项。此外,该模型还整合了 depth(深度)这一被广泛使用的指标,以促进高并行性。我们提出并分析了一个在空间计算机模型中实现高效空间树算法的框架。我们的主要方法构建了一种空间树布局,用于优化计算网格中相邻节点的局部性。因此,该方法能够在树内实现经过局部性优化的消息传递。与使用 PRAM 方法相比,我们的布局在 energy 方面实现了多项式因子的改进。利用该布局,我们开发了高能效的 treefix sum(树式求和)和 lowest common ancestor(最近公共祖先)算法,二者都是其他图算法的基础构建模块。在高概率意义下,我们的算法展现出近线性 energy 和多对数深度。我们的贡献充实了越来越多的相关工作,这些工作表明计算可以同时具备高空间局部性和低深度。此外,我们的工作也推进了不规则与稀疏计算的空间布局研究。

英文摘要:

Contemporary accelerator designs exhibit a high degree of spatial localization, wherein two-dimensional physical distance determines communication costs between processing elements. This situation presents considerable algorithmic challenges, particularly when managing sparse data, a pivotal component in progressing data science. The spatial computer model quantifies communication locality by weighting processor communication costs by distance, introducing a term named energy. Moreover, it integrates depth, a widely-utilized metric, to promote high parallelism. We propose and analyze a framework for efficient spatial tree algorithms within the spatial computer model. Our primary method constructs a spatial tree layout that optimizes the locality of the neighbors in the compute grid. This approach thereby enables locality-optimized messaging within the tree. Our layout achieves a polynomial factor improvement in energy compared to utilizing a PRAM approach. Using this layout, we develop energy-efficient treefix sum and lowest common ancestor algorithms, which are both fundamental building blocks for other graph algorithms. With high probability, our algorithms exhibit near-linear energy and poly-logarithmic depth. Our contributions augment a growing body of work demonstrating that computations can have both high spatial locality and low depth. Moreover, our work constitutes an advancement in the spatial layout of irregular and sparse computations.

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

↑