面向SIMD CPU的半数值交换的驱动数据优化
Vectorized and Symbolically Optimized Seminumerical Exchange for Large-Scale Quantum Chemistry
AI总结:
该研究针对SIMD CPU优化了基于sn-LinK方法的半数值交换算法SNK,在Q-Chem中实现,经测试对100-500原子体系速度提升1-2个数量级,超50-100原子时性能优于occ-RI-K。
摘要:
我们提出了一种基于sn-LinK方法[Laqua等人,《化学理论与计算杂志》16,1456(2020)]的半数值交换算法(SNK),针对具备单指令多数据向量指令的现代多核中央处理器进行了优化,并报告了其在Q-Chem量子化学程序中的实现。文中给出了Boys函数和3中心1电子(3c1e)积分核的向量化与内存管理策略。在3c1e积分计算中,我们做了几项新的考量:Head-Gordon-Pople水平递推关系、同中心优化以及多壳层优化,所有这些均通过SymPy符号代数库以符号方式实现,并借助公共子表达式消除(CSE)优化技术导出为优化后的C++代码。通过严格的计时基准测试,我们开发了一种选择最优积分核的通用方案。将所得实现与传统4c2e交换在多个体系和基组上进行测试,结果显示,对于实际相关规模的体系(100-500个原子,2000-10000个基函数),其速度提升达1-2个数量级。对于较小的分子,我们还与更高效的occ-RI-K方法进行了对比,结果显示盈亏平衡点约在50-100个原子,超过该点后,SNK因具备优越的亚二次(介于线性与二次之间)时间复杂度以及几乎可忽略的内存需求,性能显著优于后者。
英文摘要:
We present a seminumerical exchange algorithm (SNK) based on the sn-LinK method [Laqua et al., J. Chem. Theory Comput. 16, 1456 (2020)], optimized for modern multi-core central processing units with single instruction multiple data vector instructions and report its implementation into the Q-Chem quantum chemistry program. Vectorization and memory management strategies for the Boys function and 3-center-1-electron (3c1e) integral kernels are given. Several new considerations are made in the computation of the 3c1e integrals: the Head-Gordon Pople horizontal recurrence relations, same-center optimizations, and multishell optimizations, all implemented symbolically employing the SymPy symbolic algebra library and exported as optimized C++ code leveraging common-sub-expression elimination (CSE) optimization techniques. A general scheme for choosing optimal integral kernels is developed through rigorous timing benchmarks. The resulting implementation is tested against traditional 4c2e exchange for several systems and basis sets, showing 1-2 orders of magnitude speedups for systems of practically relevant sizes (100-500 atoms, 2000-10000 basis functions). For smaller molecules, comparisons are also made against the more efficient occ-RI-K method showing a break-even point around 50-100 atoms beyond which SNK dramatically outperforms due to its superior sub-quadratic (between linear and quadratic) time complexity as well as its effectively negligible memory demand.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。