3D finite difference computation on GPUs using CUDA

Paulius Micikevicius

2009 · 518 citations · 7 references

Concepts

TL;DR

The paper presents a CUDA-based GPU parallelization of 3D finite difference computations. The implementation uses data‑access redundancy to optimize stencil‑only and wave‑equation discretizations, and extends to multi‑GPU setups that overlap inter‑GPU communication with computation for linear scaling. The approach delivers 2,400–3,000 million output points per second on a single Tesla 10‑series GPU, about ten times faster than a 4‑core Harpertown CPU, and scales linearly across multiple GPUs.

Abstract

In this paper we describe a GPU parallelization of the 3D finite difference computation using CUDA. Data access redundancy is used as the metric to determine the optimal implementation for both the stencil-only computation, as well as the discretization of the wave equation, which is currently of great interest in seismic computing. For the larger stencils, the described approach achieves the throughput of between 2,400 to over 3,000 million of output points per second on a single Tesla 10-series GPU. This is roughly an order of magnitude higher than a 4-core Harpertown CPU running a similar code from seismic industry. Multi-GPU parallelization is also described, achieving linear scaling with GPUs by overlapping inter-GPU communication with computation.

References

7