Skip to content
Proyek

MDIL-SNU/CUDA-Dispersion

Lihat di GitHub

Tentang

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

Pembelajaran mesin

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
Mengumpulkan riwayat
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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

Jelajahi proyek terkait

Memuat…