Optimized M‐ SHAKE Constraint Implementations for GPU ‐Accelerated Molecular Dynamics: Balancing Precision and Performance Across Architectures
ABSTRACT In molecular dynamics (MD) simulations, enforcing holonomic constraints on specific interatomic distances is crucial to extend the integration time step while maintaining numerical stability. While double‐precision arithmetic has traditionally been used to ensure numerical accuracy, there is a growing demand for single‐ and mixed‐precision calculations as GPU‐accelerated MD simulations become increasingly widespread. In this study, we present improvements to the constraint solvers through an analytical treatment for bonds involving a single hydrogen atom ( groups). For more complex groups with multiple hydrogens ( and ), we introduce two precision‐level implementation strategies: (1) a mixed‐precision approach, where variables are generally described in single‐precision while temporary coordinate updates are handled in double‐precision and (2) a pairwise arithmetic approach, where temporary coordinate variables are represented as pairs of single‐precision values to reduce rounding errors. These implementation strategies reduce velocity‐update errors compared with schemes using single precision for all variables. Energy drift analysis in microcanonical simulations confirms that these strategies maintain accuracy comparable to full double‐precision implementations. Performance benchmarks on GPUs with limited FP64 throughput (RTX 3080 and A6000 Ada) show that our proposed implementation strategies substantially reduce runtime compared with full double‐precision calculations. Conversely, on architectures with balanced FP32 and FP64 performance, such as CPUs or H100 GPUs, full double‐precision arithmetic remains the preferred choice for the constraint kernels evaluated in this study. Overall, these findings demonstrate that the proposed strategies provide an effective balance between numerical accuracy and computational performance on GPUs with limited FP64 throughput.
Authors
- Chigusa Kobayashi (ORCID: https://orcid.org/0000-0002-5603-4619)
- Katsuhisa Ozaki (ORCID: https://orcid.org/0000-0003-0431-6232)
- Jaewoon Jung (ORCID: https://orcid.org/0000-0002-2285-4432)
- Diego Ugarte La Torre (ORCID: https://orcid.org/0000-0002-8391-8065)
- Yuji Sugita (ORCID: https://orcid.org/0000-0001-9738-9216)
Institutions
- Pioneer (United States) (US)
- Shibaura Institute of Technology (JP)
- RIKEN Center for Computational Science (JP)
- The University of Tokyo (JP)
Publication Details
- Journal
- Journal of Computational Chemistry
- Published
- 2026-09-17
- DOI
- https://doi.org/10.1002/jcc.70492
- Primary Topic
- Protein Structure and Dynamics
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Ministry of Education, Culture, Sports, Science and Technology