arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00041hep-latcs.DCcs.DS
收藏

利用GPU加速格点量子色动力学模拟

Accelerating Lattice QCD Simulations using GPUs

Tilmann Matthaei

AI总结:

本文研究如何利用GPU加速格点QCD模拟中内存受限的DDalphaAMG求解器,提出多元组存储方案优化GPU内存访问,在大型格点上Wilson-Dirac算子实现约3倍加速,并指出GPU加速需大规模问题才能超越CPU。

摘要:

在格点量子色动力学(QCD)模拟中,求解离散化的Dirac方程占执行时间的很大一部分。许多高性能计算(HPC)集群使用图形处理单元(GPU)来提供更多计算资源。我们的求解器程序DDalphaAMG此前无法充分利用GPU来加速其计算。将GPU用于DDalphaAMG是一项持续进行的开发工作,本文将介绍当前的一些进展。通过对我们开发过程的详细描述,本文将为使用GPU加速内存受限的CPU实现提供有价值的见解。我们开发了一种针对多个元组的存储方案,该方案允许在GPU上实现更高效的内存访问,因为可以从多个元组中同时读取相同索引处的元素。尽管如此,我们的离散Dirac算子实现仍然受限于内存带宽,并且我们仅在JUWELS集群的少数节点上对大型线性系统取得了改进。这些改进目前尚不能克服额外引入的开销。然而,Wilson-Dirac算子应用的结果显示,对于大格点规模可获得约3倍的加速。如果未来能够消除这些额外开销,GPU可以显著减少DDalphaAMG在大格点规模下的执行时间。我们还发现,此前一篇关于DDalphaAMG GPU加速的论文低估了实际取得的加速效果,因为该工作使用了小规模格点。这进一步表明,GPU通常需要大规模问题才能比CPU更快。

英文摘要:

Solving discretized versions of the Dirac equation represents a large share of execution time in lattice Quantum Chromodynamics (QCD) simulations. Many high-performance computing (HPC) clusters use graphics processing units (GPUs) to offer more computational resources. Our solver program, DDalphaAMG, previously was unable to fully take advantage of GPUs to accelerate its computations. Making use of GPUs for DDalphaAMG is an ongoing development, and we will present some current progress herein. Through a detailed description of our development, this thesis should offer valuable insights into using GPUs to accelerate a memory-bound CPU implementation. We developed a storage scheme for multiple tuples, which allows much more efficient memory access on GPUs, given that the element at the same index is read from multiple tuples simultaneously. Still, our implementation of a discrete Dirac operator is memory-bound, and we only achieved improvements for large linear systems on few nodes at the JUWELS cluster. These improvements do not currently overcome additional introduced overheads. However, the results for the application of the Wilson-Dirac operator show a speedup of around 3 for large lattices. If the additional overheads can be eliminated in the future, GPUs could reduce the DDalphaAMG execution time significantly for large lattices. We also found that a previous publication on the GPU acceleration of DDalphaAMG, underrepresented the achieved speedup, because small lattices were used. This further highlights that GPUs often require large-scale problems to solve in order to be faster than CPUs

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

↑