ForSCF: Portable Multicore and Multi-GPU Fock Builds for Electronic Structure Calculations
Miguel Alonso Mediavilla, Mark Nicholas Jones, Stephan P. A. Sauer
Abstract
The construction of the Fock matrix from electron repulsion integrals dominates the cost of Hartree--Fock calculations and limits the performance of the self-consistent field (SCF) step of density functional and post-Hartree--Fock methods. This work discusses opt-UM and opt-Brc, two integral schemes of Palethorpe et al.\ for graphics processing units (GPUs), based on the McMurchie--Davidson and Head-Gordon--Pople algorithms and defined from recurrence graphs. Whereas the original implementation uses CUDA, the schemes are expressed here in Fortran with compiler directives, so that one source builds with OpenACC for NVIDIA and AMD GPUs and with OpenMP for multicore CPUs. They are adapted to the directive model and to GPUs with smaller caches, and a mixed scheme is introduced that builds the Coulomb matrix with opt-UM and the exchange matrix with opt-Brc. The resulting code, ForSCF, can also serve as the Fock-build engine of other quantum chemistry programs. At a matched per-build error below , for polyglycine chains and water clusters on one V100 GPU, ForSCF builds the Fock matrix on average 2.4-3.3 times as fast as GPU4PySCF with STO-3G and the Pople basis sets and 1.2-1-6 times as fast with cc-pVDZ and cc-pVTZ, although GPU4PySCF is faster for the larger water clusters with the latter two. At the largest systems that NWChem completed, ForSCF on one GPU converges RHF calculations 22-207 times as fast as NWChem, PySCF and ORCA on all 32 CPU cores of the same node, and as the Fock-build engine of NWChem it makes direct SCF calculations 13-35 times faster.
Create a lesson
Metadata
- Categories
- physics.comp-ph, physics.chem-ph, quant-ph
- Comments
- 48 pages, 14 figures, 9 tables
Related papers
Performance-portable spectral difference simulation of multi-species reacting flows on CPUs and GPUs
Shared title terminologyphysics.comp-phRomaric Simo Tamou, Thomas Marchal, Carlos Montilla et al.
Structure-Preserving Full Approximation Scheme for Real-Space Hartree-Fock Equations
Shared title terminologyphysics.comp-phYuejia Zhang
Self-consistent calculation of exciton binding energy and radiative decay time in CdSe/ZnTe type-II core/shell quantum dots
Shared title terminologyphysics.comp-phM. Kria, A. Radu, E. Feddi
Knowledge Transfer from a Universal Interatomic Potential to a Universal Electron Density Model
Shared title terminologyphysics.comp-phXin Chen, Xinyan Zhang, Duo Wang
Robustness and Performance of Linear Solvers for Cardiovascular Fluid-Structure Interaction Simulations
Shared title terminologyphysics.comp-phZheyi Chu, Chi Zhu
mlGW: a machine-learning framework for accurate and scalable GW quasiparticle calculations
Shared title terminologyphysics.comp-phFan Zhang, Weiwei Gao, Jijun Zhao et al.