A hybrid CPU/GPU method for Hartree–Fock self-consistent-field calculation
Open Access
- 8 September 2023
- journal article
- research article
- Published by AIP Publishing in The Journal of Chemical Physics
- Vol. 159 (10)
Abstract
The calculation of two-electron repulsion integrals (ERIs) is a crucial aspect of Hartree–Fock calculations. In computing the ERIs of varying angular momentum, both the central processing unit (CPU) and the graphics processing unit (GPU) have their respective advantages. To accelerate the ERI evaluation and Fock matrix generation, a hybrid CPU/GPU method has been proposed to maximize the computational power of both CPU and GPU while overlapping the CPU and GPU computations. This method employs a task queue where each task corresponds to ERIs with the same angular momentum. The queue begins with ERIs of low angular momentum, which are computationally efficient on GPUs, and ends with ERIs of high angular momentum, which are better suited for CPU computation. CPUs and GPUs dynamically grab and complete tasks from the start and end of the queue using OpenMP dynamic scheduling until all tasks are finished. The hybrid CPU/GPU computation offers the advantage of enabling calculations with arbitrary angular momentum. Test calculations showed that the hybrid CPU/GPU algorithm is more efficient than “GPU-only” when using a single GPU. However, as more GPUs are involved, the advantage diminishes or disappears. The scaling exponents of the hybrid method were slightly higher than “GPU-only,” but the pre-exponent factor was significantly lower, making the hybrid method more effective overall.Keywords
Funding Information
- National Natural Science Foundation of China (21973108, 21921004)
This publication has 90 references indexed in Scilit:
- The analysis of a plane wave pseudopotential density functional theory code on a GPU machineComputer Physics Communications, 2013
- Optimizing tensor contraction expressions for hybrid CPU-GPU executionCluster Computing, 2011
- Coupled Cluster Theory on Graphics Processing Units I. The Coupled Cluster Doubles MethodJournal of Chemical Theory and Computation, 2011
- GPU-Based Implementations of the Noniterative Regularized-CCSD(T) Corrections: Applications to Strongly Correlated SystemsJournal of Chemical Theory and Computation, 2011
- Accelerating self-consistent field convergence with the augmented Roothaan–Hall energy functionThe Journal of Chemical Physics, 2010
- Density functional theory calculation on many-cores hybrid central processing unit-graphic processing unit architecturesThe Journal of Chemical Physics, 2009
- A quantitative study of the scaling properties of the Hartree–Fock methodThe Journal of Chemical Physics, 1995
- Exact and approximate solutions to the one‐center McMurchie–Davidson tree‐search problemInternational Journal of Quantum Chemistry, 1991
- A method for two-electron Gaussian integral and integral derivative evaluation using recurrence relationsThe Journal of Chemical Physics, 1988
- Computer‐generated formulas for overlap integrals of slater‐type orbitalsInternational Journal of Quantum Chemistry, 1980