[Paper Review] FFT, FMM, or Multigrid? A comparative study of state-of-the-art Poisson solvers in the unit cube
This paper benchmarks FFT, FMM, GMG, and AMG for solving Poisson's equation in the unit cube across large-scale HPC systems. It finds FFT excels for smooth sources with uniform resolution, but FMM and GMG outperform FFT for localized features, with FMM and GMG showing comparable performance in such cases.
From molecular dynamics and quantum chemistry, to plasma physics and computational astrophysics, Poisson solvers in the unit cube are used in many applications in computational science and engineering. In this work, we benchmark and discuss the performance of the scalable methods for the Poisson problem which are used widely in practice: the Fast Fourier Transform (FFT), the Fast Multipole Method (FMM), the geometric multigrid (GMG) and algebraic multigrid (AMG). All but the AMG code are developed in our group. The GMG and FMM are novel parallel schemes using high-order approximation schemes for Poisson problems with continuous forcing functions (the source or right-hand side). Our FFT code is based on the FFTW for single node parallelism. The AMG code is from the Trilinos library from the Sandia National Laboratory. We examine and report results for weak scaling, strong scaling, and time to solution for uniform and highly refined grids. We present results on the Stampede system at the Texas Advanced Computing Center and on the Titan system at the Oak Ridge National Laboratory. In our largest test case, we solved a problem with 600 billion unknowns on 229,379 cores of Titan. Overall, all methods scale quite well to these problem sizes. We have tested all of the methods with different source functions (the right hand side in the Poisson problem). Our results indicate that FFT is the method of choice for smooth source functions that require uniform resolution. However, FFT loses its performance advantage when the source function has highly localized features like internal sharp layers. FMM and GMG considerably outperform FFT for those cases. The distinction between FMM and GMG is less clear.
Motivation & Objective
- To evaluate and compare the performance of state-of-the-art Poisson solvers—FFT, FMM, GMG, and AMG—on large-scale HPC architectures.
- To determine the optimal solver for different source function characteristics, particularly smooth versus highly localized features.
- To assess weak and strong scaling behavior across uniform and highly refined grids on modern supercomputers.
- To provide actionable insights for computational scientists selecting solvers based on problem type and hardware constraints.
Proposed method
- Implemented a novel parallel FMM scheme with high-order accuracy for continuous forcing functions in the unit cube.
- Developed a high-order geometric multigrid (GMG) solver with parallel multigrid cycles and high-order prolongation/restriction operators.
- Used FFTW for single-node FFT parallelism, leveraging its optimized transform kernels.
- Integrated the Trilinos-based AMG solver for comparison, using its robust algebraic multigrid framework.
- Conducted benchmarks on the Stampede and Titan systems using uniform and highly refined grids.
- Measured weak scaling, strong scaling, and time-to-solution across varying problem sizes and core counts.
Experimental results
Research questions
- RQ1How do FFT, FMM, GMG, and AMG scale in terms of weak and strong scaling on modern supercomputers for Poisson problems in the unit cube?
- RQ2Which solver achieves the best time-to-solution for smooth source functions requiring uniform resolution?
- RQ3How does the presence of localized features, such as sharp internal layers, affect the performance of each solver?
- RQ4What is the relative performance of FMM versus GMG when solving Poisson problems with non-smooth or localized source functions?
Key findings
- FFT achieves the best performance for smooth source functions requiring uniform resolution, outperforming FMM, GMG, and AMG in such cases.
- For source functions with highly localized features, such as internal sharp layers, FFT loses its performance advantage and is outperformed by both FMM and GMG.
- FMM and GMG show comparable performance for problems with localized features, with neither method consistently dominating the other.
- All four methods scale well to large problem sizes, with the largest test case solving a 600 billion unknowns problem on 229,379 cores of the Titan system.
- The time-to-solution for FFT is significantly lower than FMM and GMG when the source is smooth and uniformly resolved.
- The performance gap between FFT and the other methods increases with the complexity of localized features in the source function.
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.