Skip to content
프로젝트

소개

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

머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
기록 수집 중
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

관련 프로젝트 살펴보기

불러오는 중…