Skip to main content
QUICK REVIEW

[Paper Review] Density Functional Theory calculation on many-cores hybrid CPU-GPU architectures

Luigi Genovese, Matthieu Ospici|ArXiv.org|Apr 9, 2009
Matrix Theory and AlgorithmsComputer Science2 references6 citations
TL;DR

This paper presents a GPU-accelerated implementation of the BigDFT code, a first-principles electronic structure code based on Daubechies wavelets, on hybrid CPU-GPU architectures. It achieves up to a 6-fold speedup in full DFT calculations using double precision arithmetic, with individual kernels accelerating up to 20×, while preserving convergence and scalability across heterogeneous CPU/GPU ratios in massive parallel environments.

ABSTRACT

The implementation of a full electronic structure calculation code on a hybrid parallel architecture with Graphic Processing Units (GPU) is presented. The code which is on the basis of our implementation is a GNU-GPL code based on Daubechies wavelets. It shows very good performances, systematic convergence properties and an excellent efficiency on parallel computers. Our GPU-based acceleration fully preserves all these properties. In particular, the code is able to run on many cores which may or may not have a GPU associated. It is thus able to run on parallel and massive parallel hybrid environment, also with a non-homogeneous ratio CPU/GPU. With double precision calculations, we may achieve considerable speedup, between a factor of 20 for some operations and a factor of 6 for the whole DFT code.

Motivation & Objective

  • To enable scalable, high-performance DFT calculations on hybrid CPU-GPU supercomputers using a systematic, orthogonal wavelet basis.
  • To overcome the computational bottleneck of cubic-scaling DFT for large systems by accelerating key operations on GPUs with double precision.
  • To maintain full compatibility with existing CPU-based parallelization and support non-homogeneous CPU/GPU ratios in hybrid clusters.
  • To demonstrate that GPU acceleration does not compromise the convergence or efficiency of the original DFT code.

Proposed method

  • The BigDFT code, based on Daubechies wavelets, is extended to offload computationally intensive operations—such as linear algebra and convolution—to GPU kernels using CUDA.
  • GPU kernels are implemented for core DFT operations including the evaluation of the Kohn-Sham Hamiltonian, electron density, and exchange-correlation potential.
  • Data transfers between CPU and GPU are optimized to minimize latency, with support for multiple CPU cores per GPU card.
  • The implementation preserves the original code’s systematic convergence and parallel efficiency by maintaining existing MPI-based domain decomposition.
  • Double precision floating-point arithmetic is used throughout, ensuring numerical robustness for ab initio simulations.
  • The hybrid architecture supports heterogeneous configurations, allowing different numbers of CPU cores per GPU card without performance degradation.

Experimental results

Research questions

  • RQ1Can a full electronic structure code based on Daubechies wavelets be efficiently ported to hybrid CPU-GPU architectures while preserving its convergence and parallel efficiency?
  • RQ2What performance gains can be achieved by accelerating key DFT operations on GPUs using double precision arithmetic?
  • RQ3How does the code scale when multiple CPU cores are assigned to a single GPU card in a heterogeneous hybrid environment?
  • RQ4Can the GPU-accelerated DFT code maintain performance and stability across different system sizes and boundary conditions?
  • RQ5To what extent can GPU acceleration improve the overall performance of a production-level DFT code without introducing hotspots or communication bottlenecks?

Key findings

  • The GPU-accelerated DFT code achieves an overall speedup of approximately 6× for full calculations on a 12-node hybrid system with two GPUs per node.
  • Individual GPU kernels show speedups of up to 20× for specific operations, particularly in linear algebra and convolution routines.
  • The code maintains excellent convergence properties and parallel efficiency even when multiple CPU cores are assigned per GPU card.
  • The performance degradation at high CPU/GPU ratios (e.g., 4 cores per GPU) is minimal, with only a ~2× slowdown, indicating strong load balancing.
  • The implementation supports non-homogeneous CPU/GPU ratios and scales effectively across massive parallel hybrid clusters.
  • The GPU acceleration is fully compatible with the original CPU-based parallelization, and no performance bottlenecks were observed in the full code execution.

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.