在GPU上的PLUTO代码:将拉格朗日粒子方法卸载
The PLUTO Code on GPUs: Offloading Lagrangian Particle Methods
AI总结:
PLUTO代码在GPU上实现,通过OpenACC和MPI实现高效并行计算,提升模拟性能。
摘要:
PLUTO代码中的拉格朗日粒子(LP)模块提供了一种强大的模拟工具,用于预测由冲击加速粒子产生的非热辐射,这些粒子在大尺度相对磁化天体流中产生。LPs代表具有给定能量分布的相对粒子群,其分布通过求解相对宇宙射线输运方程来更新。该方法一致地包括了绝热膨胀、同步辐射和逆康普顿辐射的影响。由于此类系统的规模庞大,所产生的计算需求无止境,只有通过针对现代计算硬件如图形处理器(GPU)才能满足。在本工作中,我们提出了GPU兼容的C++重设计LP模块,通过使用OpenACC编程模型和信息传递接口库,能够针对单个商业GPU以及多节点(预)exascale计算设施。该代码已基准测试到28672个并行CPU核心和1024个并行GPU,显示出约(80-90)%的弱标度并行效率和良好的强标度能力。我们的结果表明,当使用128个完整的GPU节点(每个节点4个GPU)解决相同基准测试时,速度比使用相同数量的完整高端CPU节点(每个节点112个核心)快6倍。此外,我们通过将预测与两个测试案例的相应解析解进行比较,进行了代码验证。我们注意到,这项工作是更广泛项目的一部分,旨在开发gPLUTO,即其遗留版本的新型和修订的GPU兼容实现。
英文摘要:
The Lagrangian Particles (LP) module of the PLUTO code offers a powerful simulation tool to predict the non-thermal emission produced by shock accelerated particles in large-scale relativistic magnetized astrophysics flows. The LPs represent ensembles of relativistic particles with a given energy distribution which is updated by solving the relativistic cosmic ray transport equation. The approach consistently includes the effects of adiabatic expansion, synchrotron and inverse Compton emission. The large scale nature of such systems creates boundless computational demand which can only be satisfied by targeting modern computing hardware such as Graphic Processing Units (GPUs). In this work we presents the GPU-compatible C++ re-design of the LP module, that, by means of the programming model OpenACC and the Message Passing Interface library, is capable of targeting both single commercial GPUs as well as multi-node (pre-)exascale computing facilities. The code has been benchmarked up to 28672 parallel CPUs cores and 1024 parallel GPUs demonstrating $\sim(80-90)\%$ weak scaling parallel efficiency and good strong scaling capabilities. Our results demonstrated a speedup of $6$ times when solving that same benchmark test with 128 full GPU nodes (4GPUs per node) against the same amount of full high-end CPU nodes (112 cores per node). Furthermore, we conducted a code verification by comparing its prediction to corresponding analytical solutions for two test cases. We note that this work is part of broader project that aims at developing gPLUTO, the novel and revised GPU-ready implementation of its legacy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。