[Paper Review] From Piz Daint to the Stars: Simulation of Stellar Mergers using High-Level Abstractions
This paper presents Octo-Tiger, a high-performance hydrodynamics code with Adaptive Mesh Refinement that simulates stellar mergers using high-level abstractions like HPX and Vc. It achieves 68.1% parallel efficiency at 2048 nodes on Piz Daint, demonstrates up to 2.8x speedup by replacing MPI with libfabric, and enables full-system GPU-accelerated runs for the first time in an HPX application, significantly improving node-level performance and scalability on heterogeneous HPC systems.
We study the simulation of stellar mergers, which requires complex simulations with high computational demands. We have developed Octo-Tiger, a finite volume grid-based hydrodynamics simulation code with Adaptive Mesh Refinement which is unique in conserving both linear and angular momentum to machine precision. To face the challenge of increasingly complex, diverse, and heterogeneous HPC systems, Octo-Tiger relies on high-level programming abstractions. We use HPX with its futurization capabilities to ensure scalability both between nodes and within, and present first results replacing MPI with libfabric achieving up to a 2.8x speedup. We extend Octo-Tiger to heterogeneous GPU-accelerated supercomputers, demonstrating node-level performance and portability. We show scalability up to full system runs on Piz Daint. For the scenario's maximum resolution, the compute-critical parts (hydrodynamics and gravity) achieve 68.1% parallel efficiency at 2048 nodes.
Motivation & Objective
- To simulate stellar mergers, particularly the V1309 Scorpii luminous red nova event, with high accuracy and scalability on modern HPC systems.
- To address the challenge of porting complex astrophysical simulations to increasingly heterogeneous and complex HPC architectures, including GPUs and manycore processors.
- To improve performance and scalability by replacing MPI with libfabric for low-overhead, one-sided communication in large-scale simulations.
- To enable node-level performance portability and high efficiency on diverse HPC platforms, including NVIDIA V100 GPUs, Intel Xeon, and KNL processors.
- To demonstrate the first full-system run of an HPX-based application on a GPU-accelerated supercomputer like Piz Daint.
Proposed method
- Octo-Tiger uses finite volume discretization with Adaptive Mesh Refinement to solve hydrodynamics and gravity equations, conserving linear and angular momentum to machine precision.
- The code leverages HPX’s asynchronous many-task runtime with futurization to enable lock-free, low-overhead task scheduling across nodes and within nodes.
- Libfabric is integrated as a new communication backend in HPX, replacing MPI to reduce communication overhead via one-sided RMA operations.
- GPU acceleration is achieved by mapping compute-intensive FMM kernels to NVIDIA GPUs using CUDA streams and HPX’s task-based scheduling, enabling up to 128 kernels per GPU.
- Portable vectorization is ensured via the Vc library, enabling efficient SIMD parallelism across CPU platforms including Xeon and KNL.
- The framework supports heterogeneous execution by partitioning compute nodes into dedicated thread pools for computation and network polling, reducing contention.
Experimental results
Research questions
- RQ1Can high-level abstractions like HPX and Vc enable portable, scalable, and high-performance simulation of stellar mergers across diverse HPC architectures?
- RQ2How does replacing MPI with libfabric impact communication efficiency and strong scaling in large-scale astrophysical simulations?
- RQ3To what extent can GPU acceleration improve node-level performance of critical kernels like the fast multipole method in hydrodynamics and gravity solvers?
- RQ4What is the achievable parallel efficiency of Octo-Tiger at scale on a GPU-accelerated supercomputer like Piz Daint?
- RQ5Can the integration of asynchronous task-based runtime models like HPX enable production-scale simulations on modern heterogeneous systems?
Key findings
- Octo-Tiger achieves 68.1% parallel efficiency on 2048 nodes during full-system simulations of the V1309 Scorpii merger on Piz Daint, demonstrating strong scalability.
- Replacing MPI with libfabric results in a 2.8x speedup by reducing communication overhead through one-sided RMA operations.
- The FMM kernel achieves up to 37% of peak performance on two NVIDIA V100 GPUs, significantly improving node-level performance.
- The code achieves 17% of peak performance on an Intel Xeon Phi (Knights Landing) system, showing effective portability across architectures.
- This is the first time an HPX application has been successfully run at scale on a full GPU-accelerated supercomputer, using 5400 out of 5704 nodes on Piz Daint.
- The integration of libfabric and GPU acceleration enables efficient network polling by isolating communication tasks to dedicated thread pools, reducing contention and restoring performance at scale.
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.