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

WP-CCC离子-原子碰撞代码的可移植GPU实现

Portable GPU implementation of the WP-CCC ion-atom collisions code

I. B. Abdurakhmanov, N. W. Antonio, M. Cytowski, A. S. Kadyrov

AI总结:

本研究将WP-CCC离子-原子碰撞代码移植到NVIDIA和AMD GPU上,通过OpenACC计算矩阵元、调用对应GPU加速LAPACK库处理矩阵运算,提升了性能与能效,为复杂碰撞过程研究提供了可能。

摘要:

我们介绍了将波包收敛密耦(WP-CCC,wave-packet convergent-close-coupling)方法所用代码移植到NVIDIA V100和AMD MI250X GPU上运行的实践经验。WP-CCC方法是离子-原子碰撞物理领域用于描述弹性散射、靶激发和弹丸电子俘获等多种过程的方法,已在模拟质子或裸离子弹丸与各种原子、分子靶(尤其是可视为单电子或双电子系统的靶)的碰撞中展现出有效性,这类计算在计算原子物理、聚变等离子体建模以及癌症强子治疗中均有应用。该方法的主要计算成本在于求解一组新出现的耦合一阶微分方程,这需要在沿多条直线路径改变弹丸位置的同时实现标准Runge-Kutta方法。在每个弹丸位置都需要计算数百万个矩阵元,这一工作通过OpenACC编程模型完成。计算出这些矩阵元后,后续步骤包括矩阵求逆以及与另一矩阵相乘,为加快这些运算,我们采用了专门用于求解线性方程组的GPU加速LAPACK例程:对于AMD GPU,该例程可通过hipSOLVER库调用,对于NVIDIA GPU则可从cuSOLVER库获取。我们将纯CPU代码的可移植性、性能和能效与在AMD和NVIDIA GPU上运行的GPU加速版本进行了对比。GPU加速的WP-CCC代码的实现为探索涉及复杂弹丸和靶结构的更复杂碰撞过程开辟了道路,这类过程此前被认为是不可行的。

英文摘要:

We present our experience of porting the code used in the wave-packet convergent-close-coupling (WP-CCC) approach to run on NVIDIA V100 and AMD MI250X GPUs. The WP-CCC approach is a method used in the field of ion-atom collision physics to describe various processes such as elastic scattering, target excitation and electron-capture by the projectile. It has demonstrated its effectiveness in modelling collisions involving proton or bare ion projectiles with various atomic and molecular targets, especially those which can be considered as one or two-electron systems. Such calculations find their application in computational atomic physics as well as in the modelling of fusion plasmas and in hadron therapy for cancer treatment. The main computational cost of the method lies in the solution of an emerging set of coupled first-order differential equations. This involves implementing the standard Runge-Kutta method while varying the projectile position along multiple straight-line paths. At each projectile position several millions of matrix elements need to be calculated which is accomplished using the OpenACC programming model. Once these matrix elements are computed, the subsequent steps involve matrix inversion and multiplication with another matrix. To expedite these operations, a GPU-accelerated LAPACK routine, specialised for solving systems of linear equations, is employed. For AMD GPUs, this routine is accessible through the hipSOLVER library, while for NVIDIA GPUs, it can be obtained from the cuSOLVER library. The portability, performance and energy efficiency of the CPU-only code have been compared with the GPU-accelerated version running on AMD and NVIDIA GPUs. The implementation of GPU-accelerated WP-CCC code opens up avenues for exploring more sophisticated collision processes involving complex projectile and target structures, which were previously considered infeasible.

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

↑