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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Optimized M‐ SHAKE Constraint Implementations for GPU ‐Accelerated Molecular Dynamics: Balancing Precision and Performance Across Architectures

Chigusa Kobayashi, Katsuhisa Ozaki, Jaewoon Jung, Diego Ugarte La Torre et al.
Journal of Computational Chemistry
Protein Structure and Dynamics
article

Optimized M‐ SHAKE Constraint Implementations for GPU ‐Accelerated Molecular Dynamics: Balancing Precision and Performance Across Architectures

Chigusa Kobayashi, Katsuhisa Ozaki, Jaewoon Jung, Diego Ugarte La Torre, Yuji Sugita
article en

Abstract

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.

Journal of Computational ChemistryVol. 47(25)
Pioneer (United States) (US), Shibaura Institute of Technology (JP), RIKEN Center for Computational Science (JP), The University of Tokyo (JP)
Ministry of Education, Culture, Sports, Science and Technology
Affordable and clean energy
Openalex Percentile: Top 18%
Protein Structure and Dynamics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.