Enhancing GPU-acceleration in the Python-based Simulations of Chemistry Framework
Abstract: We describe our contribution as industrial stakeholders to the existing open-source GPU4PySCF project (https: //github.com/pyscf/gpu4pyscf), a GPU-accelerated Python quantum chemistry package. We have integrated GPU acceleration into other PySCF functionality including Density Functional Theory (DFT), geometry optimization, frequency analysis, solvent models, and density fitting technique. Through these contributions, GPU4PySCF v1.0 can now be regarded as a fully functional and industrially relevant platform which we demonstrate in this work through a range of tests. When performing DFT calculations on modern GPU platforms, GPU4PySCF delivers 30 times speedup over a 32-core CPU node, resulting in approximately 90% cost savings for most DFT tasks. The performance advantages and productivity improvements have been found in multiple industrial applications, such as generating potential energy surfaces, analyzing molecular properties, calculating solvation free energy, identifying chemical reactions in lithium-ion batteries, and accelerating neural-network methods. With the improved design that makes it easy to integrate with the Python and PySCF ecosystem, GPU4PySCF is natural choice that we can now recommend for many industrial quantum chemistry applications.
- Quantum chemistry on graphical processing units. 1. strategies for two-electron integral evaluation. Journal of Chemical Theory and Computation, 4(2):222–231, 2008. PMID: 26620654.
- Koji Yasuda. Two-electron integral evaluation on the graphics processor unit. Journal of Computational Chemistry, 29(3):334–342, 2008.
- Recent developments in the general atomic and molecular electronic structure system. The Journal of Chemical Physics, 152(15):154102, April 2020.
- The general atomic and molecular electronic structure system (gamess): Novel methods on novel architectures. Journal of Chemical Theory and Computation, 19(20):7031–7055, 2023. PMID: 37793073.
- Software for the frontiers of quantum chemistry: An overview of developments in the q-chem 5 package. The Journal of chemical physics, 155(8), 2021.
- PSI4 1.4: Open-source software for high-throughput quantum chemistry. The Journal of Chemical Physics, 152(18):184108, 05 2020.
- The brush algorithm for two-electron integrals on gpu. Chemical Physics Letters, 622:92–98, 2015.
- Calculation of quantum chemical two-electron integrals by applying compiler technology on gpu. Journal of Chemical Theory and Computation, 15(10):5319–5331, 2019. PMID: 31503475.
- TeraChem: Accelerating electronic structure and ab initio molecular dynamics with graphical processing units. The Journal of Chemical Physics, 152(22):224110, 06 2020.
- Terachem cloud: A high-performance computing service for scalable distributed gpu-accelerated electronic structure calculations. Journal of Chemical Information and Modeling, 60(4):2126–2137, 2020. PMID: 32267693.
- Quantum mechanics/molecular mechanics simulations on nvidia and amd graphics processing units. Journal of Chemical Information and Modeling, 63(3):711–717, 2023. PMID: 36720086.
- Yipu Miao and Kenneth M. Jr. Merz. Acceleration of high angular momentum electron repulsion integrals and integral derivatives on graphics processing units. Journal of Chemical Theory and Computation, 11(4):1449–1462, 2015. PMID: 26574356.
- Harnessing the power of multi-gpu acceleration into the quantum interaction computational kernel program. Journal of Chemical Theory and Computation, 17(7):3955–3966, 2021. PMID: 34062061.
- New basis set exchange: An open, up-to-date resource for the molecular sciences community. Journal of Chemical Information and Modeling, 59(11):4814–4820, 2019. PMID: 31600445.
- Recent developments in libxc—a comprehensive library of functionals for density functional theory. SoftwareX, 7:1–5, 2018.
- Consistent structures and interactions by density functional theory with small atomic orbital basis sets. The Journal of Chemical Physics, 143(5):054107, 08 2015.
- ω𝜔\omegaitalic_ω B97X-3c: A composite range-separated hybrid DFT method with a molecule-optimized polarized valence double-ζ𝜁\zetaitalic_ζ basis set. The Journal of Chemical Physics, 158(1):014103, 01 2023.
- r2SCAN-3c: A “Swiss army knife” composite electronic-structure method. The Journal of Chemical Physics, 154(6):064103, 02 2021.
- Recent developments in the PySCF program package. The Journal of Chemical Physics, 153(2):024109, 07 2020.
- Geometry optimization speedup through a geodesic approach to internal coordinates. The Journal of Chemical Physics, 155(9):094105, 09 2021.
- Comprehensive assessment of gfn tight-binding and composite density functional theory methods for calculating gas-phase infrared spectra. Journal of Chemical Theory and Computation, 16(11):7044–7060, 2020. PMID: 33054183.
- A J matrix engine for density functional theory calculations. The Journal of Chemical Physics, 104(7):2620–2629, 02 1996.
- Energies, structures, and electronic properties of molecules in solution with the c-pcm solvation model. Journal of Computational Chemistry, 24(6):669–681, 2003.
- Quantum calculation of molecular energies and energy gradients in solution by a conductor solvent model. The Journal of Physical Chemistry A, 102(11):1995–2001, 1998.
- A new integral equation formalism for the polarizable continuum model: Theoretical background and applications to isotropic and anisotropic dielectrics. The Journal of Chemical Physics, 107(8):3032–3041, 08 1997.
- Universal solvation model based on solute electron density and on a continuum model of the solvent defined by the bulk dielectric constant and atomic surface tensions. The Journal of Physical Chemistry B, 113(18):6378–6396, 2009. PMID: 19366259.
- Development and benchmarking of open force field 2.0.0: The sage small molecule force field. Journal of Chemical Theory and Computation, May 2023.
- Open force field bespokefit: Automating bespoke torsion parametrization at scale. Journal of Chemical Information and Modeling, 62(22):5622–5633, November 2022.
- Driving torsion scans with wavefront propagation. The Journal of Chemical Physics, 152(24):244116, June 2020.
- Development and benchmarking of open force field v1.0.0—the parsley small-molecule force field. Journal of Chemical Theory and Computation, 17(10):6262–6280, October 2021.
- Opls3e: Extending force field coverage for drug-like small molecules. Journal of Chemical Theory and Computation, 15(3):1863–1874, March 2019.
- Development and testing of a general amber force field. Journal of Computational Chemistry, 25(9):1157–1174, 2004.
- Development and comprehensive benchmark of a high-quality amber-consistent small molecule force field with broad chemical space coverage for molecular modeling and free energy calculation. Journal of Chemical Theory and Computation, December 2023.
- The opls [optimized potentials for liquid simulations] potential functions for proteins, energy minimizations for crystals of cyclic peptides and crambin. Journal of the American Chemical Society, 110(6):1657–1666, 1988.
- Huai Sun. Compass: an ab initio force-field optimized for condensed-phase applications overview with details on alkane and benzene compounds. The Journal of Physical Chemistry B, 102(38):7338–7364, 1998.
- Application of hydrogen bonding calculations in property based drug design. Drug Discovery Today, 7(20):1056–1063, 2002.
- Predicting the strength of stacking interactions between heterocycles and aromatic amino acid side chains. Journal of the American Chemical Society, 141(28):11027–11035, 2019.
- Opls4: Improving force field accuracy on challenging regimes of chemical space. Journal of chemical theory and computation, 17(7):4291–4300, 2021.
- Bethany Halford. The path to paxlovid, 2022.
- State of the art in counterpoise theory. Chemical Reviews, 94(7):1873–1885, 1994.
- Roman M Balabin. Enthalpy difference between conformations of normal alkanes: Intramolecular basis set superposition error (bsse) in the case of n-butane and n-hexane. The Journal of chemical physics, 129(16), 2008.
- Non-covalent interactions: theory and experiment, volume 2. Royal Society of Chemistry, 2010.
- Superconcentrated electrolytes for a high-voltage lithium-ion battery. Nat. Commun., 7(1):12032, 2016.
- High-voltage lithium-metal batteries enabled by localized high-concentration electrolytes. Adv Mater, 30(21):1706102, 2018.
- Molecular design for electrolyte solvents enabling energy-dense and long-cycling lithium metal batteries. Nat. Energy, 5(7):526–533, 2020.
- A new class of ionically conducting fluorinated ether electrolytes with high electrochemical stability. J. Am. Chem. Soc., 142(16):7393–7403, 2020.
- Liquid structure with nano-heterogeneity promotes cationic transport in concentrated electrolytes. ACS nano, 11(10):10462–10471, 2017.
- Solvation sheath of li+ in nonaqueous electrolytes and its implication of graphite/electrolyte interface chemistry. J. Phys. Chem. C, 111(20):7411–7421, 2007.
- Uncharted waters: super-concentrated electrolytes. Joule, 4(1):69–100, 2020.
- Advances and issues in developing salt-concentrated battery electrolytes. Nature Energy, 4(4):269–280, 2019.
- Cation- solvent, cation- anion, and solvent- solvent interactions with electrolyte solvation in lithium batteries. Batter. Supercaps, 2(2):128–131, 2019.
- Li Zhang and Yuhui Chen. Electrolyte solvation structure as a stabilization mechanism for electrodes. Energy Mater, 1(1):100004, 2021.
- Mechanism of li ion desolvation at the interface of graphite electrode and glyme–li salt solvate ionic liquids. J. Phys. Chem. C, 118(35):20246–20256, 2014.
- Determining atom-centered monopoles from molecular electrostatic potentials. the need for high sampling density in formamide conformational analysis. Journal of Computational Chemistry, 11(3):361–373, 1990.
- Thomas A Manz. Seven confluence principles: a case study of standardized statistical analysis for 26 methods that assign net atomic charges in molecules. RSC advances, 10(72):44121–44148, 2020.
- Rapid computation of intermolecular interactions in molecular and ionic clusters: Self-consistent polarization plus symmetry-adapted perturbation theory. Physical Chemistry Chemical Physics, 14(21):7679–7699, 2012.
- A van Bondi. van der waals volumes and radii. The Journal of physical chemistry, 68(3):441–451, 1964.
- Harald Günther. NMR spectroscopy: basic principles, concepts and applications in chemistry. John Wiley & Sons, 2013.
- Enantioselective alkynylation of aromatic aldehydes catalyzed by a sterically highly demanding chiral-at-rhodium lewis acid. The Journal of Organic Chemistry, 82(17):8995–9005, 2017.
- Catalyzed reaction of cellulose and lignin with methyltrimethoxysilane—ft-ir, 13c nmr and 29si nmr studies. Materials, 12(12):2006, 2019.
- Benchmarking density-functional theory calculations of NMR shielding constants and spin–rotation constants using accurate coupled-cluster calculations. The Journal of Chemical Physics, 138(2):024111, 01 2013.
- Fritz London. Théorie quantique des courants interatomiques dans les combinaisons aromatiques. J. phys. radium, 8(10):397–409, 1937.
- Sublinear scaling quantum chemical methods for magnetic shieldings in large molecules. The Journal of Chemical Physics, 150(15), 2019.
- PubChem 2023 update. Nucleic Acids Research, 51(D1):D1373–D1380, 10 2022.
- New implicit solvation models for dispersion and exchange energies. The Journal of Physical Chemistry A, 117(28):5812–5820, 2013. PMID: 23799302.
- Andreas Klamt. The cosmo and cosmo-rs solvation models. WIREs Computational Molecular Science, 8(1):e1338, 2018.
- A smooth, nonsingular, and faithful discretization scheme for polarizable continuum models: The switching/Gaussian approach. The Journal of Chemical Physics, 133(24):244111, 12 2010.
- Improved methods for semiempirical solvation models. Journal of Computational Chemistry, 16(4):422–440, 1995.
- Refined smd parameters for bromine and iodine accurately model halogen-bonding interactions in solution. Chemistry – A European Journal, 24(60):15983–15987, 2018.
- Minnesota solvation database (mnsol) version 2012, 2020.
- John M. Herbert. Dielectric continuum methods for quantum chemistry. WIREs Computational Molecular Science, 11(4):e1519, 2021.
- Comparative assessment of computational methods for free energy calculations of ionic hydration. Journal of Chemical Information and Modeling, 57(11):2763–2775, 2017. PMID: 29039666.
- Semiautomated transition state localization for organometallic complexes with semiempirical quantum chemical methods. Journal of Chemical Theory and Computation, 16(3):2002–2012, 2020. PMID: 32074450.
- autode: Automated calculation of reaction energy profiles— application to organic and organometallic reactions. Angewandte Chemie International Edition, 60(8):4266–4274, 2021.
- Automated transition state search and its application to diverse types of organic reactions. Journal of Chemical Theory and Computation, 13(11):5780–5797, 2017. PMID: 28957627.
- Evaluating transition metal barrier heights with the latest density functional theory exchange–correlation functionals: The mobh35 benchmark database. The Journal of Physical Chemistry A, 123(17):3761–3781, 2019. PMID: 30973722.
- Geometry optimization made simple with translation and rotation coordinates. The Journal of Chemical Physics, 144(21):214108, 06 2016.
- Understanding the electrochemical stability window of polymer electrolytes in solid-state batteries from atomic-scale modeling: the role of li-ion salts. Chemistry of Materials, 32(17):7237–7246, 2020.
- Importance of reduction and oxidation stability of high voltage electrolytes and additives. Electrochimica Acta, 209:498–510, 2016.
- Exploring classes of co-solvents for fast-charging lithium-ion cells. Journal of The Electrochemical Society, 165(10):A2365, 2018.
- The li-ion rechargeable battery: a perspective. Journal of the American Chemical Society, 135(4):1167–1176, 2013.
- John B Goodenough. Rechargeable batteries: challenges old and new. Journal of Solid State Electrochemistry, 16:2019–2029, 2012.
- Electrochemical potential window of battery electrolytes: the homo–lumo misconception. Energy & Environmental Science, 11(9):2306–2309, 2018.
- Oxidative stability and initial decomposition reactions of carbonate, sulfone, and alkyl phosphate-based electrolytes. The Journal of Physical Chemistry C, 117(17):8661–8682, 2013.
- The influence of fec on the solvation structure and reduction reaction of lipf6/ec electrolytes and its implication for solid electrolyte interphase formation. Nano Energy, 64:103881, 2019.
- Towards high throughput screening of electrochemical stability of battery electrolytes. Nanotechnology, 26(35):354003, 2015.
- Multiwfn: A multifunctional wavefunction analyzer. Journal of computational chemistry, 33(5):580–592, 2012.
- Density functional approach to the frontier-electron theory of chemical reactivity. Journal of the American Chemical Society, 106(14):4049–4050, 1984.
- Efficient evaluation of analytic fukui functions. The Journal of chemical physics, 129(22), 2008.
- The use of global and local molecular parameters for the analysis of the gas-phase basicity of amines. Journal of the American Chemical Society, 108(19):5708–5711, 1986.
- Vmd: visual molecular dynamics. Journal of molecular graphics, 14(1):33–38, 1996.
- Ab-initio solution of the many-electron schrödinger equation with deep neural networks. Phys. Rev. Research, 2:033429, 2020.
- Pushing the frontiers of density functionals by solving the fractional electron problem. Science, 374(6573):1385–1389, 2021.
- Solving many-electron schrödinger equation using deep neural networks. Journal of Computational Physics, 399:108929, 2019.
- Deep-neural-network solution of the electronic schrödinger equation. Nature Chemistry, 12(10):891–897, 2020.
- A computational framework for neural network-based variational Monte Carlo with Forward Laplacian. Nature Machine Intelligence, 6(2):209–219, February 2024.
- Deepks: A comprehensive data-driven approach toward chemically accurate density functional theory. Journal of Chemical Theory and Computation, 17(1):170–181, 2021.
- Jacob’s ladder of density functional approximations for the exchange-correlation energy. AIP Conference Proceedings, 577(1):1–20, 07 2001.
- Effect of the damping function in dispersion corrected density functional theory. Journal of Computational Chemistry, 32(7):1456–1465, 2011.
- A generally applicable atomic-charge dependent London dispersion correction. The Journal of Chemical Physics, 150(15):154122, 04 2019.
- Qiming Sun. Libcint: An efficient general integral library for gaussian basis functions. Journal of Computational Chemistry, 36:1664–1671, 2015.
- Cupy: A numpy-compatible library for nvidia gpu calculations. In Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Thirty-first Annual Conference on Neural Information Processing Systems (NIPS), 2017.
- High-performance multi-gpu analytic ri-mp2 energy gradients. Journal of Chemical Theory and Computation, 0(0):null, 0. PMID: 38456899.
- The gpu-enabled divide-expand-consolidate ri-mp2 method (dec-ri-mp2). Journal of Computational Chemistry, 38(4):228–237, 2017.
- Performance of the ri-mp2 fortran kernel of gamess on gpus via directive-based offloading with math libraries. In Accelerator Programming Using Directives: 6th International Workshop, WACCPD 2019, Denver, CO, USA, November 18, 2019, Revised Selected Papers 6, pages 91–113. Springer, 2020.
- Accelerating coupled-cluster calculations with gpus: An implementation of the density-fitted ccsd(t) approach for heterogeneous computing architectures using openmp directives. Journal of Chemical Theory and Computation, 19(21):7640–7657, 2023. PMID: 37878756.
- Scalable heterogeneous execution of a coupled-cluster model with perturbative triples. In SC20: International Conference for High Performance Computing, Networking, Storage and Analysis, pages 1–15, 2020.
- Qiming Sun. Various integral estimations and screening schemes for extended systems in pyscf, 2023.
- Mixed-precision evaluation of two-electron integrals by rys quadrature. Computer Physics Communications, 183(8):1563–1567, 2012.
- Dynamic precision for electron repulsion integral evaluation on graphical processing units (gpus). Journal of Chemical Theory and Computation, 7(4):949–954, 2011. PMID: 26606344.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.