DOE PAGES title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: DFT-FE 1.0: A massively parallel hybrid CPU-GPU density functional theory code using finite-element discretization

Abstract

In this work, we present DFT-FE 1.0, building on DFT-FE 0.6 [Comput. Phys. Commun. 246, 106853 (2020)], to conduct fast and accurate large-scale density functional theory (DFT) calculations (reaching ~ 100,000 electrons) on both many-core CPU and hybrid CPU-GPU computing architectures. This work involves improvements in the real-space formulation—via an improved treatment of the electrostatic interactions that substantially enhances the computational efficiency—as well high-performance computing aspects, including the GPU acceleration of all the key compute kernels in DFT-FE. We demonstrate the accuracy by comparing the ground-state energies, ionic forces and cell stresses on a wide-range of benchmark systems against those obtained from widely used DFT codes. Further, we demonstrate the numerical efficiency of our implementation, which yields ~ 20× CPU-GPU speed-up by using GPU acceleration on hybrid CPU-GPU nodes. Notably, owing to the parallel-scaling of the GPU implementation, we obtain wall-times of 80–140 seconds for full ground-state calculations, with stringent accuracy, on benchmark systems containing ~ 6, 000 – 15,000 electrons.

Authors:
 [1];  [2];  [1]; ORCiD logo [3]; ORCiD logo [1]
  1. Univ. of Michigan, Ann Arbor, MI (United States)
  2. Indian Inst. of Science, Bangalore (India)
  3. Oak Ridge National Lab. (ORNL), Oak Ridge, TN (United States)
Publication Date:
Research Org.:
Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
Sponsoring Org.:
USDOE Office of Science (SC), Advanced Scientific Computing Research (ASCR); USDOE Office of Science (SC), Basic Energy Sciences (BES); National Science Foundation (NSF); US Air Force Office of Scientific Research (AFOSR); US Army Research Office (ARO)
OSTI Identifier:
1888932
Alternate Identifier(s):
OSTI ID: 1884863
Grant/Contract Number:  
AC05-00OR22725; SC0008637; AC02-05CH11231; FA9550-21-1-0302; ACI-1053575; W911NF1810242
Resource Type:
Accepted Manuscript
Journal Name:
Computer Physics Communications
Additional Journal Information:
Journal Volume: 280; Journal Issue: 1; Journal ID: ISSN 0010-4655
Publisher:
Elsevier
Country of Publication:
United States
Language:
English
Subject:
71 CLASSICAL AND QUANTUM MECHANICS, GENERAL PHYSICS; electronic structure; real-space; spectral finite-elements; mixed-precision arithmetic; pseudopotential; all-electron; GPU

Citation Formats

Das, Sambit, Motamarri, Phani, Subramanian, Vishal, Rogers, David M., and Gavini, Vikram. DFT-FE 1.0: A massively parallel hybrid CPU-GPU density functional theory code using finite-element discretization. United States: N. p., 2022. Web. doi:10.1016/j.cpc.2022.108473.
Das, Sambit, Motamarri, Phani, Subramanian, Vishal, Rogers, David M., & Gavini, Vikram. DFT-FE 1.0: A massively parallel hybrid CPU-GPU density functional theory code using finite-element discretization. United States. https://doi.org/10.1016/j.cpc.2022.108473
Das, Sambit, Motamarri, Phani, Subramanian, Vishal, Rogers, David M., and Gavini, Vikram. Wed . "DFT-FE 1.0: A massively parallel hybrid CPU-GPU density functional theory code using finite-element discretization". United States. https://doi.org/10.1016/j.cpc.2022.108473. https://www.osti.gov/servlets/purl/1888932.
@article{osti_1888932,
title = {DFT-FE 1.0: A massively parallel hybrid CPU-GPU density functional theory code using finite-element discretization},
author = {Das, Sambit and Motamarri, Phani and Subramanian, Vishal and Rogers, David M. and Gavini, Vikram},
abstractNote = {In this work, we present DFT-FE 1.0, building on DFT-FE 0.6 [Comput. Phys. Commun. 246, 106853 (2020)], to conduct fast and accurate large-scale density functional theory (DFT) calculations (reaching ~ 100,000 electrons) on both many-core CPU and hybrid CPU-GPU computing architectures. This work involves improvements in the real-space formulation—via an improved treatment of the electrostatic interactions that substantially enhances the computational efficiency—as well high-performance computing aspects, including the GPU acceleration of all the key compute kernels in DFT-FE. We demonstrate the accuracy by comparing the ground-state energies, ionic forces and cell stresses on a wide-range of benchmark systems against those obtained from widely used DFT codes. Further, we demonstrate the numerical efficiency of our implementation, which yields ~ 20× CPU-GPU speed-up by using GPU acceleration on hybrid CPU-GPU nodes. Notably, owing to the parallel-scaling of the GPU implementation, we obtain wall-times of 80–140 seconds for full ground-state calculations, with stringent accuracy, on benchmark systems containing ~ 6, 000 – 15,000 electrons.},
doi = {10.1016/j.cpc.2022.108473},
journal = {Computer Physics Communications},
number = 1,
volume = 280,
place = {United States},
year = {Wed Aug 03 00:00:00 EDT 2022},
month = {Wed Aug 03 00:00:00 EDT 2022}
}

