English

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

Distributed, Parallel, and Cluster Computing 2021-02-26 v2 Mathematical Software Performance

Abstract

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.

Keywords

Cite

@article{arxiv.2010.10248,
  title  = {Temporal blocking of finite-difference stencil operators with sparse "off-the-grid" sources},
  author = {George Bisbas and Fabio Luporini and Mathias Louboutin and Rhodri Nelson and Gerard Gorman and Paul H. J. Kelly},
  journal= {arXiv preprint arXiv:2010.10248},
  year   = {2021}
}

Comments

Accepted for publication at 35th IEEE International Parallel & Distributed Processing Symposium

R2 v1 2026-06-23T19:29:14.256Z