[Paper Review] General-purpose molecular dynamics simulations on GPU-based clusters
This paper presents LAMMPS CUDA, a GPU-accelerated implementation of the LAMMPS molecular dynamics software that achieves 5x to 13x single-node speedups over CPU-only versions by leveraging CUDA kernels for particle-based force calculations and MPI for inter-node communication in hybrid CPU/GPU clusters. The implementation enables strong and weak scaling across up to 256 GPUs, delivering up to 60x speedup versus CPU-only simulations on complex materials including biomolecules, metals, and polymers.
We present a GPU implementation of LAMMPS, a widely-used parallel molecular dynamics (MD) software package, and show 5x to 13x single node speedups versus the CPU-only version of LAMMPS. This new CUDA package for LAMMPS also enables multi-GPU simulation on hybrid heterogeneous clusters, using MPI for inter-node communication, CUDA kernels on the GPU for all methods working with particle data, and standard LAMMPS C++ code for CPU execution. Cell and neighbor list approaches are compared for best performance on GPUs, with thread-per-atom and block-per-atom neighbor list variants showing best performance at low and high neighbor counts, respectively. Computational performance results of GPU-enabled LAMMPS are presented for a variety of materials classes (e.g. biomolecules, polymers, metals, semiconductors), along with a speed comparison versus other available GPU-enabled MD software. Finally, we show strong and weak scaling performance on a CPU/GPU cluster using up to 128 dual GPU nodes.
Motivation & Objective
- To accelerate molecular dynamics (MD) simulations by integrating GPU computing into the widely used LAMMPS software package.
- To enable general-purpose MD simulations across diverse materials classes—biomolecules, polymers, metals, semiconductors—on GPU-accelerated clusters.
- To achieve high performance and strong scaling on hybrid CPU/GPU clusters using CUDA for GPU kernels and MPI for inter-node communication.
- To compare and optimize neighbor list and cell list algorithms for GPU performance under varying neighbor densities.
- To demonstrate multi-GPU scalability on large-scale systems, including up to 256 GPUs on the NCSA Lincoln cluster.
Proposed method
- Extends LAMMPS with a CUDA-based package that offloads all particle-data methods to GPU kernels while retaining standard C++ code for CPU execution.
- Uses thread-per-atom and block-per-atom neighbor list variants to optimize performance at low and high neighbor counts, respectively.
- Employs cell lists and neighbor lists for non-bonded force calculations, with performance analyzed via analytical models of memory access and computation time.
- Applies MPI for inter-node communication in multi-node GPU clusters, enabling distributed memory parallelism across hybrid CPU/GPU systems.
- Uses PPPM (Particle Mesh Ewald) for long-range Coulombic interactions and supports multiple force fields including Lennard-Jones, EAM, CHARMM, and coarse-grained models.
- Conducts performance benchmarks across diverse materials using standardized simulations with defined cutoffs, densities, and temperatures.
Experimental results
Research questions
- RQ1How can GPU acceleration be effectively integrated into a general-purpose MD code like LAMMPS without sacrificing feature richness?
- RQ2What are the optimal GPU memory access patterns for neighbor list and cell list algorithms across varying neighbor densities?
- RQ3To what extent can LAMMPS CUDA scale across multi-GPU and multi-node GPU clusters?
- RQ4How do performance gains from GPU acceleration vary across different materials classes such as biomolecules, metals, and polymers?
- RQ5What is the performance trade-off between memory coalescing in cell lists and dynamic load balancing in neighbor lists on GPUs?
Key findings
- LAMMPS CUDA achieves 5x to 13x single-node speedup over CPU-only LAMMPS, with up to 60x speedup on 256 GPUs compared to CPU-only clusters.
- The thread-per-atom neighbor list variant outperforms at low neighbor counts, while the block-per-atom variant is optimal at high neighbor counts.
- Cell lists outperform neighbor lists at high neighbor densities when memory coalescing is effective, with theoretical analysis showing a 3.34x memory access speedup threshold for cell list superiority.
- Strong scaling is achieved across up to 128 dual-GPU nodes, and weak scaling is demonstrated on up to 256 GPUs, indicating excellent parallel efficiency.
- On the NCSA Lincoln cluster, LAMMPS CUDA achieves 20x to 60x speedup using Tesla C1060 GPUs versus modern CPU cores, depending on system class.
- The implementation enables simulations of 1.15 million atoms (granular system) and 32,000-atom rhodopsin systems with long-range Coulombic interactions using PPPM.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.