Works referenced in this record:

Tensor-structured algorithm for reduced-order scaling large-scale Kohn–Sham density functional theory calculations
journal, April 2021


Generalized Gradient Approximation Made Simple
journal, October 1996

  • Perdew, John P.; Burke, Kieron; Ernzerhof, Matthias
  • Physical Review Letters, Vol. 77, Issue 18, p. 3865-3868
  • DOI: 10.1103/PhysRevLett.77.3865

RESCU: A real space electronic structure method
journal, February 2016


Non-periodic finite-element formulation of orbital-free density functional theory
journal, April 2007

  • Gavini, Vikram; Knap, Jaroslaw; Bhattacharya, Kaushik
  • Journal of the Mechanics and Physics of Solids, Vol. 55, Issue 4
  • DOI: 10.1016/j.jmps.2006.09.011

Beyond Magic Numbers: Atomic Scale Equilibrium Nanoparticle Shapes for Any Size
journal, August 2017


On the adaptive finite element analysis of the Kohn-Sham equations: methods, algorithms, and implementation: On the adaptive finite element analysis of the Kohn-Sham equations: methods, algorithms, and implementation
journal, November 2015

  • Davydov, Denis; Young, Toby D.; Steinmann, Paul
  • International Journal for Numerical Methods in Engineering, Vol. 106, Issue 11
  • DOI: 10.1002/nme.5140

Projector augmented-wave method
journal, December 1994


Ab initio theory of the nitrogen-vacancy center in diamond
journal, September 2019


Electronic structure study of screw dislocation core energetics in Aluminum and core energetics informed forces in a dislocation aggregate
journal, July 2017


Real-Space Density Functional Theory on Graphical Processing Units: Computational Approach and Comparison to Gaussian Basis Set Methods
journal, September 2013

  • Andrade, Xavier; Aspuru-Guzik, Alán
  • Journal of Chemical Theory and Computation, Vol. 9, Issue 10
  • DOI: 10.1021/ct400520e

A Comparison of Exact and Model Exchange–Correlation Potentials for Molecules
journal, December 2021

  • Kanungo, Bikash; Zimmerman, Paul M.; Gavini, Vikram
  • The Journal of Physical Chemistry Letters, Vol. 12, Issue 50
  • DOI: 10.1021/acs.jpclett.1c03670

Spin–spin interactions in defects in solids from mixed all-electron and pseudopotential first-principles calculations
journal, July 2021


QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials
journal, September 2009

  • Giannozzi, Paolo; Baroni, Stefano; Bonini, Nicola
  • Journal of Physics: Condensed Matter, Vol. 21, Issue 39, Article No. 395502
  • DOI: 10.1088/0953-8984/21/39/395502

