Skip to main content
QUICK REVIEW

[Paper Review] A comparison of techniques for solving the Poisson equation in CFD

Nick Brown|arXiv (Cornell University)|Oct 27, 2020
Wind and Air Flow StudiesEnvironmental Science8 references7 citations
TL;DR

This paper evaluates direct FFT and iterative solvers (GMRES, BiCGStab, CG) for solving the Poisson equation in the MONC atmospheric model's dynamical core, comparing performance, scalability, and memory usage on up to 32,768 Cray XC30 cores. The bespoke BiCGStab solver achieves the lowest runtime (4.98e-3 s), while FFT scales well due to efficient interconnects, but iterative methods become preferable at exascale-scale parallelism.

ABSTRACT

CFD is a ubiquitous technique central to much of computational simulation such as that required by aircraft design. Solving of the Poisson equation occurs frequently in CFD and there are a number of possible approaches one may leverage. The dynamical core of the MONC atmospheric model is one example of CFD which requires the solving of the Poisson equation to determine pressure terms. Traditionally this aspect of the model has been very time consuming and-so it is important to consider how we might reduce the runtime cost. In this paper we survey the different approaches implemented in MONC to perform the pressure solve. Designed to take advantage of large scale, modern, HPC machines, we are concerned with the computation and communication behaviour of the available techniques and in this text we focus on direct FFT and indirect iterative methods. In addition to describing the implementation of these techniques we illustrate on up to 32768 processor cores of a Cray XC30 both the performance and scalability of our approaches. Raw runtime is not the only measure so we also make some comments around the stability and accuracy of solution. The result of this work are a number of techniques, optimised for large scale HPC systems, and an understanding of which is most appropriate in different situations.

Motivation & Objective

  • To optimize the pressure solve in the MONC atmospheric model’s dynamical core, which is a major performance bottleneck.
  • To evaluate the trade-offs between computation and communication in direct FFT versus iterative solvers on large-scale HPC systems.
  • To determine the most scalable and efficient solver for future exascale computing workloads in CFD and atmospheric modeling.
  • To assess the impact of solver choice on runtime, memory usage, and stability across varying problem sizes and processor counts.
  • To guide users in selecting optimal solvers based on problem configuration, system size, and hardware characteristics.

Proposed method

  • Implement a direct FFT-based method using FFTW for 3D Fourier transforms, with slab decomposition in X and Y and column-wise tri-diagonal solves in Z.
  • Develop bespoke iterative solvers (BiCGStab, CG) and integrate PETSc-based GMRES and BiCGStab for comparison, using matrix-free operations.
  • Use weak scaling experiments with 65,536 local grid points per core on a Cray XC30 system to measure performance across up to 32,768 cores.
  • Measure runtime, communication volume, memory usage, and stability across different solver types and system configurations.
  • Evaluate the impact of communication overhead by analyzing data movement patterns, particularly in FFT's transposition steps.
  • Assess scalability by comparing performance trends as core counts increase, especially beyond 32,768 cores for future exascale systems.

Experimental results

Research questions

  • RQ1How do direct FFT and iterative solvers compare in terms of runtime and communication cost when solving the Poisson equation in a CFD dynamical core?
  • RQ2What is the scalability of FFT and iterative solvers on large-scale HPC systems, particularly at 32,768 cores and beyond?
  • RQ3How does the choice of solver affect memory usage, especially when scaling local problem sizes?
  • RQ4Which solver provides the best balance of performance, stability, and memory efficiency for the MONC model’s pressure correction step?
  • RQ5Can communication-optimized implementations of FFT reduce overhead and improve scalability on future exascale architectures?

Key findings

  • The bespoke BiCGStab solver achieved the lowest average solve time of 4.98e-3 seconds, outperforming PETSc-based solvers and CG due to lower overhead.
  • The direct FFT method scaled well on the Cray XC30 due to its efficient Aries interconnect, but communication costs became more significant at scale.
  • PETSc-based iterative solvers incurred higher memory usage due to matrix and vector abstraction overhead, making them less suitable for large local domains.
  • The bespoke iterative solvers were the most memory-efficient, requiring only a few buffers for halo exchanges, closely followed by FFT.
  • At scale beyond 32,768 cores, iterative solvers are expected to outperform FFT due to reduced communication volume and better load balancing.
  • Eliminating the intermediate Y-dimension transposition in the FFT pipeline could reduce communication by 50%, significantly improving scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.