arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.10248cs.DCcs.MScs.PF
收藏

具有稀疏“离网”源的有限差分模板算子的时间阻塞

Temporal blocking of finite-difference stencil operators with sparse "off-the-grid" sources

George Bisbas, Fabio Luporini, Mathias Louboutin, Rhodri Nelson, Gerard Gorman, Paul H. J. Kelly

摘要:

模板核在一系列科学应用中占据主导地位,包括地震和医学成像、图像处理和神经网络。时间阻塞是一种性能优化,旨在通过在多个时间步长中重用缓存中的数据来减少模板计算所需的内存带宽。它已经被证明是有益的这类算法。然而,将时间分块应用于实际应用的时间表仍然具有挑战性。这些计算通常由不与计算网格对齐的稀疏定位的算子组成(“离网”)。我们的工作的动机是建模问题,其中源注入的波场,然后必须在接收器通过插值从网格波场测量。由此产生的数据依赖性使得采用时间块更具挑战性。我们提出了一种方法来检查这些数据的依赖关系和重新排序的计算,导致模板代码的时间块不适用的性能增益。我们在Devito域特定的编译器工具链中实现了这个新方案。Devito实现了一种嵌入在Python中的特定于领域的语言,可以使用有限差分方法从高级符号问题定义中生成优化的偏微分方程求解器。我们评估我们的计划使用各向同性的声学,各向异性的声学,各向同性的弹性波传播的工业意义。在自动调整之后,性能评估表明,这使得通过时间分块能够实现高达1.6倍的高度优化的矢量化空间分块代码的实质性性能改善。

英文摘要:

Stencil kernels dominate a range of scientific applications, including seismic and medical imaging, image processing, and neural networks. Temporal blocking is a performance optimization that aims to reduce the required memory bandwidth of stencil computations by re-using data from the cache for multiple time steps. It has already been shown to be beneficial for this class of algorithms. However, applying temporal blocking to practical applications' stencils remains challenging. These computations often consist of sparsely located operators not aligned with the computational grid ("off-the-grid"). Our work is motivated by modeling problems in which source injections result in wavefields that must then be measured at receivers by interpolation from the grided wavefield. The resulting data dependencies make the adoption of temporal blocking much more challenging. We propose a methodology to inspect these data dependencies and reorder the computation, leading to performance gains in stencil codes where temporal blocking has not been applicable. We implement this novel scheme in the Devito domain-specific compiler toolchain. Devito implements a domain-specific language embedded in Python to generate optimized partial differential equation solvers using the finite-difference method from high-level symbolic problem definitions. We evaluate our scheme using isotropic acoustic, anisotropic acoustic, and isotropic elastic wave propagators of industrial significance. After auto-tuning, performance evaluation shows that this enables substantial performance improvement through temporal blocking over highly-optimized vectorized spatially-blocked code of up to 1.6x.

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

↑