Skip to main content
QUICK REVIEW

[Paper Review] SPARC: Simulation Package for Ab-initio Real-space Calculations

Qimen Xu, Abhiraj Sharma|arXiv (Cornell University)|May 21, 2020
Zeolite Catalysis and SynthesisChemistry77 references5 citations
TL;DR

SPARC is an open-source, highly scalable finite-difference density functional theory code that enables accurate and efficient Kohn-Sham DFT calculations in real space for molecules, crystals, and surfaces. It outperforms state-of-the-art planewave codes by up to an order of magnitude in solution time on large-scale parallel systems, achieving sub-second solution times for 100–500 atom systems using thousands of processors.

ABSTRACT

We present SPARC: Simulation Package for Ab-initio Real-space Calculations. SPARC can perform Kohn-Sham density functional theory calculations for isolated systems such as molecules as well as extended systems such as crystals and surfaces, in both static and dynamic settings. It is straightforward to install/use and highly competitive with state-of-the-art planewave codes, demonstrating comparable performance on a small number of processors and increasing advantages as the number of processors grows. Notably, SPARC brings solution times down to a few seconds for systems with $\mathcal{O}(100-500)$ atoms on large-scale parallel computers, outperforming planewave counterparts by an order of magnitude and more.

Motivation & Objective

  • Address the scalability and performance limitations of planewave-based DFT codes in large-scale parallel computing environments.
  • Overcome the drawbacks of planewave methods, such as artificial periodicity, Coulomb divergences in charged systems, and poor parallel scalability due to FFTs.
  • Develop a real-space finite-difference DFT code that maintains high accuracy while enabling efficient scaling to thousands of processors.
  • Enable efficient simulation of large systems and long-timescale quantum molecular dynamics (QMD) by reducing solution time and improving parallel efficiency.
  • Facilitate broader adoption of real-space methods by ensuring ease of installation, use, and compatibility with existing workflows and input formats.

Proposed method

  • Uses a real-space finite-difference discretization of the Kohn-Sham equations on a uniform Cartesian grid, enabling local, stencil-based operations.
  • Employs a pseudopotential approach with norm-conserving or ultrasoft pseudopotentials to reduce computational cost and maintain accuracy.
  • Applies the finite-temperature Kohn-Sham formalism to stabilize the self-consistent field (SCF) procedure and improve convergence.
  • Utilizes a preconditioned conjugate gradient method for solving the Kohn-Sham equations, with efficient preconditioners tailored to the real-space grid.
  • Implements a parallel domain decomposition strategy using MPI, with data distribution and communication optimized for high scalability.
  • Leverages highly optimized BLAS, LAPACK, and ScaLAPACK libraries for linear algebra operations, and supports optional use of Intel MKL and GPU offloading.

Experimental results

Research questions

  • RQ1Can a real-space finite-difference DFT code achieve comparable or better performance than state-of-the-art planewave codes on small-scale systems?
  • RQ2Does the real-space finite-difference approach enable superior strong scaling and reduced solution times on large-scale parallel architectures?
  • RQ3Can SPARC efficiently handle a broad range of systems, including finite, extended, charged, and periodic systems, with minimal user intervention?
  • RQ4What is the performance bottleneck in large-scale SPARC simulations, and can it be mitigated through algorithmic improvements?
  • RQ5To what extent can SPARC enable previously infeasible simulations, such as long-timescale QMD or large-scale defect studies, due to its superior scalability?

Key findings

  • SPARC achieves comparable performance to the planewave code Quantum ESPRESSO (QE) on a small number of processors, with similar solution times for moderate system sizes.
  • For systems with 100–500 atoms, SPARC reduces solution times to just a few seconds on large-scale parallel computers, outperforming QE by more than an order of magnitude.
  • On 312 cores, SPARC achieves QMD step times of just over 20 seconds for a 1372-atom aluminum system, demonstrating high efficiency for large-scale dynamics.
  • The primary performance bottleneck in large systems is the subspace diagonalization step, which scales cubically and limits parallel scalability as system size increases.
  • SPARC demonstrates strong potential for exascale computing through planned integration of GPU offloading, structure-adapted eigensolvers, and the DDBP method for improved strong scaling.
  • The code is already being used by multiple research groups, and its open-source release with a simple installation process is expected to accelerate adoption and expand its impact in materials science and engineering.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.