MPI+OpenMP Implementation of Resolution-of-the-Identity Hartree–Fock Method Exploiting Permutational Symmetry of Three-Center Electron Repulsion Integrals
DOI:
https://doi.org/10.14529/jsfi260105Keywords:
restricted Hartree–Fock method, resolution-of-the-identity, density fitting, three-center electron repulsion integrals, MPI, OpenMPAbstract
We report a high-performance implementation of the resolution-of-the-identity Hartree–Fock method that fully exploits the permutational symmetry of three-center electron repulsion integrals (ERIs). The present implementation adopts a hybrid MPI+OpenMP parallelization strategy. Two different algorithmic approaches (with and without the preliminary transformation of ERIs) are analyzed and compared. A custom data layout introduced previously is employed. Designed to efficiently leverage the permutational symmetry of ERIs, it minimizes not only inter-node communication but also local memory traffic. Other extensive low-level and algorithmic optimizations are proposed and discussed. Reasonable parallel scaling is demonstrated by performance benchmarks on a chlorophyll dimer (C55H72O5N4Mg)2 in an aqueous environment of 48 molecules (322 atoms overall, 3700 and 11896 functions in main and auxiliary basis sets, respectively). Peak speedups of 84× and 71× on 128 threads are achieved for the ERI calculation and the exchange matrix construction, respectively, within the algorithm involving the preliminary transformation.
References
Alexeev, Y., Kendall, R.A., Gordon, M.: The distributed data SCF. Computer Physics Communications 143(1), 69–82 (2002). https://doi.org/10.1016/S0010-4655(01)00439-8
AMD: AMD EPYCTM 9005 Proceessor Architecture Overview. https://docs.amd.com/v/u/en-US/58462_amd-epyc-9005-tg-architecture-overview (2025), accessed: 2026-02-15
Blackford, L.S., Demmel, J., Dongarra, J., et al.: An updated set of basic linear algebra subprograms (BLAS). ACM Transactions on Mathematical Software 28(2), 135–151 (2002). https://doi.org/10.1145/567806.567807
Bussy, A., Schütt, O., Hutter, J.: Sparse tensor based nuclear gradients for periodic Hartree-Fock and low-scaling correlated wave function methods in the CP2K software package: A massively parallel and GPU accelerated implementation. Journal of Chemical Physics 158(16), 164109 (2023). https://doi.org/10.1063/5.0144493
Bussy, A., Hutter, J.: Efficient periodic resolution-of-the-identity Hartree-Fock exchange method with k-point sampling and Gaussian basis sets. Journal of Chemical Physics 160(6), 064116 (2024). https://doi.org/10.1063/5.0189659
Calaminici, P., Domínguez-Soria, V.D., Geudtner, G., et al.: Parallelization of three-center electron repulsion integrals. Theoretical Chemistry Accounts 115(4), 221–226 (2005). https://doi.org/10.1007/s00214-005-0005-0
Dyczmons, V.: No N4-dependence in the calculation of large molecules. Theoretical Chemistry Accounts 28(3), 307–310 (1973). https://doi.org/10.1007/BF00533492
Echenique, P., Alonso, J.L.: A mathematical and computational review of Hartree–Fock SCF methods in quantum chemistry. Molecular Physics 105(23–24), 3057–3098 (2007). https://doi.org/10.1080/00268970701757875
Eichkorn, K., Treutler, O., Öhm, H., et a