Optimizations of the eigensolvers in the ELPA library
journal, July 2019


Adaptive Finite Element Approximations for Kohn--Sham Models
journal, January 2014

  • Chen, Huajie; Dai, Xiaoying; Gong, Xingao
  • Multiscale Modeling & Simulation, Vol. 12, Issue 4
  • DOI: 10.1137/130916096

SPARC: Accurate and efficient finite-difference formulation and parallel implementation of Density Functional Theory: Isolated clusters
journal, March 2017


Applications of large-scale density functional theory in biology
journal, August 2016


exciting: a full-potential all-electron package implementing density-functional theory and many-body perturbation theory
journal, August 2014

  • Gulans, Andris; Kontur, Stefan; Meisenbichler, Christian
  • Journal of Physics: Condensed Matter, Vol. 26, Issue 36
  • DOI: 10.1088/0953-8984/26/36/363202

Electronic-structure study of an edge dislocation in Aluminum and the role of macroscopic deformations on its energetics
journal, March 2015

  • Iyer, Mrinal; Radhakrishnan, Balachandran; Gavini, Vikram
  • Journal of the Mechanics and Physics of Solids, Vol. 76
  • DOI: 10.1016/j.jmps.2014.12.009

Application of order-N first-principles DFT calculations with temperature controlled molecular dynamics to biomolecular system
journal, December 2018


Electronic structure calculations with GPAW: a real-space implementation of the projector augmented-wave method
journal, June 2010


The Chemistry of Deformation: How Solutes Soften Pure Metals
journal, December 2005


\mathcal{O}(N) methods in electronic structure calculations
journal, February 2012


Efficacious Form for Model Pseudopotentials
journal, May 1982


Fast and robust all-electron density functional theory calculations in solids using orthogonalized enriched finite elements
journal, August 2021


Configurational forces in electronic structure calculations using Kohn-Sham density functional theory
journal, April 2018


Introducing ONETEP : Linear-scaling density functional simulations on parallel computers
journal, February 2005

  • Skylaris, Chris-Kriton; Haynes, Peter D.; Mostofi, Arash A.
  • The Journal of Chemical Physics, Vol. 122, Issue 8
  • DOI: 10.1063/1.1839852

DFT-FE – A massively parallel adaptive finite-element code for large-scale density functional theory calculations
journal, January 2020


NWChem: A comprehensive and scalable open-source solution for large scale molecular simulations
journal, September 2010

  • Valiev, M.; Bylaska, E. J.; Govind, N.
  • Computer Physics Communications, Vol. 181, Issue 9, p. 1477-1489
  • DOI: 10.1016/j.cpc.2010.04.018

Linear-scaling first-principles molecular dynamics with plane-waves accuracy
journal, March 2006


Orbital-free density functional theory simulations of dislocations in magnesium
journal, November 2011

  • Shin, Ilgyou; Carter, Emily A.
  • Modelling and Simulation in Materials Science and Engineering, Vol. 20, Issue 1
  • DOI: 10.1088/0965-0393/20/1/015006

DFT modelling of explicit solid–solid interfaces in batteries: methods and challenges
journal, January 2020

  • Leung, Kevin
  • Physical Chemistry Chemical Physics, Vol. 22, Issue 19
  • DOI: 10.1039/C9CP06485K

Adaptive Finite Element Method for Solving the Exact Kohn−Sham Equation of Density Functional Theory
journal, March 2009

  • Bylaska, Eric J.; Holst, Michael; Weare, John H.
  • Journal of Chemical Theory and Computation, Vol. 5, Issue 4
  • DOI: 10.1021/ct800350j

A generic interface for parallel cell-based finite element operator application
journal, June 2012


Efficient iteration scheme for self-consistent pseudopotential calculations
journal, March 1981


Large-scale DFT calculations in implicit solvent-A case study on the T4 lysozyme L99A/M102Q protein
journal, March 2012

  • Dziedzic, Jacek; Fox, Stephen J.; Fox, Thomas
  • International Journal of Quantum Chemistry, Vol. 113, Issue 6
  • DOI: 10.1002/qua.24075

