[Paper Review] Scaling through abstractions -- high-performance vectorial wave simulations for seismic inversion with Devito
This paper presents Devito, a domain-specific language and compiler that enables high-performance, scalable vectorial wave simulations for seismic inversion by automatically generating optimized finite-difference stencils from symbolic PDE expressions. It achieves 28 TFLOP/s on industry-scale 3D models in a cloud HPC environment, demonstrating performance on par with hand-coded kernels while supporting complex physics like elastic and TTI wave equations via high-level abstractions.
[Devito] is an open-source Python project based on domain-specific language and compiler technology. Driven by the requirements of rapid HPC applications development in exploration seismology, the language and compiler have evolved significantly since inception. Sophisticated boundary conditions, tensor contractions, sparse operations and features such as staggered grids and sub-domains are all supported; operators of essentially arbitrary complexity can be generated. To accommodate this flexibility whilst ensuring performance, data dependency analysis is utilized to schedule loops and detect computational-properties such as parallelism. In this article, the generation and simulation of MPI-parallel propagators (along with their adjoints) for the pseudo-acoustic wave-equation in tilted transverse isotropic media and the elastic wave-equation are presented. Simulations are carried out on industry scale synthetic models in a HPC Cloud system and reach a performance of 28TFLOP/s, hence demonstrating Devito's suitability for production-grade seismic inversion problems.
Motivation & Objective
- To enable high-performance, scalable wave simulations for seismic inversion using automated code generation.
- To support complex wave physics such as elastic and tilted transverse isotropic (TTI) media within a high-level, symbolic interface.
- To achieve performance comparable to hand-optimized kernels while maintaining portability across on-premise and cloud HPC systems.
- To demonstrate the feasibility of large-scale, MPI-parallel, adjoint-based inversion workflows using Devito’s symbolic DSL and compiler stack.
Proposed method
- Devito uses a symbolic domain-specific language (DSL) built on SymPy to express PDEs, including wave equations and tensor contractions, in a mathematically coherent way.
- The Devito compiler performs data dependency analysis to schedule loops and detect parallelism, generating highly optimized C code at runtime.
- The system supports staggered-grid finite differences for vectorial and tensorial fields, enabling accurate simulation of elastic and TTI wave equations.
- Distributed-memory parallelism via domain decomposition and MPI is natively supported, allowing scaling to large 3D models.
- The framework integrates automatic source injection and receiver sampling through sparse operations, essential for full-waveform inversion.
- Performance is validated using roofline modeling and direct comparison with a state-of-the-art hand-coded kernel (fdelmodc), ensuring low-level efficiency.
Experimental results
Research questions
- RQ1Can a high-level symbolic DSL achieve performance comparable to hand-optimized, production-grade wave propagators in seismic inversion?
- RQ2To what extent can automatic code generation from symbolic PDEs support complex wave physics like elasticity and TTI anisotropy?
- RQ3How well does Devito scale across distributed-memory HPC systems for large 3D seismic modeling and inversion?
- RQ4Can the combination of symbolic abstraction and high-performance compilation enable production-grade FWI workflows in cloud-based HPC environments?
Key findings
- Devito achieved a peak performance of 28 TFLOP/s on a 3D elastic wave simulation in a cloud HPC environment, demonstrating readiness for production-scale seismic inversion.
- The performance of Devito’s generated kernels was within 1% of a state-of-the-art hand-coded propagator (fdelmodc), confirming its low-level efficiency.
- The single-node performance of Devito’s elastic kernel was on par with hand-coded implementations, despite not fully exploiting all compiler optimizations in 2D cases.
- The system successfully scaled to 32 nodes (16-core Intel Xeon) for a 3D elastic model, completing a 16-second simulation in 16 hours at 1.1 TFLOP/s.
- The framework enables full support for vectorial and tensorial staggered-grid finite differences through the same high-level API used for scalar fields.
- Extrapolating from the results, computing a 5000-source elastic dataset would require 322 EFLOPs, highlighting the computational demands and the need for scalable, automated solutions like Devito.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.