Projects per year
Abstract
Many problems in geophysical and atmospheric modelling require the fast solution of elliptic partial differential equations (PDEs) in “flat” three dimensional geometries. In particular, an anisotropic elliptic PDE for the pressure correction has to be solved at every time step in the dynamical core of many numerical weather prediction (NWP) models, and equations of a very similar structure arise in global ocean models, subsurface flow simulations and gas and oil reservoir modelling. The elliptic solve is often the bottleneck of the forecast, and to meet operational requirements an algorithmically optimal method has to be used and implemented efficiently. Graphics Processing Units (GPUs) have been shown to be highly efficient (both in terms of absolute performance and power consumption) for a wide range of applications in scientific computing, and recently iterative solvers have been parallelised on these architectures. In this article we describe the GPU implementation and optimisation of a Preconditioned Conjugate Gradient (PCG) algorithm for the solution of a three dimensional anisotropic elliptic PDE for the pressure correction in NWP. Our implementation exploits the strong vertical anisotropy of the elliptic operator in the construction of a suitable preconditioner. As the algorithm is memory bound, performance can be improved significantly by reducing the amount of global memory access. We achieve this by using a matrix-free implementation which does not require explicit storage of the matrix and instead recalculates the local stencil. Global memory access can also be reduced by rewriting the PCG algorithm using loop fusion and we show that this further reduces the runtime on the GPU. We demonstrate the performance of our matrix-free GPU code by comparing it both to a sequential CPU implementation and to a matrix-explicit GPU code which uses existing CUDA libraries. The absolute performance of the algorithm for different problem sizes is quantified in terms of floating point throughput and global memory bandwidth.
Original language | English |
---|---|
Pages (from-to) | 41-58 |
Number of pages | 18 |
Journal | Computing and Visualization in Science |
Volume | 16 |
Issue number | 2 |
DOIs | |
Publication status | Published - Apr 2013 |
Fingerprint
Dive into the research topics of 'Matrix-free GPU implementation of a preconditioned conjugate gradient solver for anisotropic elliptic PDEs'. Together they form a unique fingerprint.Projects
- 2 Finished
-
Phase 2 Scalability of Elliptic Solvers in Weather and Climate Modelling
Scheichl, R. (PI)
Natural Environment Research Council
24/06/13 → 30/06/16
Project: Research council
-
Scalability of Elliptic Solvers in Weather and Climate Modelling
Scheichl, R. (PI)
Natural Environment Research Council
7/09/11 → 6/11/13
Project: Research council
Equipment
-
High Performance Computing (HPC) Facility
Chapman, S. (Manager)
University of BathFacility/equipment: Facility