Skip to main content
QUICK REVIEW

[Paper Review] Numerical Study of Geometric Multigrid Methods on CPU--GPU Heterogeneous Computers

Chunsheng Feng, Shi Shu|arXiv (Cornell University)|Aug 21, 2012
Advanced Numerical Methods in Computational MathematicsEngineering28 references6 citations
TL;DR

This paper presents a numerical study of geometric multigrid (GMG) methods on CPU–GPU heterogeneous architectures, demonstrating that optimized FMG solvers on GPUs achieve up to 11× speedup over CPU-only OpenMP implementations in 2D and 10× in 3D. The FMG method outperforms the cuFFT library by 33% in 2D and 23% in 3D for problems with 16 million unknowns, while also offering superior energy efficiency and cost-effectiveness.

ABSTRACT

The geometric multigrid method (GMG) is one of the most efficient solving techniques for discrete algebraic systems arising from elliptic partial differential equations. GMG utilizes a hierarchy of grids or discretizations and reduces the error at a number of frequencies simultaneously. Graphics processing units (GPUs) have recently burst onto the scientific computing scene as a technology that has yielded substantial performance and energy-efficiency improvements. A central challenge in implementing GMG on GPUs, though, is that computational work on coarse levels cannot fully utilize the capacity of a GPU. In this work, we perform numerical studies of GMG on CPU--GPU heterogeneous computers. Furthermore, we compare our implementation with an efficient CPU implementation of GMG and with the most popular fast Poisson solver, Fast Fourier Transform, in the cuFFT library developed by NVIDIA.

Motivation & Objective

  • To evaluate the performance of geometric multigrid (GMG) methods on CPU–GPU heterogeneous computing platforms.
  • To address the challenge of underutilized GPU resources on coarse grid levels in multigrid algorithms.
  • To compare the efficiency of GPU-accelerated FMG solvers against the state-of-the-art cuFFT library for solving Poisson equations.
  • To assess the scalability and performance of GMG across varying problem sizes and grid resolutions.
  • To determine the cost-effectiveness of GPU-based GMG in terms of computational performance and energy consumption.

Proposed method

  • Implemented a geometric multigrid (GMG) solver with full multigrid (FMG) cycles on CPU–GPU heterogeneous systems using CUDA for GPU offloading.
  • Employed a hierarchy of nested grids to reduce high- and low-frequency errors simultaneously, leveraging multigrid’s multilevel smoothing strategy.
  • Optimized GPU memory access and kernel launches by coalescing threads and minimizing data transfers between CPU and GPU.
  • Used symmetric Gauss-Seidel relaxation as the smoother on all grid levels, with varying numbers of pre- and post-relaxation sweeps.
  • Compared GPU-accelerated FMG with a highly optimized CPU-only OpenMP implementation and the cuFFT library for fast Poisson solvers.
  • Measured performance using kernel execution times and approximation errors in the L² norm to ensure solution accuracy.

Experimental results

Research questions

  • RQ1How does the performance of GPU-accelerated geometric multigrid compare to a highly optimized CPU-only implementation on heterogeneous systems?
  • RQ2What is the impact of coarse grid computation on GPU utilization, and how can it be mitigated in multigrid algorithms?
  • RQ3Can a GPU-accelerated FMG solver outperform the cuFFT library in solving large-scale Poisson problems in 2D and 3D?
  • RQ4At what problem size does GPU acceleration become more efficient than CPU-only computation in multigrid solvers?
  • RQ5How does the energy efficiency and cost-effectiveness of GPU-based GMG compare to modern multicore CPUs for PDE solvers?

Key findings

  • The GPU-accelerated FMG solver achieved up to 11× speedup over a CPU-only OpenMP implementation in 2D and 10× in 3D for large problems.
  • For problems with 16 million unknowns, the FMG(1,2) scheme in 2D and FMG(3,3) in 3D achieved optimal convergence rates with minimal error.
  • The GPU-based FMG method was 33% faster than cuFFT in 2D and 23% faster in 3D for the same problem size and accuracy.
  • Smaller problems benefited most from hybrid computation (0 < Lθ < L), where CPU and GPU workloads were balanced.
  • Lack of parallelism and frequent coarse-grid visits limited GPU utilization, reducing peak floating-point performance.
  • GPU-based GMG demonstrated superior energy efficiency and cost-effectiveness compared to modern multicore CPUs for large-scale PDE solvers.

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.