All-electron Kohn–Sham density functional theory on hierarchic finite element spaces
journal, October 2013


Ab initio modeling of dislocation core properties in metals and semiconductors
journal, February 2017


Beyond the local-density approximation in calculations of ground-state electronic properties
journal, August 1983


Discrete discontinuous basis projection method for large-scale electronic structure calculations
journal, September 2018

  • Xu, Qimen; Suryanarayana, Phanish; Pask, John E.
  • The Journal of Chemical Physics, Vol. 149, Issue 9
  • DOI: 10.1063/1.5037794

Backbone charge transport in double-stranded DNA
journal, August 2020

  • Zhuravel, Roman; Huang, Haichao; Polycarpou, Georgia
  • Nature Nanotechnology, Vol. 15, Issue 10
  • DOI: 10.1038/s41565-020-0741-2

Self-Consistent Equations Including Exchange and Correlation Effects
journal, November 1965


Efficient pseudopotentials for plane-wave calculations
journal, January 1991


The PseudoDojo: Training and grading a 85 element optimized norm-conserving pseudopotential table
journal, May 2018


Non-periodic finite-element formulation of Kohn–Sham density functional theory
journal, February 2010

  • Suryanarayana, Phanish; Gavini, Vikram; Blesgen, Thomas
  • Journal of the Mechanics and Physics of Solids, Vol. 58, Issue 2
  • DOI: 10.1016/j.jmps.2009.10.002

Review on modeling of the anode solid electrolyte interphase (SEI) for lithium-ion batteries
journal, March 2018


Dislocation Core Energies and Core Fields from First Principles
journal, February 2009


Self‐Consistent Molecular‐Orbital Methods. I. Use of Gaussian Expansions of Slater‐Type Atomic Orbitals
journal, September 1969

  • Hehre, W. J.; Stewart, R. F.; Pople, J. A.
  • The Journal of Chemical Physics, Vol. 51, Issue 6
  • DOI: 10.1063/1.1672392

DGDFT: A massively parallel method for large scale density functional theory calculations
journal, September 2015

  • Hu, Wei; Lin, Lin; Yang, Chao
  • The Journal of Chemical Physics, Vol. 143, Issue 12
  • DOI: 10.1063/1.4931732

Ab Initio Study of Screw Dislocations in Mo and Ta: A New Picture of Plasticity in bcc Transition Metals
journal, February 2000


Orbital-free density functional theory study of the energetics of vacancy clustering and prismatic dislocation loop nucleation in aluminium
journal, July 2016


Electronic-structure calculations based on the finite-element method
journal, August 1995


Speeding up plane-wave electronic-structure calculations using graphics-processing units
journal, July 2011

  • Maintz, Stefan; Eck, Bernhard; Dronskowski, Richard
  • Computer Physics Communications, Vol. 182, Issue 7
  • DOI: 10.1016/j.cpc.2011.03.010

First-principles computation of material properties: the ABINIT software project
journal, November 2002


Real time time-dependent density functional theory using higher order finite-element methods
journal, September 2019


Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set
journal, October 1996


Real-space local polynomial basis for solid-state electronic-structure calculations: A finite-element approach
journal, May 1999


Linear scaling electronic structure methods
journal, July 1999


Exact exchange-correlation potentials from ground-state electron densities
journal, October 2019


Adaptive finite-element method for electronic-structure calculations
journal, September 1996


The deal.II library, Version 9.0
journal, December 2018

  • Alzetta, Giovanni; Arndt, Daniel; Bangerth, Wolfgang
  • Journal of Numerical Mathematics, Vol. 26, Issue 4
  • DOI: 10.1515/jnma-2018-0054

Two-Level Chebyshev Filter Based Complementary Subspace Method: Pushing the Envelope of Large-Scale Electronic Structure Calculations
journal, April 2018

  • Banerjee, Amartya S.; Lin, Lin; Suryanarayana, Phanish
  • Journal of Chemical Theory and Computation, Vol. 14, Issue 6
  • DOI: 10.1021/acs.jctc.7b01243

