arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.05440physics.comp-ph
收藏

将GPU可移植性引入Numba-JIT编译的蒙特卡罗粒子输运代码MC/DC

Enabling GPU Portability into the Numba-JITed Monte Carlo Particle Transport Code MC/DC

Joanna Piper Morgan, Braxton Cuneo, Ilham Variansyah, Kyle E. Niemeyer

AI总结:

本文介绍了蒙特卡罗中子输运代码MC/DC的GPU可移植性方案,通过Numba-JIT编译实现跨Nvidia和AMD GPU运行,并在多个基准测试中对比CPU取得了显著加速。

摘要:

Center for Exascale Monte Carlo Neutron Transport正在开发Monte Carlo / Dynamic Code (MC/DC),作为一个可移植的蒙特卡罗中子输运软件包,用于在基于CPU和GPU的高性能计算机上进行快速数值方法探索。在本文中,我们描述了MC/DC当前基于事件的GPU算法,以及我们用来从MC/DC的Python源码在Nvidia和AMD GPU上实现GPU可操作性的即时(JIT)编译方案。为了分析性能,我们在Nvidia Tesla V100 GPU、AMD MI250X GPU和AMD MI300A APU上对C5G7 k-特征值基准问题和连续能量无限栅元进行了运行时测试,并与双路Intel Xeon Sapphire Rapid CPU节点进行比较。我们发现,对于多群C5G7基准问题,在V100、MI250X和MI300A上分别比112个Intel Xeon CPU核心获得了15倍、0.7倍、12倍的加速。对于连续能量无限栅元基准,在V100、MI250X和MI300A上分别比相同的CPU节点获得了5倍、3倍、4倍的加速。

英文摘要:

The Center for Exascale Monte Carlo Neutron Transport is developing Monte Carlo / Dynamic Code (MC/DC) as a portable Monte Carlo neutron transport package for rapid numerical methods exploration on CPU- and GPU-based high-performance computers. In this paper, we describe MC/DC's current event-based GPU algorithm as well as the just-in-time (JIT) compilation scheme we use to enable GPU operability on Nvidia and AMD GPUs from MC/DC's Python source. To analyze performance, we conduct runtime tests of the C5G7 k-eigenvalue benchmark problem and a continuous-energy infinite pin cell on Nvidia Tesla V100 GPU, AMD MI250X GPU, and the AMD MI300A APU and make comparison to a dual-socket Intel Xeon Sapphire Rapid CPU node. We found that for the multi-group C5G7 benchmark problem, we respectively see a 15$\times$, 0.7$\times$, 12$\times$ speedup on a V100, MI250X, and MI300A over 112 Intel Xeon CPU cores. For the continuous-energy infinite pin-cell benchmark, we found speedups of 5$\times$, 3$\times$, 4$\times$ on a V100, MI250X, and MI300A, respectively, over the same CPU node.

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

↑