基于 Numba 在 MCDC 中实现性能可移植的 Monte Carlo 中子输运
Performance Portable Monte Carlo Neutron Transport in MCDC via Numba
AI总结:
针对MC/DC中子输运应用,提出基于Numba编译器的跨平台性能可移植方案,使程序可灵活运行于纯Python、编译型CPU或GPU模式,并结合异步调度器Harmonize优化GPU性能,在CPU和GPU上均取得优异扩展性。
摘要:
寻找一种支持可移植性、快速开发和开放协作的软件工程方法,以在 GPU 和 CPU 上进行高性能计算是一项挑战。我们在 Monte Carlo / Dynamic Code (MC/DC) 中使用 Numba 编译器为 Python 实现了一种可移植性方案。MC/DC 是一款用于快速开发 Monte Carlo 的新型中子输运应用程序。利用该方案,我们将 MC/DC 构建为一个可作为纯 Python、编译型 CPU 或编译型 GPU 求解器运行的应用程序。在 GPU 模式下,我们将 Numba 与名为 Harmonize 的异步 GPU 调度器配合使用以提升 GPU 性能。我们展示了一个时间相关问题在 CPU 和 GPU 上的性能结果(包括高达 256 个节点的弱扩展性),并与一款生产级 C++ 代码相比表现出色。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。