[Paper Review] ls1 mardyn: The massively parallel molecular dynamics code for large systems
ls1 mardyn is a highly scalable, massively parallel molecular dynamics code designed for simulating large systems with up to trillions of particles. It achieves near-perfect scalability on over 140,000 cores using dynamic load balancing and efficient MPI communication, setting a world record with 4.125 trillion molecules at 591.2 TFLOPS, enabling simulations of complex fluid systems at micrometer scales and microsecond timescales.
The molecular dynamics simulation code ls1 mardyn is presented. It is a highly scalable code, optimized for massively parallel execution on supercomputing architectures and currently holds the world record for the largest molecular simulation with over four trillion particles. It enables the application of pair potentials to length and time scales that were previously out of scope for molecular dynamics simulation. With an efficient dynamic load balancing scheme, it delivers high scalability even for challenging heterogeneous configurations. Presently, multicenter rigid potential models based on Lennard-Jones sites, point charges, and higher-order polarities are supported. Due to its modular design, ls1 mardyn can be extended to new physical models, methods, and algorithms, allowing future users to tailor it to suit their respective needs. Possible applications include scenarios with complex geometries, such as fluids at interfaces, as well as nonequilibrium molecular dynamics simulation of heat and mass transfer.
Motivation & Objective
- To develop a massively parallel molecular dynamics code capable of simulating systems with trillions of particles.
- To address the challenge of simulating heterogeneous and rapidly changing molecular distributions in complex geometries.
- To achieve high scalability on modern supercomputing architectures, especially for non-equilibrium and interface-dominated processes.
- To support advanced physical models such as multi-center rigid potentials, point charges, and higher-order polarities.
- To provide a modular, extensible, and publicly available software framework for future HPC and molecular modeling advancements.
Proposed method
- Utilizes a dynamic load balancing scheme to maintain high performance in heterogeneous and time-varying particle distributions.
- Employs a modular software architecture based on component-based design to support extensibility and integration of new physical models.
- Implements efficient domain decomposition with MPI-based communication optimized for 3D torus interconnects (e.g., Cray XE6 Gemini) and InfiniBand (SuperMUC).
- Supports rigid body dynamics with multiple interaction sites (Lennard-Jones, point charges, higher-order multipoles) for accurate modeling of complex fluids.
- Uses time integration with a velocity-Verlet algorithm and short-range cutoffs (e.g., 3.5σ) to ensure computational efficiency.
- Leverages highly optimized communication patterns tailored to the topology of modern HPC systems, minimizing latency and maximizing bandwidth.
Experimental results
Research questions
- RQ1Can a molecular dynamics code achieve near-ideal strong and weak scaling on over 140,000 cores for large-scale fluid simulations?
- RQ2How effective is dynamic load balancing in maintaining high performance for highly heterogeneous and non-equilibrium systems?
- RQ3What is the maximum system size achievable with current MD codes, and can it reach the micrometer scale and microsecond timescale?
- RQ4How does the performance of ls1 mardyn compare across different HPC architectures, particularly with 3D torus vs. tree-based interconnects?
- RQ5To what extent can a modular, extensible codebase support future physical models and HPC hardware evolution?
Key findings
- ls1 mardyn achieved a parallel efficiency of 82.5% on 32,768 cores of the hermit supercomputer, demonstrating superior strong scaling compared to SuperMUC.
- The code achieved 91.5% weak scaling efficiency and 76.8 TFLOPS on 32,768 cores, reaching 12.8% of peak performance.
- The largest MD simulation to date was performed with 4.125 × 10^12 molecules on SuperMUC, achieving a speedup of 133,183 compared to a single core.
- The simulation reached an absolute performance of 591.2 TFLOPS, corresponding to 9.4% of peak performance on 140,000 cores.
- Dynamic load balancing significantly improved scalability in challenging, heterogeneous configurations, enabling stable performance across diverse system morphologies.
- The code is publicly available under a two-clause BSD license, supporting future adaptation to new HPC systems and physical models.
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.