非结构网格计算的自动拼接及其在地震模拟中的应用
Automated Tiling of Unstructured Mesh Computations with Application to Seismological Modelling
摘要:
稀疏平铺是一种融合访问公共数据的循环的技术,从而增加数据局部性。与传统的循环融合或阻塞不同,循环可能具有不同的迭代空间,并通过间接内存访问访问共享数据集,例如A[map[i]] -因此命名为“稀疏”。这种循环的一个显著示例出现在不连续伽辽金有限元法中,因为在不同域上的数值积分的计算(例如,细胞、小平面)。稀疏平铺的主要挑战是实现-它不仅难以理解和合成,而且维护和推广也很繁重,因为它需要完全重写大量的数值计算。在这篇文章中,我们提出了一种方法来扩展稀疏平铺的基础上提高抽象层次的适用性。通过一系列的编译器传递,问题的数学规范逐渐降低,最终生成稀疏平铺的C for循环。除了自动化,我们通过引入:一个重新审视的,更有效的稀疏平铺算法,支持分布式内存并行,一系列的细粒度优化,以提高运行时性能,在一个公开的库,SLOPE实现,以及深入研究Seigen的性能影响,Seigen是一个用于地震学问题的真实世界弹性波方程求解器,它显示了在由896个英特尔Broadwell内核组成的平台上高达1.28倍的速度提升。
英文摘要:
Sparse tiling is a technique to fuse loops that access common data, thus increasing data locality. Unlike traditional loop fusion or blocking, the loops may have different iteration spaces and access shared datasets through indirect memory accesses, such as A[map[i]] -- hence the name "sparse". One notable example of such loops arises in discontinuous-Galerkin finite element methods, because of the computation of numerical integrals over different domains (e.g., cells, facets). The major challenge with sparse tiling is implementation -- not only is it cumbersome to understand and synthesize, but it is also onerous to maintain and generalize, as it requires a complete rewrite of the bulk of the numerical computation. In this article, we propose an approach to extend the applicability of sparse tiling based on raising the level of abstraction. Through a sequence of compiler passes, the mathematical specification of a problem is progressively lowered, and eventually sparse-tiled C for-loops are generated. Besides automation, we advance the state-of-the-art by introducing: a revisited, more efficient sparse tiling algorithm; support for distributed-memory parallelism; a range of fine-grained optimizations for increased run-time performance; implementation in a publicly-available library, SLOPE; and an in-depth study of the performance impact in Seigen, a real-world elastic wave equation solver for seismological problems, which shows speed-ups up to 1.28x on a platform consisting of 896 Intel Broadwell cores.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。