Skip to main content
QUICK REVIEW

[Paper Review] Directionally Unsplit Hydrodynamic Schemes with Hybrid MPI/OpenMP/GPU Parallelization in AMR

Hsi-Yu Schive, Ui-Han Zhang|arXiv (Cornell University)|Mar 17, 2011
Computational Fluid Dynamics and AerodynamicsEngineering10 references5 citations
TL;DR

This paper presents the implementation of directionally unsplit hydrodynamic schemes—MUSCL-Hancock, a variant of MUSCL-Hancock, and corner-transport-upwind—within the GPU-accelerated AMR code GAMER, using hybrid MPI/OpenMP/GPU parallelization. It achieves up to 101× speed-up on a single GPU versus a single CPU core and demonstrates a 100× performance advantage over the widely used CPU code Athena in adiabatic hydrodynamic tests.

ABSTRACT

We present the implementation and performance of a class of directionally unsplit Riemann-solver-based hydrodynamic schemes on Graphic Processing Units (GPU). These schemes, including the MUSCL-Hancock method, a variant of the MUSCL-Hancock method, and the corner-transport-upwind method, are embedded into the adaptive-mesh-refinement (AMR) code GAMER. Furthermore, a hybrid MPI/OpenMP model is investigated, which enables the full exploitation of the computing power in a heterogeneous CPU/GPU cluster and significantly improves the overall performance. Performance benchmarks are conducted on the Dirac GPU cluster at NERSC/LBNL using up to 32 Tesla C2050 GPUs. A single GPU achieves speed-ups of 101(25) and 84(22) for uniform-mesh and AMR simulations, respectively, as compared with the performance using one(four) CPU core(s), and the excellent performance persists in multi-GPU tests. In addition, we make a direct comparison between GAMER and the widely-adopted CPU code Athena (Stone et al. 2008) in adiabatic hydrodynamic tests and demonstrate that, with the same accuracy, GAMER is able to achieve two orders of magnitude performance speed-up.

Motivation & Objective

  • To implement directionally unsplit Riemann-solver-based hydrodynamic schemes in the GPU-accelerated AMR code GAMER for improved accuracy and symmetry preservation.
  • To enable high-performance computing in astrophysical simulations by leveraging GPU acceleration and hybrid parallelization models.
  • To directly compare GAMER's performance with the established CPU code Athena under identical numerical conditions.
  • To optimize hybrid MPI/OpenMP/GPU execution to fully exploit heterogeneous CPU/GPU clusters and overcome performance bottlenecks.

Proposed method

  • Adopted directionally unsplit schemes—MUSCL-Hancock (MHM), a variant of MHM (VL), and corner-transport-upwind (CTU)—to maintain spatial symmetry and improve accuracy in multi-dimensional hydrodynamic simulations.
  • Implemented these schemes using NVIDIA CUDA for GPU execution, supporting multiple reconstruction methods (PLM, PPM), Riemann solvers (HLLE, HLLC, Roe), and slope limiters.
  • Employed a hybrid MPI/OpenMP/GPU parallelization model: MPI for inter-node communication, OpenMP for multi-core CPU offloading, and GPU kernels for hydrodynamic and gravity solvers.
  • Utilized asynchronous memory transfers and concurrent CPU-GPU execution to overlap data movement with computation and reduce idle time.
  • Applied rectangular domain decomposition for AMR simulations, with load balancing addressed as a future challenge.
  • Benchmarked performance on the NERSC Dirac GPU cluster using up to 32 Tesla C2050 GPUs, comparing to CPU-only runs on single and quad-core configurations.

Experimental results

Research questions

  • RQ1Can directionally unsplit hydrodynamic schemes be efficiently implemented on GPUs while maintaining numerical accuracy and symmetry?
  • RQ2How does the hybrid MPI/OpenMP/GPU model improve performance and scalability in AMR simulations compared to CPU-only or single-GPU execution?
  • RQ3What performance speed-up can be achieved by GAMER over the widely used CPU code Athena in identical adiabatic hydrodynamic tests?
  • RQ4How does the communication overhead and load imbalance affect strong and weak scaling in multi-GPU AMR simulations?
  • RQ5To what extent do optimizations like asynchronous memory copy and concurrent CPU-GPU execution mitigate performance bottlenecks in hybrid architectures?

Key findings

  • A single GPU achieves a 101× performance speed-up over one CPU core and a 25× speed-up over four CPU cores in uniform-mesh hydrodynamic simulations.
  • In AMR simulations, a single GPU delivers 84× speed-up over one CPU core and 22× over four CPU cores, with performance scaling well across multiple GPUs.
  • The 32-GPU configuration achieves 71.4× and 18.3× speed-ups relative to 32-core and 128-core CPU-only runs, respectively, with MPI communication accounting for ~11% of total time.
  • Weak scaling efficiency reaches 98.8% and strong scaling efficiency reaches 85.0% in 32-GPU experiments, indicating excellent parallel efficiency.
  • A direct comparison with the Athena code shows GAMER achieves a two orders of magnitude (100×) performance speed-up under identical accuracy and test conditions.
  • Preliminary MHD tests with CTU and constrained transport show a 60× speed-up over a single CPU core, suggesting strong potential for future MHD support in GAMER.

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.