GPUmonty : A GPU-accelerated Relativistic Monte Carlo Radiative Transfer Code
Open Access
- 14 April 2026
- journal article
- Published by American Astronomical Society in The Astrophysical Journal
- Vol. 1001 (2) , 148
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 N s − 1 / 2 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.Keywords
All Related Versions
Funding Information
- Fundação de Amparo à Pesquisa do Estado de São Paulo (2023/15835-2)
This publication has 29 references indexed in Scilit:
- Fitting the light curves of Sagittarius A* with a hot-spot modelAstronomy & Astrophysics, 2024
- κmonty: a Monte Carlo Compton scattering code including non-thermal electronsMonthly Notices of the Royal Astronomical Society, 2023
- GRay: A MASSIVELY PARALLEL GPU-BASED CODE FOR RAY TRACING IN RELATIVISTIC SPACETIMESThe Astrophysical Journal, 2013
- A MONTE CARLO CODE FOR RELATIVISTIC RADIATION TRANSPORT AROUND KERR BLACK HOLESThe Astrophysical Journal, 2013
- General relativistic radiative transfer: formulation and emission from structured tori around black holesAstronomy & Astrophysics, 2012
- NUMERICAL CALCULATION OF MAGNETOBREMSSTRAHLUNG EMISSION AND ABSORPTION COEFFICIENTSThe Astrophysical Journal, 2011
- grmonty: A MONTE CARLO CODE FOR RELATIVISTIC RADIATIVE TRANSPORTThe Astrophysical Journal Supplement Series, 2009
- Inverse Comptonization by one-dimensional relativistic electronsThe Astrophysical Journal, 1987
- A computer simulation method for the calculation of equilibrium constants for the formation of physical clusters of molecules: Application to small water clustersThe Journal of Chemical Physics, 1982
- Relativistic fluid disks in orbit around Kerr black holesThe Astrophysical Journal, 1976