Skip to main content
QUICK REVIEW

[Paper Review] HORIZON: Accelerated General Relativistic Magnetohydrodynamics

Burkhard Zink|arXiv (Cornell University)|Feb 25, 2011
Pulsars and Gravitational Waves ResearchPhysics and Astronomy8 references10 citations
TL;DR

This paper presents HORIZON, a GPU-accelerated code for solving general relativistic magnetohydrodynamics (GRMHD) using CUDA on NVIDIA GPUs. By leveraging the data-parallel architecture of GPUs, HORIZON achieves up to an order of magnitude performance gain over quad-core CPUs in double precision and several orders of magnitude in single precision, enabling faster, high-throughput simulations of compact astrophysical objects like neutron stars.

ABSTRACT

We present Horizon, a new graphics processing unit (GPU)-accelerated code to solve the equations of general relativistic magnetohydrodynamics in a given spacetime. We evaluate the code in several test cases, including magnetized Riemann problems and rapidly rotating neutron stars, and measure the performance benefits of the GPU acceleration in comparison to our CPU-based code Thor. We find substantial performance gains in comparison to a quad-core CPU both in single- and double-precision accuracy, and discuss these findings in the context of future numerical modeling efforts.

Motivation & Objective

  • To develop a high-performance, GPU-accelerated code for solving the equations of general relativistic magnetohydrodynamics (GRMHD) in complex spacetimes.
  • To evaluate the performance gains of GPU acceleration over traditional CPU-based GRMHD codes, particularly in single- and double-precision arithmetic.
  • To assess the viability of single-precision floating-point arithmetic for GRMHD simulations in astrophysical contexts.
  • To enable faster, interactive simulation workflows on single workstations by replacing large cluster resources.
  • To prepare for the future shift toward massively parallel architectures by designing a flexible, hybrid-precision GRMHD solver.

Proposed method

  • The HORIZON code is implemented in CUDA/C++ and is based on the CPU-based GRMHD code Thor, re-implementing its finite-volume, high-resolution shock-capturing scheme for GPU execution.
  • It uses a conservative finite-volume method on structured meshes with Rusanov-type fluxes to handle shocks and discontinuities in relativistic magnetohydrodynamics.
  • The code maps the computation of fluxes, reconstruction, and time integration to the GPU's massive parallelism, exploiting data-parallelism in the numerical stencil operations.
  • It supports configurable precision: users can select single or double precision for key operations such as the conservative-to-primitive variable transformation and flux computation.
  • The implementation is optimized for coalesced memory access and high arithmetic intensity, minimizing latency and maximizing throughput on GPU architectures.
  • The code is evaluated on standard GRMHD test cases, including magnetized Riemann problems and rapidly rotating neutron stars, to validate accuracy and performance.

Experimental results

Research questions

  • RQ1Can GPU acceleration significantly reduce computational time for general relativistic magnetohydrodynamics simulations?
  • RQ2How do performance gains from GPU acceleration compare between single- and double-precision floating-point arithmetic?
  • RQ3Is single-precision accuracy sufficient for key astrophysical GRMHD simulations, such as shock tubes and oscillating neutron stars?
  • RQ4To what extent can GPU-based simulations replace large-scale cluster computing for full 3D GRMHD models?
  • RQ5Can a hybrid-precision approach maintain numerical accuracy while maximizing performance on GPU hardware?

Key findings

  • HORIZON achieves a performance gain of approximately one order of magnitude over a quad-core CPU when using double-precision arithmetic.
  • In single-precision mode, the performance gain over the same CPU exceeds several orders of magnitude, demonstrating the high arithmetic intensity of GRMHD on GPUs.
  • Single-precision floating-point arithmetic is sufficient for modeling magnetized Riemann problems and small oscillations in rotating neutron stars, based on validation against reference solutions.
  • The code enables full-scale 3D GRMHD simulations on a single workstation with high turnaround time, reducing reliance on large compute clusters.
  • The hybrid-precision capability allows selective use of double precision in critical components, preserving accuracy while maintaining high throughput.
  • The results confirm that GRMHD simulations map exceptionally well to GPU architectures due to regular memory access, data parallelism, and high arithmetic intensity.

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.