Abstract
Molecular dynamics (MD) simulations are vital for scientific discovery but face significant computational hurdles at scale. While Deep Potential (DP) schemes offer ab initio accuracy, predicting their performance on heterogeneous supercomputers is challenging. This paper introduces DP-perf, an interpretable performance model designed to predict execution time and resource utilization for the DeePMD-kit. By modeling individual operators and communication patterns, DP-perf enables researchers to optimize hardware configurations for massive simulations, achieving high accuracy across diverse architectures like Fugaku and Summit.
Introduction
Molecular dynamics (MD) is a cornerstone of modern science, enabling the study of complex systems from drug interactions to battery chemistry. However, traditional ab initio MD is computationally prohibitive for large systems. Neural Network Molecular Dynamics (NNMD), particularly the Deep Potential (DP) scheme, has emerged as a solution, providing high accuracy at a fraction of the cost.
Despite this progress, a "performance gap" persists. Modern supercomputers utilize complex, heterogeneous architectures that make it difficult to predict how customized NNMD operators will perform. Researchers often resort to expensive trial-and-error runs to find optimal configurations. DP-perf addresses this by providing a predictive framework based on the algorithmic structure of the software rather than "black box" deep learning models.
The DP-perf Framework
DP-perf decomposes the performance of the DeePMD-kit into two primary layers: node-level computation and network-level communication.
Node-Level Modeling
The model characterizes individual operators such as Tabulate, Pad, and Fitting Net layers. Instead of empirical guessing, the authors derive equations for arithmetic workload ($N_{ops}$) and memory access ($M_{mem}$) based on physical system properties (e.g., atom counts, neighbor lists) and hardware specifications (e.g., peak PFLOPS, memory bandwidth).
A key insight is the "Tabulate" factor. The embedding network typically consumes over 90% of total computation time. By specifically modeling the Tabulate operator—which uses fifth-order polynomials to approximate neural networks—DP-perf achieves high predictive accuracy.
Network-Level Modeling
For distributed systems, DP-perf utilizes the LogP model to account for MPI communication latency. This captures the movement of "ghost atoms" (shared data between processors) across the network, allowing the model to scale its predictions to multi-node environments.
Experimental Setup and Benchmarks
The model was rigorously tested using two primary physical benchmarks: water systems (up to 243.8 million atoms) and copper systems (up to 212.5 million atoms). These benchmarks were evaluated across four top-tier supercomputers: Tianhe-3F (ARMv8), New Sunway (SW26010-pro), Fugaku (A64FX), and Summit (POWER9 + NVIDIA V100).
Key Results and Discussion
DP-perf demonstrated exceptional accuracy and transferability. On training datasets, the model achieved a Mean Absolute Percentage Error (MAPE) as low as 5.7% on Tianhe-3F. More importantly, when applied to entirely unseen datasets, the MAPE remained under 20% across all tested platforms.
The model's predictive power was further highlighted by its ability to forecast performance for extreme-scale simulations. For instance, it predicted that an optimized DeePMD-kit could reach 938 TFLOPS for a 24-billion-atom water simulation on the full Tianhe-3F system.
Conclusion
DP-perf represents a significant advancement in the efficient use of supercomputing resources for molecular dynamics. By prioritizing interpretability and physical grounding, the model offers a transferable tool for researchers to navigate the complexities of modern hardware. Future work will focus on incorporating network topology awareness and cache-line utilization to further refine accuracy at the exascale.
Summary updated