<tt>GPUmonty</tt> : A GPU-accelerated Relativistic Monte Carlo Radiative Transfer Code
Abstract We introduce GPUmonty , a CUDA/C-based Monte Carlo radiative transfer code accelerated using graphics processing units (GPUs). GPUmonty derives from the CPU-based code grmonty and offloads the most computationally expensive stages of the calculation—superphoton generation, sampling, tracking, and scattering—to the GPU. Whereas grmonty handles photons sequentially, GPUmonty processes large numbers of superphotons concurrently, leveraging the single-instruction, multiple-thread execution model of modern GPUs. Benchmarks demonstrate a speedup of about 12× relative to the original CPU implementation on a single GPU, with runtime limited primarily by register pressure rather than compute or memory bandwidth saturation. We validate the implementation through analytic tests for a optically thin synchrotron sphere, as well as comparisons with igrmonty for scattering synchrotron sphere and general relativistic magnetohydrodynamic simulation data. Relative errors remain below a percent level, and convergence is consistent with the expected <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:msubsup> <mml:mrow> <mml:mi>N</mml:mi> </mml:mrow> <mml:mrow> <mml:mi mathvariant="normal">s</mml:mi> </mml:mrow> <mml:mrow> <mml:mo>−</mml:mo> <mml:mn>1</mml:mn> <mml:mo>/</mml:mo> <mml:mn>2</mml:mn> </mml:mrow> </mml:msubsup> </mml:math> Monte Carlo scaling. By significantly reducing computational costs, GPUmonty enables the extensive parameter space surveys and faster spectra modeling required to interpret horizon-scale observations of supermassive black holes. GPUmonty is publicly available under the GNU (GNU's Not Unix) General Public License.
Authors
- Rodrigo Nemmen (ORCID: https://orcid.org/0000-0003-3956-0331)
- Abhishek V. Joshi (ORCID: https://orcid.org/0000-0002-2514-5965)
- Pedro Naethe Motta (ORCID: https://orcid.org/0000-0002-9318-9329)
Institutions
- University of Illinois Urbana-Champaign (US)
- Instituto de Geofísica y Astronomía (CU)
Publication Details
- Journal
- The Astrophysical Journal
- Published
- 2026-04-14
- DOI
- https://doi.org/10.3847/1538-4357/ae5631
- Primary Topic
- Particle Accelerators and Free-Electron Lasers
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation
- National Centre for Supercomputing Applications
- Fundação de Amparo à Pesquisa do Estado de São Paulo
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Office of Advanced Cyberinfrastructure
- Los Alamos National Laboratory