Real-space grids and the Octopus code as tools for the development of new simulation approaches for electronic systems
journal, January 2015

  • Andrade, Xavier; Strubbe, David; De Giovannini, Umberto
  • Physical Chemistry Chemical Physics, Vol. 17, Issue 47
  • DOI: 10.1039/C5CP00351B

Higher-order adaptive finite-element methods for Kohn–Sham density functional theory
journal, November 2013


Daubechies wavelets for high performance electronic structure calculations: The BigDFT project
journal, February 2011


PARSEC – the pseudopotential algorithm for real-space electronic structure calculations: recent advances and novel applications to nano-structures
journal, April 2006

  • Kronik, Leeor; Makmal, Adi; Tiago, Murilo L.
  • physica status solidi (b), Vol. 243, Issue 5
  • DOI: 10.1002/pssb.200541463

Large-scale all-electron density functional theory calculations using an enriched finite-element basis
journal, January 2017


Ab initio molecular simulations with numeric atom-centered orbitals
journal, November 2009

  • Blum, Volker; Gehrke, Ralf; Hanke, Felix
  • Computer Physics Communications, Vol. 180, Issue 11
  • DOI: 10.1016/j.cpc.2009.06.022

Spectrum-splitting approach for Fermi-operator expansion in all-electron Kohn-Sham DFT calculations
journal, January 2017


Finite element methods in ab initio electronic structure calculations
journal, April 2005

  • Pask, J. E.; Sterne, P. A.
  • Modelling and Simulation in Materials Science and Engineering, Vol. 13, Issue 3
  • DOI: 10.1088/0965-0393/13/3/R01

Pushing the boundaries of lithium battery research with atomistic modelling on different scales
journal, December 2021

  • Morgan, Lucy M.; Mercer, Michael P.; Bhandari, Arihant
  • Progress in Energy, Vol. 4, Issue 1
  • DOI: 10.1088/2516-1083/ac3894

Density functional theory calculation on many-cores hybrid central processing unit-graphic processing unit architectures
journal, July 2009

  • Genovese, Luigi; Ospici, Matthieu; Deutsch, Thierry
  • The Journal of Chemical Physics, Vol. 131, Issue 3
  • DOI: 10.1063/1.3166140

Algorithms and data structures for massively parallel generic adaptive finite element codes
journal, December 2011

  • Bangerth, Wolfgang; Burstedde, Carsten; Heister, Timo
  • ACM Transactions on Mathematical Software, Vol. 38, Issue 2
  • DOI: 10.1145/2049673.2049678

First principles methods using CASTEP
journal, January 2005

  • Clark, Stewart J.; Segall, Matthew D.; Pickard, Chris J.
  • Zeitschrift für Kristallographie - Crystalline Materials, Vol. 220, Issue 5/6
  • DOI: 10.1524/zkri.220.5.567.65075

Optimization algorithm for the generation of ONCV pseudopotentials
journal, November 2015


The ELPA library: scalable parallel eigenvalue solutions for electronic structure theory and computational science
journal, May 2014


Polarization consistent basis sets. II. Estimating the Kohn–Sham basis set limit
journal, May 2002

  • Jensen, Frank
  • The Journal of Chemical Physics, Vol. 116, Issue 17
  • DOI: 10.1063/1.1465405

Advanced capabilities for materials modelling with Quantum ESPRESSO
journal, October 2017

  • Giannozzi, P.; Andreussi, O.; Brumme, T.
  • Journal of Physics: Condensed Matter, Vol. 29, Issue 46
  • DOI: 10.1088/1361-648X/aa8f79

cp2k: atomistic simulations of condensed matter systems
journal, June 2013

  • Hutter, Jürg; Iannuzzi, Marcella; Schiffmann, Florian
  • Wiley Interdisciplinary Reviews: Computational Molecular Science, Vol. 4, Issue 1
  • DOI: 10.1002/wcms.1159

Iterative Procedures for Nonlinear Integral Equations
journal, October 1965