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

空间填充曲线对并行系统中数据移动的影响

The Impact of Space-Filling Curves on Data Movement in Parallel Systems

David Walker, Anthony Skjellum

AI总结:

本文研究 Hilbert、Morton 等空间填充曲线对 GPU 加速多核并行系统中科学计算数据局部性与移动开销的影响,并通过模板应用分析其适用条件和数据共享机制。

摘要:

现代计算机系统的特征是具有深层存储器层次结构,由主存、多层高速缓存以及其他专用类型的存储器组成。在并行和分布式系统中,该层次结构还会增加额外的存储层。计算科学应用能否在执行时间方面获得良好性能,取决于对这种多样化、层次化存储器的高效使用。本文重新探讨如何利用空间填充曲线来规定代表性科学应用中所用数据结构在存储器中的排列顺序;这些应用运行在由多核 CPU 集群及附带 GPU 构成的并行机器上。本研究检验如下假设:Hilbert 和 Morton 排序等空间填充曲线能够改善数据局部性,从而比基于行或列的排序产生更高效的数据移动。首先,本文给出性能结果,说明在何种应用参数设置和机器特征下上述结论成立,并依据应用如何与计算机硬件及底层软件交互来解释这些结果。本研究特别关注构成许多科学计算基础的基于模板(stencil)的应用。其次,本文考察空间填充曲线如何影响最近邻代码和基于模板代码中的数据共享。

英文摘要:

Modern computer systems are characterized by deep memory hierarchies, composed of main memory, multiple layers of cache, and other specialized types of memory. In parallel and distributed systems, additional memory layers are added to this hierarchy. Achieving good performance for computational science applications, in terms of execution time, depends on the efficient use of this diverse and hierarchical memory. This paper revisits the use of space-filling curves to specify the ordering in memory of data structures used in representative scientific applications executing on parallel machines containing clusters of multicore CPUs with attached GPUs. This work examines the hypothesis that space-filling curves, such as Hilbert and Morton ordering, can improve data locality and hence result in more efficient data movement than row or column-based orderings. First, performance results are presented that show for what application parameterizations and machine characteristics this is the case, and are interpreted in terms of how an application interacts with the computer hardware and low-level software. This research particularly focuses on the use of stencil-based applications that form the basis of many scientific computations. Second, how space-filling curves impact data sharing in nearest-neighbour and stencil-based codes is considered.

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

↑