TRANSMISSION // 2611.36062v1

ForSCF speeds up a costly step in quantum chemistry

Source published

A portable CPU/GPU program accelerates Fock-matrix calculations in selected benchmarks, but its advantage varies with the system and basis set.

AI-generated conceptual illustration for ForSCF speeds up a costly step in quantum chemistry
AI-generated conceptual illustration; not documentary evidence.

Many quantum-chemistry calculations repeatedly rebuild a mathematical object called the Fock matrix. ForSCF aims to speed up that step with one codebase for GPUs and multicore CPUs.

In many quantum-chemistry calculations, computers repeatedly estimate how electrons interact inside a molecule. A major part of this work is building the Fock matrix, a mathematical summary used in Hartree–Fock calculations and in the self-consistent-field (SCF) step of other methods. Each rebuild can involve many electron-repulsion integrals, making the task computationally demanding.

A software package called ForSCF targets this bottleneck. Its authors ask whether two previously developed strategies for calculating those integrals can be adapted to a directive-based programming model: a way of guiding compilers to run code on different kinds of hardware. The aim is to use the same Fortran source for multicore CPUs and GPUs rather than maintain separate hardware-specific versions.

Two strategies, combined where useful

The researchers implemented two integral schemes, opt-UM and opt-Brc, based respectively on the McMurchie–Davidson and Head-Gordon–Pople approaches. Both use recurrence relations to generate integrals needed for the Fock matrix. ForSCF adapts their workload and memory use to the programming model and to the cache and register resources of the NVIDIA V100 GPUs used in the main tests.

The team also introduced a mixed mode: opt-UM constructs the Coulomb part of the matrix, while opt-Brc constructs the exchange part. Since these parts have different computational characteristics, using a different method for each may be more efficient than applying one scheme throughout. ForSCF can run its own SCF calculations or supply Fock builds to another program; the paper demonstrates the latter with NWChem.

For a fair speed comparison, the researchers calibrated each program’s screening settings. Screening skips contributions expected to be small, but equal numerical thresholds do not necessarily yield equal accuracy across programs. The team measured an energy-related error for Fock builds on fixed molecular densities, using a target below 10⁻⁵ Hartree to select settings. This was a calibration target, not a guarantee that every build met it: the paper reports exceptions, including ForSCF’s opt-UM scheme for the two largest water clusters with cc-pVTZ. The researchers timed both individual Fock builds and complete SCF calculations.

The benchmarks used polyglycine chains and water clusters with several basis sets, which represent molecular orbitals with different levels of detail. Tests ran on a node with four V100 GPUs, an AMD processor with 32 cores and 64 hardware threads, and 30 GB of host memory. Main single-GPU comparisons used one V100. CPU configurations varied: ForSCF and PySCF used 64 OpenMP threads, NWChem used 64 MPI ranks, and ORCA used 32 MPI processes. These conditions matter: the results describe particular workloads, settings and hardware, not every molecule or computer.

Faster in many tests, not all

At matched accuracy, ForSCF’s fastest scheme had average Fock-build speedups over GPU4PySCF of 2.4–3.2 times with STO-3G and Pople basis sets, and 1.2–1.6 times with cc-pVDZ and cc-pVTZ. These are geometric means across completed shared system-size series, not gains achieved in every individual case. GPU4PySCF built matrices faster for larger water clusters with the latter two basis sets.

Complete SCF calculations include work beyond Fock builds, such as matrix diagonalization and data preparation, so end-to-end results differ. For example, ForSCF’s mixed mode was faster for the largest shared polyglycine cases reported with cc-pVDZ and cc-pVTZ, while GPU4PySCF was faster for the largest shared water-cluster cases with those basis sets.

The authors also tested ForSCF as NWChem’s Fock-build engine. In the comparison, native NWChem used 64 MPI ranks; NWChem paired with ForSCF used 32 ranks and one V100. For the largest cases that native NWChem completed within the study’s time and memory limits, the GPU-assisted direct SCF calculations were 13–35 times faster. This result applies to that tested setup, not to all NWChem calculations or other programs.

What remains uncertain

This is a software performance study, not a demonstration of new chemical predictions. Its evidence comes from selected structures, basis sets, accuracy settings and hardware. ForSCF did not always win. The authors report less favorable scaling for its Coulomb build, weaker performance on larger water clusters with correlation-consistent basis sets, and host-memory limits. In the multi-GPU tests, each GPU held a full copy of screening and pair data, so adding GPUs did not increase the largest system that fit.

Although the code is designed to build for NVIDIA and AMD GPUs, the authors say the AMD GPU version has not yet been validated. They list further work including analytic gradients and support for more host programs. The paper says the source code will be released with the final journal publication; availability should not be assumed from this preprint alone.

The reported gains make ForSCF a promising approach to a specific computational bottleneck. Its practical value depends on the molecule, basis set, hardware and the rest of the calculation. This account is based on an arXiv preprint, which may not have undergone peer review.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • PyCC is a research toolkit for quantum chemistry

    Shared method: Both papers involve restricted Hartree–Fock (RHF): ForSCF reports RHF calculations, while PyCC supports RHF references. Their roles differ—ForSCF builds Fock matrices and PyCC obtains its reference wavefunction from Psi4—so this does not establish direct software integration.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.36062v1 — Original paper

      Excerpt reference: static/papers/2611.36062v1.md:15-94
      Basis: Paper text
      Source file SHA-256: dcb1dd3608058e90e6b987e2cd78a6b938ce90026d1893da582c1ac624018bae

    • 2610.04107v2 — Original paper

      Excerpt reference: static/papers/2610.04107v2.md:65-131
      Basis: Paper text
      Source file SHA-256: 81db7443cf0d1aba1fc9f5b6f2ddfaeb70de328aeaa06f1926420113d80b338b

    • 2610.04107v2 — Original paper

      Excerpt reference: static/papers/2610.04107v2.md:272-330
      Basis: Paper text
      Source file SHA-256: 81db7443cf0d1aba1fc9f5b6f2ddfaeb70de328aeaa06f1926420113d80b338b

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.