arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.20912physics.chem-ph
收藏

高效耦合簇Python框架用于下一代GPU:CuPy和PyTorch在Hopper和Grace Hopper架构上的比较研究

Efficient Coupled-Cluster Python Frameworks for Next-Generation GPUs: A Comparative Study of CuPy and PyTorch on the Hopper and Grace Hopper Architecture

Nicolaus Copernicus University in Toruń(托伦哥白尼大学);Jagiellonian University(雅盖隆大学);Academic Computer Centre Cyfronet AGH(AGH学术计算中心Cyfronet);NVIDIA Helsinki Oy(英伟达赫尔辛基有限公司)

Antonina Dobrowolska, Julian Świerczyński, Paweł Tecmer, Emil Sujkowski, Somayeh Ahmadkhani, Grzegorz Mazur, Klemens Noga, Jeff Hammond, Katharina Boguslawski

AI总结:

本文比较了CuPy和PyTorch在Hopper和Grace Hopper架构上的性能,通过优化粒子-粒子阶梯瓶颈收缩和通用张量收缩协议,提升了耦合簇计算效率,实现了10倍加速。

摘要:

本文介绍了一种新的批量算法,用于在GPU的VRAM上有效处理耦合簇单双(CCSD)实现中的大规模收缩问题,从而提高性能。我们通过在单个NVIDIA Hopper(H100)和Grace Hopper(GH200)架构上对CuPy和PyTorch库进行基准测试,优化了CCSD中的粒子-粒子阶梯瓶颈收缩,并采用通用张量收缩协议实现几乎全部张量收缩在GPU上进行。我们对各种分子系统和基组大小进行了基准测试,发现PyTorch在H100上比CuPy快约20%,在GH200架构上两者表现相似。与我们最初的GPU实现相比,我们实现了10倍的加速。在分子CCSD计算中,使用Cholesky分解的电子排斥积分相比原始GPU-CPU混合实现,单次CCSD迭代的速度提升在3到16之间。

英文摘要:

In this work, we introduce new batching algorithms to effectively handle large contractions encountered in coupled-cluster singles and doubles (CCSD) implementations in Python on the Video Random Access Memory (VRAM) of graphical processing units (GPUs), thereby improving performance. Specifically, we benchmark the performance of the CuPy and PyTorch libraries on a single NVIDIA Hopper (H100) and the Grace Hopper (GH200) architectures. We begin by optimizing the particle-particle ladder bottleneck contraction in CCSD using an asymmetric and dynamic splitting recipe, and then move toward a generic tensor contraction protocol that enables tensor contractions to be performed almost exclusively on GPUs. We benchmark our new, fully generic GPU-accelerated coupled-cluster implementations for various molecular systems and basis-set sizes, using both the CuPy and PyTorch libraries. While PyTorch outperforms CuPy on H100 by approximately 20\%, both perform similarly on the GH200 architecture. Compared to our initial GPU implementation [J. Chem. Theory Comput. 2024, 20, 3, 1130--1142], we achieve a 10-fold speedup. In molecular CCSD calculations, we report additional speedups between 3 and 16 for a single CCSD iteration using Cholesky-decomposed electron repulsion integrals compared to our original GPU-CPU hybrid implementation.

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

↑