NVIDIAErica TsaiAnnouncement
Tackling GPU Bottlenecks in Plane-Wave DFT with K-Point Batching and Mixed Precision
Summary
Plane-wave DFT calculations with VASP, the gold standard for generating ground-truth data for machine learning interatomic potentials, suffer from GPU bottlenecks when processing small unit cells with dense k-point grids. Sequential k-point processing underutilizes GPUs, and the traditional FP64-only execution leaves modern GPU FP32 throughput untapped. Daviator, a library of GPU kernels, resolves the small-system bottleneck by replacing sequential per-k-point processing with batched GPU operations, including a batched Davidson eigensolver. A new mixed precision execution layer identifies precision-insensitive kernels and runs them in FP32, further increasing throughput on GPUs with a high FP32:FP64 ratio. For the OMat24 dataset, VASP with Daviator achieves up to 22x faster time-to-solution and up to 75% lower cost compared to CPU execution.
Context
Plane-wave DFT calculations with VASP, the gold standard for generating ground-truth data for machine learning interatomic potentials, suffer from GPU bottlenecks when processing small unit cells with dense k-point grids. Sequential k-point processing underutilizes GPUs, and the traditional FP64-only execution leaves modern GPU FP32 throughput untapped.
Approach / What changed
Daviator is a library of GPU kernels that replaces sequential per-k-point processing in plane-wave DFT inner loops with batched GPU operations, including a batched Davidson eigensolver, batched FFTs, GEMMs, and custom kernels. A mixed precision execution layer uses a configurable floating-point type to identify minimum required mantissa and exponent bits, then applies FP32 arithmetic and storage in precision-insensitive kernels while retaining FP64 where needed.
Takeaways
Daviator replaces sequential per-k-point processing in VASP with batched GPU operations, including a batched Davidson eigensolver, to saturate GPU utilization for small systems with dense k-point grids.
Mixed precision execution in Daviator uses a configurable floating-point type to identify precision-insensitive kernels and runs them in FP32, yielding up to 2x speedup over FP64 on GPUs with a high FP32:FP64 ratio.
For the OMat24 dataset, VASP with Daviator achieves up to 22x faster time-to-solution and up to 75% lower cost compared to CPU execution, with the lowest cost on RTX PRO 6000 using FP32.
FAQ
What is Daviator and how does it work?
Daviator is a library of GPU kernels that replaces sequential per-k-point processing in plane-wave DFT inner loops with batched GPU operations, including a batched Davidson eigensolver, batched FFTs, GEMMs, and custom kernels. It integrates into VASP at well-defined call boundaries over data already on device.
How do I enable Daviator and mixed precision in VASP?
Enable Daviator by setting LDAVIATOR=True in the INCAR file. For mixed precision, also set LDAVIATOR_MIXED_PRECISION=True and configure DAVIATOR_SWITCH_TO_FP64_AFTER_STEP and DAVIATOR_EDIFF_FP32. Existing VASP inputs work without modification.
Does Daviator support multi-node execution?
Daviator is currently limited to single-node execution. Multi-node support, coverage of non-collinear spins (vasp_ncl), and explicit gamma-only runs (vasp_gam) are expected at a later stage.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.