Performant and Portable Monte Carlo Neutron Transport via Numba
- 14 March 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in Computing in Science & Engineering
- Vol. 27 (1) , 57-65
Abstract
Finding a software engineering approach that allows for portability, rapid development, and open collaboration for high-performance computing on GPUs and CPUs is a challenge. We implement a portability scheme using the Numba compiler for Python in Monte Carlo / Dynamic Code (MC/DC), a new neutron transport application for rapidly developing Monte Carlo. Using this scheme, we have built MC/DC as an application that can run as a pure Python, compiled CPU, or compiled GPU solver. In GPU mode, we use Numba paired with an asynchronous GPU scheduler called Harmonize to increase GPU performance. We present performance results (including weak scaling up to 256 nodes) for a time-dependent problem on both CPUs and GPUs and compare favorably to a production C++ code.Keywords
All Related Versions
Funding Information
- U.S. Department of Energy (DE-NA003967)
This publication has 9 references indexed in Scilit:
- Monte Carlo / Dynamic Code (MC/DC): An accelerated Python package for fully transient neutron transport and rapid methods developmentJournal of Open Source Software, 2024
- Divergence Reduction in Monte Carlo Neutron Transport with On-GPU Asynchronous SchedulingACM Transactions on Modeling and Computer Simulation, 2024
- PyExaFMM: An Exercise in Designing High-Performance Software With Python and NumbaComputing in Science & Engineering, 2022
- mpi4py: Status Update After 12 Years of DevelopmentComputing in Science & Engineering, 2021
- Python at Petascale With PyFR or: How I Learned to Stop Worrying and Love the SnakeComputing in Science & Engineering, 2021
- Continuous-energy Monte Carlo neutron transport on GPUs in the Shift codeAnnals of Nuclear Energy, 2019
- Numba2015
- OpenMC: A state-of-the-art Monte Carlo code for research and developmentAnnals of Nuclear Energy, 2015
- 3D radiation transport benchmark problems and results for simple geometries with void regionProgress in Nuclear Energy, 2001