arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.19286cs.CEcs.DC
收藏

张量核心上的质量矩阵组装用于隐式粒子-网格方法

Mass Matrix Assembly on Tensor Cores for Implicit Particle-In-Cell Methods

KTH Royal Institute of Technology(瑞典皇家理工学院)

Luca Pennati, Stefano Markidis

AI总结:

本文提出通过张量核心高效组装质量矩阵,提升隐式粒子-网格方法的性能,实现3倍加速和15%的运行时间减少。

摘要:

矩阵乘法累加(MMA)单元,或称张量核心,如今广泛应用于现代计算架构中。然而,其在粒子-网格操作中的应用仍有限。在隐式粒子方法中,质量矩阵组装是一种以减少为主的内核,在粒子支撑区域中累积加权外积。本文证明该操作可以精确地,逐单元地表示为一系列与硬件MMA瓷砖匹配的矩阵乘积。该方法对插值阶数和硬件平台具有通用性,并适用于标量质量矩阵以及隐式能量守恒半隐式方法(ECSIM)中出现的张量块质量矩阵。我们引入了粒子分组和支撑组分解,用于高阶形状函数,其 stencil 超过单个单元。我们将其专门应用于一阶和二阶B-样条插值,并在NVIDIA张量核心上实现。所得到的内核在优化传统实现方面达到3倍加速,并将端到端ECSIM运行时间减少了15%。

英文摘要:

Matrix-multiply-accumulate (MMA) units, or tensor cores, are now widespread across modern computing architectures. Yet, their use for particle-grid operators remains limited. In implicit particle methods, mass-matrix assembly is a reduction-dominated kernel in which weighted outer products of interpolation weights are accumulated over particle support. We show that this operation can be reformulated exactly, cell by cell, as a sequence of matrix products matched to hardware MMA tiles. The formulation is general with respect to interpolation order and hardware platform, and applies to both scalar mass matrices and the tensorial block mass matrix arising in implicit in the Energy-Conserving Semi-Implicit Method (ECSIM) for Particle-in-Cell simulations. We introduce particle batching and a support-group decomposition for higher-order shape functions whose stencil extends beyond a single cell, specialize the method to first- and second-order B-spline interpolation, and implement it on NVIDIA tensor cores. The resulting kernels achieve up to 3x over optimized conventional implementations and reduce end-to-end ECSIM runtime by 15%.

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

↑