arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.13198astro-ph.HE
收藏

GPUmonty:一种基于GPU的相对论蒙特卡洛辐射传输代码

$\texttt{GPUmonty}$: A GPU-accelerated relativistic Monte Carlo radiative transfer code

Instituto de Astronomia, Geofísica e Ciências Atmosféricas, Universidade de São Paulo(圣保罗大学天文、地球物理与大气科学研究所);Department of Physics, University of Illinois(伊利诺伊大学物理系)

Pedro Naethe Motta, Rodrigo Nemmen, Abhishek V. Joshi

AI总结:

本文介绍了一种基于GPU加速的相对论蒙特卡洛辐射传输代码GPUmonty,通过将计算最昂贵的阶段转移至GPU,实现了约12倍的加速,适用于超大质量黑洞视界尺度观测的参数空间调查和光谱建模。

摘要:

我们介绍了GPUmonty,一种基于CUDA/C的蒙特卡洛辐射传输代码,利用图形处理单元(GPU)加速。GPUmonty源自CPU版本的grmonty,将最计算密集的阶段——超光子生成、采样、跟踪和散射——转移到GPU。与grmonty处理光子顺序不同,GPUmonty利用现代GPU的单指令多线程(SIMT)执行模型,处理大量超光子。基准测试显示,在单个GPU上,相对于原始CPU实现,加速约12倍,运行时间主要受限于寄存器压力而非计算或内存带宽饱和。通过分析测试光学薄同步辐射球和与igrmonty的比较,验证了实现。相对误差保持在百分比以下,收敛性与预期的N_s^{-1/2}蒙特卡洛缩放一致。通过显著降低计算成本,GPUmonty使超大质量黑洞视界尺度观测的参数空间调查和更快的光谱建模成为可能。GPUmonty在GNU通用公共许可证下公开可用。

英文摘要:

We introduce $\texttt{GPUmonty}$, a CUDA/C-based Monte Carlo radiative transfer code accelerated using graphics processing units (GPUs). $\texttt{GPUmonty}$ derives from the CPU-based code $\texttt{grmonty}$ and offloads the most computationally expensive stages of the calculation -- superphoton generation, sampling, tracking, and scattering -- to the GPU. Whereas $\texttt{grmonty}$ handles photons sequentially, $\texttt{GPUmonty}$ processes large numbers of superphotons concurrently, leveraging the single-instruction, multiple-thread (SIMT) execution model of modern GPUs. Benchmarks demonstrate a speedup of about $12\times$ 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 $\texttt{igrmonty}$ for scattering synchrotron sphere and GRMHD simulation data. Relative errors remain below a percent level and convergence is consistent with the expected $N_{\rm 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. $\texttt{GPUmonty}$ is publicly available under the GNU General Public License.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