Skip to content
项目

关于

CUDA-accelerated Grimme D2, D3, and D4 dispersion corrections for single-GPU, batched, and multi-GPU molecular simulations

人工智能与机器学习

这些数字如何统计

12 星标1 复刻 +1 24小时

实测星标增长

24小时
+1
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

CUDA-Dispersion

Optimized CUDA kernels for high-throughput dispersion and multi-GPU MD.

Grimme D2, D3, and D4 dispersion corrections for molecules and periodic systems on NVIDIA GPUs. Evaluate individual structures, batch independent structures, or distribute one calculation across GPU ranks with MPI. D3 and D4 include optimized batch paths.

Benchmarks

CUDA-D3 and CUDA-D4 throughput on GB10 and 1-to-2 GPU scaling with SevenNet-Omni on RTX PRO 6000

On NVIDIA GB10, CUDA-D3 and CUDA-D4 reached 42,643 and 533 structures/s, respectively, for batches of 128 LPSC structures with 52 atoms each. For a 46,656-atom diamond silicon simulation with SevenNet-Omni, scaling from one to two RTX PRO 6000 GPUs gave 1.70× speedup with D3 and 1.63× with D4.

Requirements

  • Linux with a compatible NVIDIA driver
  • NVIDIA GPU with compute capability 8.0 or later (sm_80)
  • CUDA Toolkit with nvcc and a compatible C++17 host compiler
  • cuBLAS, cuSOLVER, and cuFFT for D4
  • Python 3.10+ and NumPy for the Python interface

Optional Python extras are ase for ASE, torch for CUDA tensors, and mpi for Python MPI runs. NCCL is optional for multi-GPU communication.

Install

From a source checkout, set CUDA_ARCHS for your GPU. The default is sm_121 (GB10), which requires CUDA Toolkit 12.9 or later. On an A100, install with:

CUDA_ARCHS=sm_80 python -m pip install '.[ase]'

For the C API or LAMMPS, run CUDA_ARCHS=sm_80 bash build.sh on an A100. Both install methods compile the D3 and D4 libraries in parallel.

Quick start

from ase.build import bulk

from cuda_d3 import CudaD3
from cuda_d4 import CudaD4

atoms = bulk('Si', 'diamond', a=5.431)
d3 = CudaD3('pbe', 'damp_bj', s9=1.0)
d4 = CudaD4('pbe')

result = d3.compute(atoms)
batch = d4.compute_batch([atoms, atoms.repeat((2, 1, 1))])
  • Python examples and options for D2/D3 and D4
  • LAMMPS build and input examples for D2/D3 and D4

How to cite

If you use CUDA-Dispersion in your work, please cite the project DOI, which covers all releases.

@software{you_cuda_disp_2026,
  author  = {You, Jinmu},
  title   = {{CUDA-Dispersion}: {CUDA}-accelerated {Grimme D2, D3, and D4} dispersion corrections},
  year    = {2026},
  doi     = {10.5281/zenodo.24645997},
  url     = {https://github.com/MDIL-SNU/CUDA-Dispersion}
}

License

GPL-3.0-or-later and third-party notices

探索相关项目

加载中…