선정목록으로
86 PFLOPS Deep Potential Molecular Dynamics simulation of 100 million atoms with ab initio accuracy
수소연료전지 · (6) PEM(고분자전해질막)
기본 정보
- 저자
- DOI
- 10.48550/arxiv.2004.11658
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.2004.11658
- 토픽
- Electrocatalysts for Energy Conversion
- OpenAlex ID
- W6911077858
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (6) PEM(고분자전해질막)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
We present the GPU version of DeePMD-kit, which, upon training a deep neural network model using ab initio data, can drive extremely large-scale molecular dynamics (MD) simulation with ab initio accuracy. Our tests show that the GPU version is 7 times faster than the CPU version with the same power consumption. The code can scale up to the entire Summit supercomputer. For a copper system of 113, 246, 208 atoms, the code can perform one nanosecond MD simulation per day, reaching a peak performance of 86 PFLOPS (43% of the peak). Such unprecedented ability to perform MD simulation with ab initio accuracy opens up the possibility of studying many important issues in materials and molecules, such as heterogeneous catalysis, electrochemical cells, irradiation damage, crack propagation, and biochemical reactions.
본문 81,655자
본문 펼치기
## 86 PFLOPS Deep Potential Molecular Dynamics simulation of 100 million atoms with ab initio accuracy
Denghui Lu <sup>a</sup>, Han Wang <sup>b</sup>, Mohan Chen <sup>a</sup>, Jiduan Liu <sup>c</sup>, Lin Lin <sup>d,e</sup>, Roberto
Car <sup>f</sup>, Weinan E <sup>f</sup>, Weile Jia <sup>d,</sup> <sup>_∗_</sup>, Linfeng Zhang <sup>f,</sup> <sup>_∗_</sup>
_aCAPT,_ _HEDPS,_ _College_ _of_ _Engineering,_ _Peking_ _University_
_bLaboratory_ _of_ _Computational_ _Physics,_ _Institute_ _of_ _Applied_ _Physics_ _and_ _Computational_
_Mathematics_
_cPeking_ _University_
_dUniversity_ _of_ _California,_ _Berkeley_
_eLawrence_ _Berkeley_ _National_ _Laboratory_
_fPrinceton_ _University_
Abstract
We present the GPU version of DeePMD-kit, which, upon training a deep
neural network model using _ab_ _initio_ data, can drive extremely large-scale
molecular dynamics (MD) simulation with _ab_ _initio_ accuracy. Our tests
show that for a water system of 12 _,_ 582 _,_ 912 atoms, the GPU version can be
7 times faster than the CPU version under the same power consumption.
The code can scale up to the entire Summit supercomputer. For a copper
system of 113 _,_ 246 _,_ 208 atoms, the code can perform one nanosecond MD
simulation per day, reaching a peak performance of 86 PFLOPS (43% of
the peak). Such unprecedented ability to perform MD simulation with _ab_
_initio_ accuracy opens up the possibility of studying many important issues
in materials and molecules, such as heterogeneous catalysis, electrochemical
cells, irradiation damage, crack propagation, and biochemical reactions.
_Keywords:_ Deep potential, molecular dynamics, GPU, heterogeneous
architecture, DeePMD-kit
_∗_ Corresponding author.
_E-mail_ _address:_ jiaweile@berkeley.edu,linfengz@princeton.edu
_Preprint_ _submitted_ _to_ _Computer_ _Physics_ _Communications_ _September_ _8,_ _2020_
NEW VERSION PROGRAM SUMMARY
_Program_ _Title:_ _DeePMD-kit_
_CPC_ _Library_ _link_ _to_ _program_ _files:_ (to be added by Technical Editor)
_Developer’s_ _repository_ _link:_ https://doi.org/10.5281/zenodo.3961106
_Code_ _Ocean_ _capsule:_ (to be added by Technical Editor)
_Licensing_ _provisions:_ LGPL
_Programming_ _language:_ _C++/Python/CUDA_
_Supplementary_ _material:_
_Journal_ _reference_ _of_ _previous_ _version:_ - [http://dx.doi.org/10.17632/hvfh9yvncf.1](http://dx.doi.org/10.17632/hvfh9yvncf.1)
_Does_ _the_ _new_ _version_ _supersede_ _the_ _previous_ _version?:_ - Yes.
_Reasons_ _for_ _the_ _new_ _version:*_ Parallelize and optimize the DeePMD-kit for modern high performance computers.
_Summary_ _of_ _revisions:_ - The optimized DeePMD-kit is capable of computing 100
million atoms molecular dynamics with _ab_ _initio_ accuracy, achieving 86 PFLOPS
in double precision.
_Nature_ _of_ _problem(approx._ _50-250_ _words):_ Modeling the many-body atomic interactions by deep neural network models. Running molecular dynamics simulations
with the models.
_Solution_ _method(approx._ _50-250_ _words):_ The Deep Potential for Molecular Dynamics (DeePMD) method is implemented based on the deep learning framework
TensorFlow. Standard and customized TensorFlow operators are optimized for
GPU. Massively parallel molecular dynamics simulations with DeePMD models
on high performance computers are supported in the new version.
References
[1] Reference 1 Wang, Han, Linfeng Zhang, Jiequn Han, and E. Weinan.
”DeePMD-kit: A deep learning package for many-body potential energy representation and molecular dynamics.” Computer Physics Communications 228
(2018): 178-184.
- Items marked with an asterisk are only required for new versions of programs
previously published in the CPC Program Library.
2
1. Introduction
In recent years, there has been a surge of interest in using _ab_ _initio_ simulation tools for a microscopic understanding of various macroscopic phenomena in many different disciplines, such as chemistry, biology, and materials
science. One of the most powerful tools has been the _ab_ _initio_ molecular
dynamics (AIMD) scheme [1]: By generating on-the-fly the potential energy
surface (PES) and the interatomic forces from first-principles density functional theory (DFT) [2, 3] during molecular dynamics (MD) simulations, it
is possible to obtain an accurate description of the dynamic behavior of the
system under study at the atomic level. However, due to the complexity associated with DFT, the spatial and temporal scales accessible by AIMD have
been limited. Most routine AIMD calculations can only deal with systems
with hundreds of atoms on the time scale of picoseconds. Although many
linear-scaling DFT methods have been developed [4, 5] and some of them have
been implemented on high performance computing (HPC) architectures for
large-scale atomic simulation with tens of thousands of atoms [6, 7], they are
mostly limited to insulating systems with relatively large band gaps.
For many problems of practical interests, such as heterogeneous catalysis,
electrochemical cells, irradiation damage, crack propagation in brittle materials, and biochemical reactions, etc., a system size of thousands to millions
of atoms, or even larger, is often required. In these cases, one usually has
to resort to empirical force fields (EFFs), currently the main driving force of
large-scale MD. In the past two decades, tremendous efforts have been made
to develop parallel algorithms and softwares for EFF-based MD (EFFMD)
on general purpose HPC machines [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24]. Representative examples include the optimization
of the long-range electrostatic interaction [25, 26, 27, 28] and adapted MD
algorithms for accelerators like GPU [29, 30, 26, 31] and FPGA [32, 33].
Besides general-purpose HPCs, there have also been constant attempts to
build special-purpose hardware to boost the performance of MD simulation [34, 35, 36, 37, 38]. These attempts have made it possible to perform
EFFMD for systems up to a spatial scale of sub-millimeters (twenty trillion
atoms) [22] or a temporal scale of up to milliseconds [38]. Unfortunately,
the practical significance of these efforts is hindered by the limitation of the
accuracy and transferability of the EFFs. For example, it has been hard,
if not impossible, to develop accurate and general-purpose EFF models for
multi-element alloys.
3
Recent development of machine learning (ML) methods has brought new
hope to addressing this problem and there have been a flurry of activities
on ML-based models of the PES [39, 40, 41, 42, 43, 44, 45, 46, 47]. Despite
the growing importance of the ML-based MD (MLMD), publicly available
softwares are still rare in comparison to the EFFMD. The few existing ones
are mainly designed for MLMD running on desktop GPU workstations or on
CPU-only clusters [48, 49, 50, 51, 52, 53, 54]. For example, Lee et. al. reported an implementation of the Behler-Parrinello neural network potential
interfaced with LAMMPS package. In a SiO2 system with 13,500 atoms, it
scaled up to 80 CPU cores on a cluster with Intel Xeon E5-2650v2 CPUs [52].
Singraber et. al. implemented the Behler-Parrinello neural network potential
as a library and interfaced it with LAMMPS for molecular dynamics simulation. By using a water system with 2,880 molecules (8,640 atoms) as the
test case, it was demonstrated that the implementation scaled to 512 CPU
cores on a cluster with Intel Xeon Gold 6138 CPUs [53]. To the best of our
knowledge, no attempt has been made to implement and optimize MLMD to
fully utilize the computational resources of modern heterogeneous supercomputers like Summit. As a consequence, although in principle MLMD makes
it possible to achieve AIMD accuracy with EFFMD efficiency, this has not
been realized in practice.
Among the various ML models proposed in the past few years, the Deep
Potential (DP) scheme [45, 46, 47] stands out as an end-to-end way of constructing accurate and robust PES models for a wide variety of systems.
This was made possible due to the smooth symmetry-preserving embedding sub-net in DP (in addition to the fitting net), as well as the adaptive data generating scheme (in the framework of concurrent learning [55])
Deep Potential Generator (DP-GEN) [56]. DP-based molecular dynamics
(DeePMD) can reach the accuracy of AIMD while reducing its cost by several orders of magnitude. Generalizations of the DP scheme have also made
it possible to represent the free energy of coarse-grained particles [57] and
various electronic properties [58, 59, 60]. In addition, an open-source implementation of DeePMD, named DeePMD-kit [50], has attracted researchers
from various disciplines. DP models have been used to study problems like
first-order phase transitions [61], infrared spectroscopy and Raman spectroscopy [58, 59], nuclear quantum effects [62], and various phenomena in
chemistry [63, 64, 65] and materials sciences [66, 67, 68, 69].
Nevertheless, the performances of DeePMD-kit and other DeePMD-based
codes are limited by their sub-optimal implementation. Although the train
4
ing of DP models is rather efficient (typically less than one day on a single
GPU card for most systems), extensive optimizations are required for model
inference, namely to predict the energy and forces on-the-fly during an MD
run, and to truly boost AIMD to large system size and long time scale.
To perform large-scale MD simulations, DeePMD-kit interfaces with LAMMPS [13]
and TensorFlow [70]. LAMMPS provides the basic infrastructure for MD,
while TensorFlow provides a flexible toolbox for the deep learning part of
DeePMD. In each MD step, DeePMD-kit retrieves atomic coordinates from
LAMMPS that maintains the atomic information and the spatial partitioning
of the system. Then environment matrices that describe the relative positions of atoms are computed from the coordinates. In this step, the memory
is accessed in a random order, which cannot be efficiently implemented by
standard TensorFlow operators, so it is implemented by DeePMD-kit as a
customized TensorFlow operator. Next, the environment matrices are converted to descriptors that describe the neighboring environment of atoms,
and the descriptors are passed to a standard deep neural network (DNN) to
produce atomic energies. This step is implemented by standard TensorFlow
operators. Finally, the atomic energies and forces (obtained by back propagation) are returned to LAMMPS to update the atomic coordinates and
momenta by numerical schemes.
The Summit supercomputer, which has a peak performance of 200 PFLOPS
(Peta floating point operations per second), provides us with an unprecedented opportunity to speedup DeePMD. However, the original DeePMD-kit
is not suitable for the heterogeneous architecture of Summit for the following
reasons: (1) The environment matrix is only implemented on CPUs, this
becomes the computational bottleneck when the descriptors and atomic energies are computed on GPUs. (2) Although standard TensorFlow operators
support GPU computation, the original DeePMD-kit can not assign multiple
GPUs to multiple MPI processes in a massively parallel environment, thus
only single GPU serial computation or multiple CPUs parallel computation
are feasible. (3) The sizes of the DNNs in DP are relatively small, and the
efficiency of the standard TensorFlow computational graph is relatively low.
To fully harness the power of Summit and future supercomputers, we
need to address the following questions: (1) What is the best parallelization
scheme for DeePMD-kit on a heterogeneous supercomputer like Summit? (2)
How can we improve the efficiency of DeePMD-kit on a GPU supercomputer
for both customized and standard TensorFlow operators? (3) What is the
scaling bottleneck of DeePMD-kit and how can we further improve its effi
5
ciency on architectures of future supercomputers? Furthermore, we would
also like to understand: (1) What is the limit of DeePMD-kit on Summit
both in terms of system size and computational speed (time-to-solution)?
(2) What is the maximal achievable speedup factor of the GPU version of
DeePMD-kit versus the CPU version by using the same number of nodes or
the same power consumption?
The main contributions of this paper are:
_•_ We find that DeePMD can use the same data distribution scheme of
EFFMD, and parallelization is highly scalable on heterogeneous supercomputers.
_•_ By carefully optimizing the CUDA customized TensorFlow operators
and re-constructing the architecture of the standard TensorFlow operators, DeePMD-kit can reach 43% peak performance (86 PFLOPS) on
Summit.
_•_ By carefully analysing the scaling of DeePMD-kit, we identify the latency of both the GPU and network as the bottleneck of the current
heterogeneous platform, which requires future improvements to push
the limit of scales and applications that DeePMD-kit can handle.
_•_ Weak scaling shows that the GPU version of DeePMD-kit can scale up
to the entire Summit supercomputer, on a copper system with 113 million atoms. The strong scaling of a water system shows that DeePMDkit can reach 110 MD steps per second for a 4 million molecular water
system with _ab_ _initio_ accuracy.
_•_ Our test results show that the GPU DeePMD-kit can be 39 times faster
compared to the CPU version when using the same number of nodes,
and 7 times faster under the same power consumption on Summit.
The rest of this paper is organized as follows: The Deep Potential algorithm is introduced in Section 2, with implementation details provided in
Section 3. The physical system and testing platform are presented in Sections 4 and 5, respectively. Results are discussed in Section 6, followed by a
performance analysis in Section 7. Conclusions are drawn in Section 8.
6
2. The Deep Potential model
The central quantity of an MD simulation is the PES _E_, a function of the
atomic coordinates ( _r_ 1 _, . . . rN_ ) _∈_ R <sup>3</sup> <sup>_N_</sup> . The DP model expresses _E_ as a sum
of atomic contributions, i.e., _E_ = <sup>�</sup> _i_ <sup>_Ei_</sup> <sup>.</sup> <sup>The contribution</sup> <sup>_Ei_</sup> <sup>from the atom</sup>
_i_ depends only on _Ri_, the local environment of _i_ : _Ri_ = _{rij_ : _j_ _∈_ _L_ ( _i_ ) _}_, where
_rij_ = _rj_ _−_ _ri_ . Here the neighbor index set _L_ ( _i_ ) is defined by _{j_ : _|rij|_ _≤_ _rc}_,
and _rc_ is a predefined cutoff radius. In the DP model, _Ri_ is first mapped via
an embedding net onto a symmetry-preserving descriptor _D_, and then _D_ is
mapped via a fitting network _N_ to give _Ei_, i.e.,
_Ei_ = _N_ ( _D_ ( _Ri_ )) _._ (1)
Here the fitting net _N_ is chosen to be a fully connected DNN with _l_ hidden
layers:
_N_ ( _x_ ) = _L_ <sup>_f_</sup> _l_
1 <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_,_</sup> (2)
<sup>_f_</sup> _l_ <sup>_◦· · · ◦L_</sup> 1 <sup>_f_</sup>
where _◦_ denotes the function composition. Within each hidden layer, a skip
connection between the input and the output is used,
_L_ <sup>_f_</sup> _k_
<sup>_f_</sup> _k_ <sup>(</sup> <sup>_x_</sup> <sup>) =</sup> <sup>_x_</sup> <sup>+ tanh(</sup> <sup>_x · W f_</sup> _k_
<sup>_f_</sup> _k_ <sup>+</sup> <sup>_b_</sup> _k_ <sup>_f_</sup>
_k_ <sup>_f_</sup> <sup>)</sup> <sup>_,_</sup> (3)
with the weight _Wk_ <sup>_f_</sup>
_k_ <sup>_f_</sup> <sup>being</sup> <sup>a</sup> <sup>square</sup> <sup>matrix</sup> <sup>and</sup> <sup>the</sup> <sup>bias</sup> <sup>_bf_</sup> _k_
with the weight _Wk_ <sup>_f_</sup> <sup>being</sup> <sup>a</sup> <sup>square</sup> <sup>matrix</sup> <sup>and</sup> <sup>the</sup> <sup>bias</sup> <sup>_bf_</sup> _k_ <sup>being</sup> <sup>a</sup> <sup>vector</sup>
with the same size as the input _x_ . The activation function tanh is applied
component-wise.
The descriptor _D_, which is required to preserve the translational, rotational and permutational symmetries, has the form
_D_ ( _Ri_ ) = ( _Gi_ <sup>_<_</sup> <sup>)</sup> <sup>_T_</sup> <sup>_R_</sup> <sup>˜</sup> <sup>_i_</sup> <sup>( ˜</sup> <sup>_Ri_</sup> <sup>)</sup> <sup>_T_</sup> <sup>_Gi,_</sup> (4)
where _R_ <sup>˜</sup> _i_ _∈_ R <sup>_Nm×_</sup> <sup>4</sup> is the environment matrix, and _Nm_ is the largest number
of neighbors for all the atoms. Each row of the environment matrix is a four
dimensional vector:
_s_ ( _rij_ ) _×_
- 1 _, xij/|rij|, yij/|rij|, zij/|rij|_ _,_ (5)
where _s_ ( _rij_ ) = _w_ ( _|rij|_ ) _/|rij|_ and _w_ ( _|rij|_ ) is a gating function that decays
smoothly from 1 to 0 at _|rij|_ = _rc_ . The gating function ensures the smoothness of the environment matrix. ( _xij, yij, zij_ ) are the Cartesian coordinates of
7
_rij_ . If the number of neighbors of atom _i_ is less than _Nm_, the empty entries
of _R_ <sup>˜</sup> _i_ will be filled by zeros. _Gi_ _∈_ R <sup>_Nm×M_</sup> is called the embedding matrix,
with each row being an _M_ dimensional vector
- _G_ 1( _s_ ( _rij_ )) _, . . ., GM_ ( _s_ ( _rij_ ))� _._ (6)
Here for each neighbor _j_, the input scalar _s_ ( _rij_ ) is mapped to the output _M_
dimensional vector _G_ = ( _G_ 1 _, . . ., GM_ ) via the so-called embedding net _G_, a
DNN with the form
_G_ ( _x_ ) = _L_ <sup>_e_</sup>
<sup>_e_</sup> 1 <sup>_◦L_</sup> 0 <sup>_e_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_._</sup> (7)
<sup>_e_</sup> _m_ <sup>_◦· · · ◦Le_</sup> 1
The first hidden layer is a standard feed forward network taking a scalar as
input and outputting a vector of size _s_ 1:
_L_ <sup>_e_</sup> 0 <sup>(</sup> <sup>_x_</sup> <sup>) = tanh(</sup> <sup>_x · W e_</sup> 0 <sup>+</sup> <sup>_b_</sup> 0 <sup>_e_</sup> <sup>)</sup> <sup>_,_</sup> (8)
where _W_ 0 <sup>_e_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_s_</sup> <sup>1</sup> <sup>and</sup> <sup>_b_</sup> 0 <sup>_e_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>denote</sup> <sup>the</sup> <sup>weight</sup> <sup>and</sup> <sup>bias,</sup> <sup>respectively.</sup> <sup>The</sup>
rest of the hidden layers are expressed as
_L_ <sup>_e_</sup> _k_
<sup>_e_</sup> _k_ <sup>(</sup> <sup>_x_</sup> <sup>) = (</sup> <sup>_x, x_</sup> <sup>) + tanh(</sup> <sup>_x · W e_</sup> _k_
<sup>_e_</sup> _k_ <sup>+</sup> <sup>_b_</sup> _k_ <sup>_e_</sup>
_k_ <sup>_e_</sup> <sup>)</sup> <sup>_._</sup> (9)
Here the output size is twice of the input size, i.e., _sk_ = 2 _sk−_ 1. The weight
is a matrix of size _sk−_ 1 _× sk_ and the bias is a vector of size _sk_ . ( _x, x_ ) _∈_ R <sup>_sk_</sup>
denotes the concatenation of two _x_ _∈_ R <sup>_sk−_</sup> <sup>1</sup> . The only restriction imposed
on the sizes of hidden layers is that the output size of the final layer should
be identical to _M_, i.e., _sm_ = _M_ . In Eq. (4), the matrix _Gi_ <sup>_<_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_Nm×M_</sup> <sup>_<_</sup> <sup>with</sup>
_M_ <sup>_<_</sup> _< M_ is a sub-matrix of _Gi_ formed by taking the first _M_ <sup>_<_</sup> columns of _Gi_ .
_Remark_ _1._ The DP formulation (1) can be easily generalized to multicomponent (with atoms of multiple chemical species) systems. In this case,
a fitting net _N_ is built for each chemical species in the system, i.e., _Ei_ =
_Nαi_ ( _D_ ( _Ri_ )), where _αi_ denotes the chemical species of the atom indexed with
_i_ . The chemical species of the neighbors of the atom _i_ are encoded in the
descriptor (4) by separate embedding nets built for all possible combinations
of the chemical species of two neighboring atoms, i.e., _G_ <sup>_αi,αj_</sup> ( _s_ ( _rij_ )). For
example, for a system with 3 chemical species, 3 fitting nets and 9 embedding
nets will be constructed.
_Remark_ _2._ The force on atom _i_ is defined as the negative gradient of the
total energy with respect to _ri_ :
_Fi_ = _−∇riE_ = _−_
8
_j_
_∇riEj,_ (10)
Figure 1: Data distribution and workflow of the DeePMD-kit. (a) Spatial subdivision
of a system and the associated allocation of computational resources. Each sub-region
is represented by a square. (b) The ghost region (red) for one sub-region (green). The
open particles in the big circle with radius _rc_ are the neighbors of the solid particle.
The width of the ghost region should be equal to or larger than _rc_ . (c) The singleatom DP workflow. The green step, i.e., the environment matrix _R_ <sup>˜</sup> _i_, is implemented
by a customized TensorFlow operator, while the red steps are implemented by standard
TensorFlow operators (see the text for details).
where the force components _∇riEj_ are calculated by the back propagation.
_Remark 3._ For one evaluation of the DP model, the fitting net is evaluated
for each atom, so the computational cost is of _O_ ( _N_ ). The embedding net is
evaluated for each pair of neighbors, so the computational cost is of _O_ ( _N_ _×_
_Nm_ ). The value of _Nm_ depends on the density of the system and _rc_ . Usually
_Nm_ is of the order 100 _∼_ 1000. Therefore, the evaluation of the embedding
net is roughly two to three orders of magnitude more expensive than the
fitting net.
3. Implementation
_3.1._ _Parallelization_
The DeePMD-kit takes advantage of the LAMMPS software package [13]
by replacing the short-range EFF with the energy and forces derived from
DP. Therefore, the data structure and parallelization strategy of LAMMPS
are inherited by the DeePMD-kit code. More specifically, we provide a new
`pair` `style` named `deepmd` by implementing DP as a new derived class of
the base class `Pair` . It is worth noting that although DP is invoked by a
” `pair` `style` ”, it is a multi-body interaction, which can be easily seen from
the construction of DP in Sec. 2.
A two dimensional illustration of the data distribution in DeePMD-kit is
shown in Fig. 1 (a). The physical system is divided into sub-regions, and
9
then distributed among different computing units. For each sub-region, an
extra ghost region of size larger than or equal to _rc_ is needed to search neighbors of atoms, as shown in Fig. 1 (b). In each MD step, the single-atom
DP workflow (Fig. 1 (c)) is conducted for each atom: First, the neighbor
list is updated from the sub-region on the current computing unit, then the
environment matrix _R_ <sup>˜</sup> _i_ is computed from the neighbor list via a customized
TensorFlow operator; Next, the atomic energy and force increments are evaluated through the DP model to update the atoms in the sub-region; Finally,
the force increments in the ghost region are communicated among adjacent
MPI processes, and global properties, such as energy, are communicated
globally by MPI ~~A~~ llreduce operations. All of the positions and velocities of
atoms are updated using the resulting forces according to a certain numerical
scheme.
_Remark 4_ . The GPU version of LAMMPS takes advantage of the identity
_∇riEj_ = _−∇rj_ _Ei_, which holds for most of the EFFs, so that the force of
atom _i_ is given by _Fi_ = <sup>�</sup> _j_ <sup>_∇r_</sup> _j_ <sup>_Ei_</sup> <sup>according</sup> <sup>to</sup> <sup>Eq.</sup> <sup>(10).</sup> Therefore, all
components of _Fi_ are computed on the computing unit that holds atom _i_,
and the communications of force components are avoided. By contrast, the
relation _∇riEj_ = _−∇rj_ _Ei_ dose not hold for DP as _i̸_ = _j_, so we have to
fallback to the CPU version of LAMMPS that is able to transfer back the
component _∇riEj_ computed on a non-native computing unit holding atom _j_
if it is in the ghost region.
_3.2._ _GPU_ _Implementation_ _and_ _optimization_
_3.2.1._ _Naive_ _GPU_ _implementation_
The implementation of the DP model in DeePMD-kit is based on TensorFlow, a popular open-source software library for machine learning applications with GPU support [70]. One common practice is to link the GPU
supported TensorFlow to build the executable, so all DP operations implemented by standard TensorFlow operators (red boxes in Fig. 1(c)) are accelerated by GPU without additional effort. The testing results indicate that
an overall 26.53 times of speedup can be achieved using a single NVIDIA
V100 GPU compared to a single Intel Xeon Gold 6132 CPU core for a typical water system consisted of 12,288 atoms (4,096 molecules). We remark
that throughout this section, the naive GPU implementation serves as the
baseline of optimization. The same water system is used for benchmarking
purposes, and one MPI process using one thread is bound to a single GPU.
10
Figure 2: Schematic plot of the computation of the environment matrix _R_ <sup>˜</sup> _i_ . (a) The first
step: forming and formatting the neighbor list. The yellow squares stand for the neighbors
of type 0, and the purple squares stand for the neighbors of type 1. The neighbors are first
sorted according to their types (as shown in the figure), and then sorted according to their
distance and their original atomic indices (not shown in the figure). The blank squares
represent the padded positions in the neighbor list. (b) The second step: computing the
environment matrix by using the formatted neighbor list, using the example of computing
_R_ ˜ 0.
_3.2.2._ _Customized_ _TensorFlow_ _operators_
The customized TensorFlow operator for the environment matrix _R_ <sup>˜</sup> _i_ is
denoted by ”Environment” and dominates the computational cost after linking the GPU TensorFlow library, because unlike the standard TensorFlow
operators that support GPU, it only supports CPU in the original version of
DeePMD-kit. The operator Environment includes two steps, formatting the
neighbor list and computing the environment matrix by using the formatted
neighbor list.
The algorithm for formatting the neighbor list is shown in Alg. 1. The
arbitrary ordered neighbor list of atom _i_ shown in Fig. 2 (a) is sorted first
based on the type of neighboring atoms, and then on the atomic distances
_rij_ . In the case where two neighbors are of the same type and distance,
11
<u>Algorithm</u> <u>1</u> <u>Formatting</u> <u>the</u> <u>neighbor</u> <u>list</u>
Input: Atomic position _{ri}_, the corresponding neighbor list _L_ ( _i, j_ )
Output: Formatted neighbor list _L_ <sup>˜</sup> ( _i, j_ )
1: for each _i ∈_ [0 _, Nl_ ) do
2: for each _k_ _∈_ [0 _, L_ ( _i_ ) _._ size) do
3: _j_ = _L_ ( _i, k_ )
4: _rij_ = _rj_ _−_ _ri,_ _|rij|_ = <sup>_√_</sup> _<u>rij</u>_ _<u>· rij</u>_
5: _S_ ( _i, k,_ 0) = _α_ ( _j_ ) _,_ _S_ ( _i, k,_ 1) = _|rij|,_ _S_ ( _i, k,_ 2) = _j_
6: end for
7: Sort the second dim with the third dim as key _S_ _→_ _S_ <sup>_∗_</sup>
8: Pad the second dim _S_ <sup>_∗_</sup> _→_ _S_ <sup>_∗∗_</sup>
9: _L_ ˜( _i,_ :) = _S_ <sup>_∗∗_</sup> ( _i,_ : _,_ 2)
10: <u>end</u> <u>for</u>
the neighbor with a smaller atomic index is placed before the neighbor with
a larger atomic index. The neighbors with different types in the neighbor
list are then padded, so that they are aligned to the maximal number of
neighbors of that type, as shown in Fig. 2 (a). The reason for this operation
is the following: in the computation of the embedding matrix, the neighbors
of atoms _i_ are scanned over, and each row of the embedding matrix _Gi_ is
computed by passing _s_ ( _rij_ ) (the first element of the corresponding row of
_R_ ˜ _i_ ) to the embedding net _G_ <sup>_α_</sup> _i_ <sup>_,α_</sup> _j_, which introduces a conditional branching
according to the type of atom _j_ . Sorting and padding of the neighbor list
avoids this unfavorable branching. In our GPU code, the construction of
the neighbor list is still on CPU due to the problem of GPU LAMMPS for
DP, as explained by Remark 4 of Sec. 3.1. In practice, the neighbor list is
usually updated every 10 to 50 steps in an MD simulation, so our current
implementation results in a satisfactory performance.
In order to efficiently format the neighbor list on the GPU, we perform
the following optimization steps:
1. _Naive_ _CUDA_ _customized_ _kernels._ The first step of optimization is
to write a single CUDA customized kernel to accelerate the computation
of Alg. 1. In this step, the first for loop (line 1) is unrolled with CUDA
blocks and threads. Each CUDA thread is then responsible for calculating
and sorting the neighbor list of a particular atom _i_ .
2. _Converting_ _array_ _of_ _structures_ _(AoS)_ _to_ _structure_ _of_ _arrays_ _(SoA)._ A
single element of the intermediate neighbor list _S_ is expressed by a structure
12
(see Alg. 1). For example the _k_ th neighbor of the _i_ th atom _S_ ( _i, k_ ) is a
structure of three elements ( _α_ ( _j_ ) _, |rij|, j_ ), where _α_ ( _j_ ) and _j_ are integers and
_|rij|_ is a floating point number. Thus the corresponding GPU memory is
not coalesced during the sorting procedure. One way of improving the GPU
performance is to store the neighbor list as SoA instead of AoS. The SoA can
improve the memory coalescing significantly, thus improving the performance
of the CUDA kernel.
3. _Unrolling_ _of_ _two_ _for_ _loops._ Two CUDA customized kernels are used
to implement Alg. 1 in this step. The first kernel is used to construct the
intermediate neighbor list _S_ (line 1-6). In this implementation, the first and
the second for loops are unrolled with CUDA blocks and threads respectively
to further exploit the computing power of V100 GPU. Then the intermediate
neighbor list is sorted and padded using a second kernel.
4. _Compressing_ _elements_ _of_ _the_ _neighbor_ _list_ _to_ _a_ _64_ _bit_ _integer._ The
NVIDIA CUB library provides state-of-the-art and reusable software components for every layer of the CUDA programming model, including block-wide
sorting. To efficiently use the CUB library, we compress _S_ ( _i, k_ ) into an unsigned long long number with the following equation:
_S_ ˜( _i, k_ ) = _α_ ( _j_ ) _×_ 10 <sup>15</sup> + _⌊|rij| ×_ 10 <sup>8</sup> _⌋×_ 10 <sup>5</sup> + _j_ (11)
The 19 decimals of an unsigned long long integer is divided into 3 parts to
store the neighbor list information: 4 decimal are used to store the atomic
type of the neighbor atom ( _α_ ( _j_ )), 10 decimals are used to store the distance
of atom _i_ and its neighbor atom ( _|rij|_ ), 5 decimals are used to store the
atomic index of the neighbor atom ( _j_ ). The range of all the three parts are
carefully chosen to fulfill the restrictions that the total number of atom types
is smaller than 1843, the cut-off radius is smaller than 100 <sup>˚</sup> A, and the number
of neighbors is smaller than 100,000. These restrictions are rarely violated in
typical MD simulations. The data compression is carried out before sorting,
and a decompression procedure is needed afterwards. Both the compression
and decompression are accelerated via CUDA customized kernels, and the
corresponding computational time is negligible. We find that the compression
reduces the total number of comparisons by half during the sorting procedure
without deteriorating the accuracy of the result.
Fig. 3 (a) shows the reduction of wall clock time associated with each
stage of optimization. The baseline version is implemented on CPU, and
tested with both single CPU core and single Xeon Gold 6132 socket with 14
13
cores by setting OpenMP threads to 14. We find that after all optimizations,
the neighbor list formatting is accelerated by 141 times comparing to single
CPU core and 12.25 times comparing to 14 CPU cores. We remark that
when using both sockets with OpenMP threads set to 28, the performance
is only slightly better than single socket due to the memory affinity.
<u>Algorithm</u> <u>2</u> <u>Computing</u> <u>the</u> <u>environment</u> <u>matrix</u> _<u>R</u>_ <sup>˜</sup>
Input: Atomic position _{ri}_, formatted neighbor list _L_ <sup>˜</sup> ( _i_ )
Output: Environment matrix _R_ <sup>˜</sup> _i_
1: for each _i ∈_ [0 _, Nl_ ] do
2: for each _k_ _∈_ [0 _,_ _L_ <sup>˜</sup> ( _i_ ) _._ size) do
3: _j_ = _L_ <sup>˜</sup> ( _i, k_ )
4: if _j_ is not a padded neighbor then
5: _rij_ = _rj_ _−_ _ri,_ _|rij|_ = <sup>_√_</sup> _<u>rij</u>_ _<u>· rij</u>_
-
6: _R_ ˜( _i, k_ ) = _s_ ( _rij_ ) 1 _, xij/|rij|, yij/|rij|, zij/|rij|_
7: else
8: _R_ ˜( _i, k_ ) = (0 _,_ 0 _,_ 0 _,_ 0)
9: end if
10: end for
11: <u>end</u> <u>for</u>
The algorithm of the second step of the operator Environment, computing the environment matrix, is shown in Alg. 2 and graphically illustrated by
Fig. 2 (b). The formatted neighbor list is taken as input, and the corresponding environment matrix is built based on line 6 in Alg. 2. It is noted that
the padded neighbors are skipped in the computation, and the corresponding
places of the environment matrix are filled with zeros.
The optimization for the computation of the environment matrix follows
the optimization steps 3 of formatting the neighbor list. The for loops in
Alg. 2 (line 1 and 2) are unrolled with CUDA blocks and threads. Each
thread only works on a specific _i, j, k_ to fully exploit the computing power
of V100 GPU. Two extra TensorFlow customized operators, ProdVirial and
ProdForce, are also accelerated with the same fashion. These operators are
used to calculate the force and virial outputs after the executions of embedding net and fitting net.
Fig. 3 (b) shows the wall clock time of the customized TensorFlow operators. The testing results show that our GPU implementation achieves 120, 35
14
Figure 3: (a) Wall clock time versus different levels of GPU optimization for formatting
the neighbor list, and (b) Performance of customized TensorFlow operators for a water
system of 12,288 atoms. The customized TensorFlow operators of the baseline code is
implemented on the CPU. The wall clock time of the baseline is measured using both
single CPU core and single Xeon Gold 6132 socket (14 cores with OpenMP threads set to
14). The GPU time is measured on single NVIDIA V100 GPU.
and 16 times of speedup for the Environment, ProdVirial, ProdForce operators, respectively. We remark that operators ProdVirial and ProdForce are
not fully optimized in the OpenMP implementation in DeePMD-kit because
of the atomic addition, thus only sequential results of these two operators are
shown in Fig. 3 (b). It is noted that the time for GPU memory allocations
and the CPU-GPU memory copy operations are not included in the tests.
For the water system consisting of 12,288 atoms, the total execution time
of all three customized operators reduced from 363 to _∼_ 6 ms, achieving a
speedup of 60 times. Since the customized operators take 76% of the total
time, the GPU version of DeePMD-kit gains a speedup of 4.0 compared to
the baseline implementation.
_3.2.3._ _Optimization_ _of_ _the_ _embedding_ _net_
The environment matrix is used to compute the embedding matrix and
assemble the descriptor, and finally the atomic energy contribution is computed by the fitting net, which takes the descriptor as input. All these steps
are implemented by the standard TensorFlow execution graph. As discussed
in Remark 2 in Section 2, the computational cost of the fitting net is of
order _O_ ( _Nm_ ), while the cost of the embedding net is of order _O_ ( _Nm × Nl_ ),
where _Nl_ being the number of atoms in the computing unit and _Nm_ being the
maximal number of neighbors of an atom. After optimizing the customized
15
Figure 4: Schematic plot of the execution graph of Eq. 9. (a) Implementation with the
standard TensorFlow operators. (b) Implementation with our optimized TensorFlow operators.
TensorFlow operators, about 85% of the total execution time is spent on the
embedding net, while only 6% of the execution time is used in the fitting net
in our benchmark system. Therefore, in this section, we benchmark and optimize the performance of the embedding net. The embedding net (Eq. (7))
is composed of several hidden layers. Except for the very first layer (8), the
successive layers (9) output a vector that is twice as large as the input vector.
Most of the computational cost is spend on the successive layers (Eq. (9))
rather than the first layer (Eq. (8)). Therefore, we focus our attention on
the successive layers.
The execution graph of Eq. (9) with standard TensorFlow operators is
presented in Fig. 4 (a). The TensorFlow operators such as the MATMUL,
component-wise SUM, TANH and CONCAT are executed to perform the
operations of matrix-matrix multiplication, summation, activation function,
and concatenation, respectively. MATMUL and TANH are two of the most
computationally intensive operators, and they can reach 72% and 16% of the
peak on the GPU, respectively. Other operators such as CONCAT and SUM
are bandwidth intensive with little floating point operations. Although link
16
ing to the GPU supported TensorFlow library provides considerable speedup
compared to the CPU code, as shown in Section 3.2.1, our profiling results
show that the total computational time is still dominated by those bandwidth intensive operators. For example, the computational time of CONCAT and SUM operators contributes 43% of the total. Thus we identify
these bandwidth-intensive operators as the ones that we make the greatest
effort to optimize.
First, we notice that the summation and matrix-matrix multiplication are
treated as two separated operators for evaluating _x_ _·_ _W_ + _b_ in the TensorFlow
execution graph, as shown in Fig. 4 (a). The MATMUL operator is invoked
to calculate _x_ _·_ _W_, where _x_ is a matrix of size 376 _,_ 832 _×_ 50 (oxygen-hydrogen
embedding) and _w_ is the weight matrix of size 50 _×_ 100 in the benchmark
system. Next, the SUM operator is called to add the bias _b_ to the resulting
matrix _x_ _·_ _W_ . As shown in Fig. 4 (b), the MATMUL and SUM operators can
be replaced by a single CUBLAS GEMM call ( _C_ = _αA × B_ + _βC_ ), which
has both matrix-matrix multiplication and summation, thereby avoiding the
corresponding SUM operator in the optimized implementation. It is noted
that _b_ is a vector, and it is converted to a matrix format by multiplying
with a transpose of the vector _one_ . The wall clock for performing the SUM
and MATMUL operators is reduced by 28% after merging them into a single
CUBLAS GEMM call.
Next, we move on to the optimization of the CONCAT operator shown
in Fig. 4 (a). The CONCAT operator is performed to concatenate two _x_ s
to form ( _x, x_ ) in Eq. (9). The concatenation result, together with the result
matrix of TANH operator, are summed up to produce the output of the
embedding net. In the standard TensorFlow execution graph, the CONCAT
operator is implemented via the EIGEN library, which is a C++ template
library for linear algebra. In our optimized version, we replace the CONCAT
operator with a matrix-matrix multiplication, so that the following SUM
operator (with the result of TANH) can be merged into one GEMM operator:
( _x, x_ ) + tanh( _· · ·_ ) _→_ _x ×_ ( _I, I_ ) + tanh( _· · ·_ )
- <u>��</u> <u>�</u>
GEMM
_._ (12)
It is noted that, in terms of performance, the matrix-matrix multiplication
is marginally better than the implementation of CONCAT by EIGEN, and
the main benefit comes from the removal of the SUM operator. The wall
clock time of the CONCAT and SUM operators is reduced by 55% after the
optimization.
17
Last but not the least, we optimize the TANHGrad operator, which performs the derivation of tanh( _x_ ) in the backward propagation of the embedding net. It is noted that Fig. 4 only shows the forward propagation of the
embedding net, and the TANHGrad operator is not included. However, in
each MD step, both forward and backward propagation of the embedding
net are executed. Noticing that the derivative of tanh( _x_ ) is also a function of tanh( _x_ ), i.e., _dxd_ <sup>tanh(</sup> <sup>_x_</sup> <sup>)</sup> <sup>=</sup> <sup>1</sup> <sup>_−_</sup> <sup>tanh2(</sup> <sup>_x_</sup> <sup>),</sup> <sup>we</sup> <sup>merge</sup> <sup>the</sup> <sup>TANH</sup> <sup>and</sup>
TANHGrad operators by implementing both functions in the same CUDA
customized kernel. Our testing results show that 37% of the execution time
is saved for the TANH and TANHGrad operators after optimization.
With all the optimizations above, an overall speedup factor of 1 _._ 18 is
achieved compared to the results in Section 3.2.2, and the cost of the matrixmatrix multiplication changes from 30% to 61% of the total execution time
in the benchmark system.
_3.2.4._ _GPU_ _memory_ _accommodation_
The memory footprint of the GPU version of DeePMD-kit sets the limit
of the system size, since each NVIDIA V100 GPU on the Summit supercomputer only has 16 GB memory. In the GPU code, the most memory demanding part is the embedding matrix _G_ . The number of floating point numbers
to store one embedding matrix is approximately _Nl × Nm × M_ . Here _Nl_ is
the number of atoms residing on the GPU, _Nm_ is the maximal number of
neighbors, and _M_ is the width of the output layer of the embedding net.
Therefore, the GPU memory requirement is not only restricted by the size
of the network ( _M_ ), but also related to the number of neighbors included in
the neighbor list. In the execution, three layers of embedding net are used,
and the output matrix size is twice of the input matrix. In the last layer,
the sizes of both the output matrix and its derivative are _Nl × Nm × M_ . An
extra matrix of size _Nl × Nm × M_ is used to perform the concatenation operation. Therefore, a total of 4.5 copies of the embedding matrix are needed
in the DeePMD-kit calculations as the equation shown below:
4 _._ 5 _× Nl × Nm × M_ _×_ `sizeof` ( _data_ _~~t~~_ _ype_ ) (13)
For a typical system, such as the water and copper systems that will be
discussed later, the memory requirement grows linearly with the number of
atoms. Note that _Nm_ is usually of the order of a hundred, and _M_ is usually
100 in practice. For example, if we take _Nl_ = 25 _,_ 000, _Nm_ = 138, _M_ = 100
18
Figure 5: Schematic illustration of two systems, water and copper, tested in this study.
Shown in the figure are the system sizes accessible on different machines using different
methods. (a) Sizes accessible by a typical AIMD simulation on HPC; (b) Sizes accessible
by a typical DeePMD simulation with a single GPU; (c) Sizes accessible by the current
study, the simulations using 27,360 GPUs on summit.
and _data_ _~~t~~_ _ype_ _=_ _double_, the memory usage of _G_ reaches 12.42 GB. This
estimate can be verified by the numerical results in Section 6.
4. The physical system
As shown in Fig. 5, we use two representative examples, water and copper,
to investigate the performance of the GPU DeePMD-kit software package.
Water, despite its simple molecular structure, has an unmatched complexity
in the condensed (liquid) phase, as a result of the delicate balance between
weak non-covalent intermolecular interactions, e.g. the hydrogen bond network and van der Waals dispersion, thermal (entropic) effects, and nuclear
quantum effects. Copper represents an important and yet relatively simple
metallic system, well suited as a benchmark. The training data of the water and copper systems are describe in Refs. [46, 47], and [55], respectively.
The DP models for both systems share almost the same architecture: sizes
of the embedding and fitting nets are 25 _×_ 50 _×_ 100 and 240 _×_ 240 _×_ 240,
respectively. The cut-off radii of water and copper systems are 6 <sup>˚</sup> A and 8 <sup>˚</sup> A,
19
respectively, and the maximal numbers of neighbors are 138 and 500, respectively. Extensive benchmarks and theoretical studies have been conducted
using DeePMD-kit, thus the accuracy of the model is reasonably assured. As
a result, we can focus on the computational performance of the MD simulations.
The strong scaling of GPU DeePMD-kit is tested using the water system
composed of 12,582,912 atoms (4,194,304 water molecules), while the weak
scaling is investigated using the copper system with 4,139 atoms per GPU
card. The configuration of the water system is made by replicating a well
equilibrated liquid water system of 192 atoms for 64 _×_ 32 _×_ 32 times. The
configurations of the copper system are generated as perfect face-centeredcubic (FCC) lattice with the lattice constant of 3.634 <sup>˚</sup> A. The FCC unit cell
is replicated by 384 _×_ 384 _×_ 192 times to generate the largest copper system
(113,246,208 atoms) tested in this work. The MD equations are numerically
integrated by the Velocity-Verlet scheme for 500 steps (the energy and forces
are evaluated for 501 times) at time-steps of 0.5 fs and 1.0 fs, respectively.
The velocities of the atoms are randomly initialized subjected to the Boltzmann distribution at 330 K. The neighbor list with a 2 <sup>˚</sup> A buffer region is
updated every 50 time steps. The thermodynamic data including the kinetic
energy, potential energy, temperature, pressure are collected and recorded in
every 20 time steps.
5. Machine configuration
All numerical tests are performed on the Summit supercomputer. Fig. 6
shows the architecture of one of the 4608 Summit computing nodes. Each
computing node consists of two identical groups, and each group has one IBM
POWER 9 socket and 3 NVIDIA Volta V100 GPUs connected via NVLink
with a bandwidth of 50 GB/s. Each POWER socket has 22 physical CPU
cores and share 256 GB DDR4 CPU main memory, and each V100 GPU
has its own 16 GB high bandwidth memory. The CPU bandwidth is 135
GB/s and GPU bandwidth is 900 GB/s. Each GPU has a theoretical peak
performance of 7 TFLOPS double precision operations. The two groups of
hardware are connected via X-Bus with a 64 GB/s bandwidth. The computing nodes are interconnected with a non-blocking fat-tree using a dual-rail
Mellanox EDR InfiniBand interconnect with a total bandwidth of 25 GB/s.
In this paper, we utilize the MPI+CUDA programming model. In all the
GPU tests, we use 6 MPI tasks per computing node (3 MPI tasks per socket
20
Figure 6: The architecture of a computational node on Summit.
to fully take advantage of both CPU-GPU affinity and network adapter), and
each MPI task is bound to an individual GPU.
6. Numerical results
We compare the efficiency of the GPU version of DeePMD-kit to its CPU
version for the water system with 12,582,912 atoms. In the CPU calculations,
we utilize 42 MPIs per node to take full advantage of the Power 9 CPU
sockets. In Fig. 7, we measure the wall clock time per MD step by averaging
over 500 MD steps using both the CPU and GPU versions of DeePMD-kit.
All numerical experiments in this paper are performed using double precision
due to the high accuracy nature of the DeePMD-kit code.
First, we compare the performance of the GPU version of DeePMD-kit
to its CPU version with the same number of nodes. Note that the CPU
version can accommodate bigger physical systems because the size of the
CPU memory per node (512 GB) is 5 times bigger than that of the GPU (96
GB) as shown in Fig. 6. However, in terms of computational speed, testing
results indicate that the GPU version can be 39 times faster on 80 Summit
nodes (480 V100 NVIDIA GPUs against 3,360 POWER 9 CPU cores). The
speedup factor decreases to 16 when 4 _,_ 560 nodes are used (27,360 GPUs
21
10
1
0.1
0.01
CPU
GPU
80 160 320 640 1280 2560 4560
Number of nodes
Figure 7: Average wall clock time (log-scaled) of single MD step for a water system with
12,582,912 atoms using both CPU and GPU versions of the DeePMD-kit.
against 191,520 CPU cores). The decrease of the speedup factor is due to
the fact that, as shown in Fig. 8, the CPU code has a better strong scaling
compared to the GPU code. It is also worth noting that the GPU version is
already much faster than the CPU version in the baseline implementation:
as shown in Fig. 7, the GPU baseline is 39 times faster than that of the CPU
code when using 3,360 CPU cores, and even faster than that of the CPU
code on 4,560 nodes. A detailed discussion of the scaling will be presented
in Section 7.
Next, we compare the GPU version to the CPU version under the same
power consumption, which is particularly important for the upcoming exascale computing era. The power consumption of a single POWER 9 socket
is 190 watts, and 300 watts for a single NVIDIA V100 GPU. Hence, the
power consumption of a single CPU node with 2 POWER 9 CPU sockets is
380 watts, while the power consumption of each GPU node with 6 NIVIDA
V100 GPUs and 2 POWER 9 CPU sockets is 2,180 watts. 80 GPU nodes on
Summit has a power consumption of 174,400 watts, and that is equivalent to
the power consumption of 459 CPU nodes. In our tests, the GPU version of
the DeePMD-kit can be 7 times faster compared to the CPU version under
the same power consumption.
Fig. 8 demonstrates the strong scaling of a 12,582,912-atom water system
with respect to the number of nodes. For this system, we find our GPU
implementation can perfectly scale up to 640 nodes (3,840 GPUs) with 3,276
22
64
32
16
8
4
2
1
CPU total
GPU total
GPU Pair
GPU Comm
GPU Neighbor
Ideal scaling
480 960 1920 3840 7680 15360 27360
Number of GPUs
Figure 8: Strong scaling results of simulating a 12,582,912-atom water system with both
CPU and GPU versions of the DeePMD-kit. The speedup is computed by setting the wall
clock time for 80 nodes as the baseline. It is noted that the GPU baseline is 39 times
faster compared to the CPU baseline as shown in Fig. 7.
atoms per GPU, and continue to scale up to the entire Summit supercomputer (4,560 nodes with 27,360 GPUs) with 455 atoms per GPU. We remark
that the strong scaling defines the speed of the MD simulation, i.e., the GPU
code can finish 110 MD steps per second for the water system of 12,582,912
atoms (4,194,304 molecules) when scaled to 4,560 Summit nodes. This delivers a capability of simulating the water system for 4.8 ns (with a time steps
of 0.5 fs) in one day.
Fig. 9 shows the weak scaling of the GPU version of the DeePMD-kit
for the copper systems. In the test, each MPI holds 4 _,_ 139 copper atoms
on average. The number of GPUs scales from 1 _,_ 710 to 15 _,_ 360, and the
corresponding number of atoms varies from 7 _,_ 077 _,_ 888 to 113 _,_ 246 _,_ 208, respectively. Our tests show that the GPU version of DeePMD-kit can achieve
perfect scaling up to 4 _,_ 560 nodes. For the 113 _,_ 246 _,_ 208 systems with copper
atoms, we achieve 86 _._ 2 PFLOPS with 4 _,_ 560 Summit nodes, reaching 43% of
the peak performance of Summit. Each MD step only takes 83 milliseconds,
therefore enabling one nanosecond simulation in one day. A detailed discussion on the floating point operations per second (FLOPS) will be presented
in the next section.
23
Figure 9: Weak scaling of the copper system. Each GPU holds 4,139 atoms, and the
corresponding number of nodes scales from 285 to 4,560 throughout the tests.
References [46, 55] incorporate the ”baseline implementation” of DeePMDkit for MD simulations of water and copper systems, respectively, and have
demonstrated that the accuracy of DeePMD is comparable to that of the
AIMD simulation. In this work, the optimized GPU DeePMD-kit uses the
same floating point precision as the baseline implementation. The energy,
force and virial predictions are found to be consistent with the baseline implementation up to 15, 10 and 13 digits, respectively. Therefore, the _ab initio_
accuracy of the GPU DeePMD-kit is warranted.
7. Performance Analysis
In this section, we provide a detailed analysis for the GPU version of
DeePMD-kit. The total number of floating point operations (FLOP) for the
12 _,_ 582 _,_ 912 atoms water system is 1 _._ 2483 _×_ 10 <sup>17</sup> . This is collected from the
CUDA profiling tool NVPROF. Although NVPROF only collects the FLOP
number on the GPU, in our implementation, the CPU is only in charge
of constructing and communicating the neighbor list and the corresponding
FLOP number only accounts for less than 1% of the total FLOP. The FLOPS
is calculated by (total FLOP) _/_ (total time) and the corresponding efficiency is
calculated via (number of nodes)FLOPS _×_ 43 TFLOPS <sup>(each V100 GPU has 7.0 TFLOPS, and</sup>
each IBM Power 9 socket 515 GFLOPS, thus 7 _×_ 6+0 _._ 515 _×_ 2 = 43 TFLOPS
24
Table 1: Wall clock time of the computationally intensive components for calculating 500
MD steps of 12,582,912 atoms of water system. All the testing results are in seconds.
<u>#GPUs</u> <u>480</u> <u>960</u> <u>1,920</u> <u>3,840</u> <u>7,680</u> <u>15,360</u> <u>27,360</u>
Pair 88.4 45.03 24.08 13.13 7.66 5.46 4.25
Comm 1.18 0.59 0.31 0.13 0.11 0.16 0.16
Neighbour 2.39 1.18 0.57 0.28 0.13 0.06 0.03
Others 0.32 0.30 0.12 0.09 0.08 0.08 0.09
Total time 92.3 47.1 25.1 13.6 8.0 5.8 4.5
#CPU cores 3,360 6,720 13,440 26,880 53,760 107,520 191,520
<u>Total</u> <u>Time</u> <u>3632.8</u> <u>1824.5</u> <u>914.3</u> <u>468.3</u> <u>237.0</u> <u>120.8</u> <u>74.5</u>
in total.). The efficiency of GPU version of DeePMD-kit is 38% when using
480 GPUs, and decreases to 13% when using 27 _,_ 360 GPUs for the water
system with 12 _,_ 582 _,_ 912 atoms, as shown in Fig. 10. On the other hand, the
weak scaling of the copper system shows the GPU version of DeePMD-kit
achieves a peak performance of 86 PFLOPS in double precision with 4 _,_ 560
nodes on Summit (43% of the peak) when calculating 113 _,_ 246 _,_ 208 copper
atoms.
We notice that the GPU version of DeePMD-kit shows better performance
(43% of the peak) on the copper system than the water system (36 _._ 8% of
the peak). This is mainly due to two reasons: first, the average numbers
of neighbors for each atom are 500 and 138 for the copper and water systems, respectively. Thus, the corresponding GEMM operation takes a larger
proportion in the copper system compared to that of the water system. Secondly, since copper is a mono-species atomic system, no extra sorting and
slicing in the computation of the embedding matrix is needed as discussed in
Section 3. Fig. 11 shows the proportion of different operations for both water
and copper systems on the GPU. We find that the GEMM operator takes
92% and 64% of the GPU time for the copper and water system, respectively.
The total computational time of the MD simulation can be divided into
four parts: Pair, MPI Communication, Neighbor, and Others. The wall
clock time for 500 steps of MD for each part is listed in Table 1 and shown in
Fig. 10. The corresponding strong scaling of the GPU DeePMD-kit is shown
in Fig. 8. The total wall clock time is dominated by the evaluation of the
atomic energies and forces, and denoted as “Pair”. Therefore, the scaling
of the Pair part is nearly the same as that of the total time in Fig. 8. The
“Comm” part denotes the time used in updating the ghost region between
25
100
80
60
40
20
0
Pair
Communication
Neighbour
Others
480 960 1920 3840 7680 15360 27360
Number of GPUs
Figure 10: Wall clock time of 500 MD steps for a water system of 12,582,912 atoms.
Others
SLICE
CUSTOM
TANH
GEMM
100
80
60
40
20
0
Copper Water
Figure 11: Percentage of computational time by different TensorFlow operators for copper
and water systems using the GPU version of DeePMD-kit.
26
adjacent MPI tasks. It scales with the number of GPUs when using less
than 640 computing nodes, then becomes nearly a constant afterwards. This
is because the communication time is gradually dominated by the network
latency as the ghost region scales. The wall clock time for constructing the
neighbor-list is labeled as ”Neighbor”. We notice that this operation shows
superlinear scaling, which is attributed to both the reduction of the data size
and better Cache hit ratio when more CPUs are used. The ”Others” part
includes all other calculations such as the IO and the computations invoked
by fixes, and it only contributes to less than 1% of the total time, thus is
negligible.
We focus on analyzing the Pair part, which takes more than 93% of the
total time throughout the strong scaling tests for the 12 _,_ 582 _,_ 912 atom water
system. This part includes the CPU-GPU memory copy operations and
computation of the atomic energies and forces as discussed in Section 3.2.
The efficiency of the Pair part is measured by the percentage of the peak
performance as shown in Table 2. We find that the performance of this
part highly depends on the data size. Note that when scaled up to 4,560
computing nodes, each GPU only holds 459 atoms on average, the total
GPU memory usage is around 227 MB (from Eq. 13). The resulting data size
cannot fully exploit the 7 TFLOPS computing power of the V100 GPU, which
downgrades the efficiency. However, the GPUs are efficiently utilized when
each GPU holds more than 3 _,_ 200 atoms. The efficiency drops dramatically
with less than 1,000 atoms per GPU. We also notice that the CPU-GPU
memory copy slows down from 23 _._ 2 GB/s with 480 GPUs to 4 _._ 7 GB/s with
27,360 GPUs. Another reason for the drop of efficiency is the load imbalance
when a large number of GPUs are used. For example, when scaled to 27,360
GPUs (4,560 nodes), the minimum number of atoms per GPU is 407 while
the maximum is 505. The load imbalance leads to waits in the execution,
and reduces the efficiency of the GPU. The load balancing problem can be
alleviated by dynamically redistributing the atoms onto the MPI tasks in the
MD calculation [71, 72, 73, 74].
The communication of the ghost region is performed with the adjacent
MPI tasks, and the data size is listed in Table 2. The received size of a ghost
region for each GPU from its neighboring MPI tasks is 25,566 (613 KB)
when using 480 GPUs, and decreases to 3,039 (73 KB) when using 27,360
GPUs. Table 1 shows that the communication time decreases as the data size
becomes smaller from 480 to 7,680 GPUs. Eventually, the communication
time of the ghost region is dominated by the latency of the network, thus it
27
Table 2: Average number of atoms (per GPU), ghost atom number (per GPU) and
FLOPS for a 12,582,912 atom water system.
<u>#GPUs</u> <u>480</u> <u>960</u> <u>1920</u> <u>3840</u> <u>7680</u> <u>15360</u> <u>27360</u>
#atoms 26214 13107 6553 3276 1638 819 459
<u>#ghosts</u> <u>25566</u> <u>16728</u> <u>11548</u> <u>7962</u> <u>5467</u> <u>3995</u> <u>3039</u>
PFLOPS 1.35 2.65 4.98 9.16 15.63 21.66 27.51
<u>%</u> of Peak <u>38.54</u> <u>37.76</u> <u>35.46</u> <u>32.64</u> <u>27.85</u> <u>19.30</u> <u>13.75</u>
stops scaling when using 15 _,_ 360 and 27 _,_ 360 GPUs in Table 2.
Collective MPI communication is also needed in obtaining the global
properties for data IO during the simulation. Properties such as total energy, the stress, and the temperature, etc. are collected via MPI Allreduce.
Since each of those properties is merely one double precision number, the
MPI ~~A~~ llreduce operations are dominated by network latency. However, these
latency can be a bottleneck in the extreme scale run if the physical properties are collected at every time step. By setting the output of the above
mentioned properties to every 20 time steps, we find that the latency only
accounts for less than 1% of the total time. Since the latency is mainly
caused by the implicit MPI ~~B~~ arrier, it can be further avoided by using the
asynchronous MPI ~~I~~ allreduce operation.
8. Conclusion
In this work, we propose the GPU adapted algorithms and re-implement
the DeePMD-kit package on the heterogeneous supercomputer Summit.
The weak scaling tests show that DeePMD-kit can scale up to 99% of
the Summit supercomputer, reaching a peak performance of 86 _._ 2 PFLOPS
(43% of the peak). For this particular system, each MD step only takes
83 milliseconds, thereby enabling nanoseconds time scale simulation with _ab_
_initio_ accuracy for the first time. For a typical water system consisting of
12 _,_ 582 _,_ 912 atoms, our GPU code can scale up to 27,360 GPUs and run MD
for 110 steps in one second. Compared to the CPU version, the GPU code
is 16 _−_ 39 times faster when using the same number of nodes, and 7 times
faster under the same power consumption.
To study problems like heterogeneous catalysis, electrochemical cells, irradiation damage, crack propagation in brittle materials and biochemical
reactions, the required system size for molecular simulation ranges from thou
28
sands to hundreds of millions of atoms. Traditionally these systems would
be investigated with EFFMDs, from which scientific conclusions could not
be solidly derived due to the limited accuracy of EFFs. The unprecedented
accuracy and efficiency of GPU DeePMD-kit, as realized in this work by
integrating physical-based modeling, deep learning and optimized implementation on the world’s largest supercomputer, open a new era of large scale
molecular simulation, and will lead to groundbreaking scientific discoveries
and innovations.
The success of our GPU code relies on: (1) adapting the data distribution
of the classical MD software, (2) carefully optimizing the customized TensorFlow operators on GPU (3) optimizing the standard TensorFlow operators
on GPU. We remark that all these optimization techniques can be employed
by other DP MD packages. We also analyze the scaling, and identify that
the latency of both GPU and the network is the key for future improvement
of exascale supercomputers to further accelerate the DP MD codes.
Although we only demonstrate the optimization on the GPU Summit
supercomputer, such strategies can also be applied to other heterogeneous
architectures. For example, it can be easily converted to the Heterogeneouscompute Interface for Portability (HIP) programming model to run on the
next exascale supercomputer Frontier, which will be based on AMD GPUs.
9. Acknowledgement
Numerical tests were performed on the Summit supercomputer located
in the Oak Ridge National Laboratory. The work of H. W. is supported by
the National Science Foundation of China under Grant No. 11871110, the
National Key Research and Development Program of China under Grants
No. 2016YFB0201200 and No. 2016YFB0201203, and Beijing Academy
of Artificial Intelligence (BAAI). This work was partially supported by the
National Science Foundation under Grant No. 1450372, No. DMS-1652330
(W. J. and L. L.), and by the Department of Energy under Grant No. DESC0017867 (L. L.). We thank a gift from iFlytek to Princeton University
and the ONR grant N00014-13-1-0338 (L. Z. and W. E), and the Center
Chemistry in Solution and at Interfaces (CSI) funded by the DOE Award
DE-SC0019394 (L. Z., R. C. and W. E). The authors would like to thank
Junqi Yin, Lin-Wang Wang for helpful discussions.
29
References
[1] Roberto Car and Michele Parrinello. Unified approach for molecular dynamics and density-functional theory. _Physical_ _Review_ _Letters_,
55(22):2471, 1985.
[2] P. Hohenberg and W. Kohn. _Phys._ _Rev._, 136:864B, 1964.
[3] Walter Kohn and Lu Jeu Sham. Self-consistent equations including
exchange and correlation effects. _Physical Review_, 140(4A):A1133, 1965.
[4] S. Goedecker. Linear scaling electronic structure methods. _Rev._ _Mod._
_Phys._, 71:1085–1123, 1999.
[5] D. R. Bowler and T. Miyazaki. _O_ ( _N_ ) methods in electronic structure
calculations. _Rep._ _Prog._ _Phys._, 75:036503, 2012.
[6] Lin-Wang Wang, Byounghak Lee, Hongzhang Shan, Zhengji Zhao, Juan
Meza, Erich Strohmaier, and David H Bailey. Linearly scaling 3d fragment method for large-scale electronic structure calculations. In _SC’08:_
_Proceedings_ _of_ _the_ _2008_ _ACM/IEEE_ _Conference_ _on_ _Supercomputing_,
pages 1–10. IEEE, 2008.
[7] Markus Eisenbach, C-G Zhou, Don M Nicholson, Greg Brown, Jeff
Larkin, and Thomas C Schulthess. A scalable method for ab initio
computation of free energies in nanoscale systems. In _Proceedings_ _of_ _the_
_Conference_ _on_ _High_ _Performance_ _Computing_ _Networking,_ _Storage_ _and_
_Analysis_, pages 1–8, 2009.
[8] HJC Berendsen, D. Van der Spoel, and R. Van Drunen. Gromacs: a
message-passing parallel molecular dynamics implementation. _Computer_
_Physics_ _Communications_, 91(1-3):43–56, 1995.
[9] B. Hess, C. Kutzner, D. van der Spoel, and E. Lindahl. Gromacs 4:
Algorithms for highly efficient, load-balanced, and scalable molecular
simulation. _J._ _Chem._ _Theory_ _Comput_, 4(3):435–447, 2008.
[10] L. Kal´e, R. Skeel, M. Bhandarkar, R. Brunner, A. Gursoy, N. Krawetz,
J. Phillips, A. Shinozaki, K. Varadarajan, and K. Schulten. Namd2:
Greater scalability for parallel molecular dynamics* 1. _Journal_ _of_ _Com-_
_putational_ _Physics_, 151(1):283–312, 1999.
30
[11] J.C. Phillips, R. Braun, W. Wang, J. Gumbart, E. Tajkhorshid, E. Villa,
C. Chipot, R.D. Skeel, L. Kale, and K. Schulten. Scalable molecular
dynamics with namd. _Journal of computational chemistry_, 26(16):1781–
1802, 2005.
[12] D.A. Case, T.E. Cheatham III, T. Darden, H. Gohlke, R. Luo, K.M.
Merz Jr, A. Onufriev, C. Simmerling, B. Wang, and R.J. Woods. The
amber biomolecular simulation programs. _Journal_ _of_ _computational_
_chemistry_, 26(16):1668–1688, 2005.
[13] S. Plimpton. Fast parallel algorithms for short-range molecular dynam
ics. _Journal_ _of_ _Computational_ _Physics_, 117(1):1–19, 1995.
[14] Louis Lagard`ere, Luc-Henri Jolly, Filippo Lipparini, F´elix Aviat, Ben
jamin Stamm, Zhifeng F Jing, Matthew Harger, Hedieh Torabifard,
G Andr´es Cisneros, Michael J Schnieders, et al. Tinker-hp: a massively parallel molecular dynamics package for multiscale simulations
of large complex systems with advanced point dipole polarizable force
fields. _Chemical_ _science_, 9(4):956–972, 2018.
[15] Blake G Fitch, Aleksandr Rayshubskiy, Maria Eleftheriou, TJ Christo
pher Ward, Mark Giampapa, Yuri Zhestkov, Michael C Pitman, Frank
Suits, Alan Grossfield, Jed Pitera, et al. Blue matter: Strong scaling
of molecular dynamics on blue gene/l. In _international_ _conference_ _on_
_computational_ _science_, pages 846–854. Springer, 2006.
[16] Kevin J Bowers, David E Chow, Huafeng Xu, Ron O Dror, Michael P
Eastwood, Brent A Gregersen, John L Klepeis, Istvan Kolossvary,
Mark A Moraes, Federico D Sacerdoti, et al. Scalable algorithms for
molecular dynamics simulations on commodity clusters. In _SC’06:_ _Pro-_
_ceedings_ _of_ _the_ _2006_ _ACM/IEEE_ _Conference_ _on_ _Supercomputing_, pages
43–43. IEEE, 2006.
[17] James N Glosli, David F Richards, KJ Caspersen, RE Rudd, John A
Gunnels, and Frederick H Streitz. Extending stability beyond cpu millennium: a micron-scale atomistic simulation of kelvin-helmholtz instability. In _Proceedings_ _of_ _the_ _2007_ _ACM/IEEE_ _conference_ _on_ _Supercom-_
_puting_, page 58. ACM, 2007.
31
[18] Timothy C Germann and Kai Kadau. Trillion-atom molecular dynamics becomes a reality. _International_ _Journal_ _of_ _Modern_ _Physics_ _C_,
19(09):1315–1319, 2008.
[19] Markus H¨ohnerbach, Ahmed E Ismail, and Paolo Bientinesi. The vec
torization of the tersoff multi-body potential: an exercise in performance
portability. In _SC’16:_ _Proceedings_ _of_ _the_ _International_ _Conference_ _for_
_High_ _Performance_ _Computing,_ _Networking,_ _Storage_ _and_ _Analysis_, pages
69–81. IEEE, 2016.
[20] Kuang Liu, Subodh Tiwari, Chunyang Sheng, Aravind Krishnamoor
thy, Sungwook Hong, Pankaj Rajak, Rajiv K Kalia, Aiichiro Nakano,
Ken-ichi Nomura, Priya Vashishta, et al. Shift-collapse acceleration
of generalized polarizable reactive molecular dynamics for machine
learning-assisted computational synthesis of layered materials. In _2018_
_IEEE/ACM_ _9th_ _Workshop_ _on_ _Latest_ _Advances_ _in_ _Scalable_ _Algorithms_
_for_ _Large-Scale_ _Systems_ _(scalA)_, pages 41–48. IEEE, 2018.
[21] Ada Sedova, John D Eblen, Reuben Budiardja, Arnold Tharrington,
and Jeremy C Smith. High-performance molecular dynamics simulation
for biological and materials sciences: challenges of performance portability. In _2018_ _IEEE/ACM_ _International_ _Workshop_ _on_ _Performance,_
_Portability_ _and_ _Productivity_ _in_ _HPC_ _(P3HPC)_, pages 1–13. IEEE, 2018.
[22] Nikola Tchipev, Steffen Seckler, Matthias Heinen, Jadran Vrabec, Fabio
Gratl, Martin Horsch, Martin Bernreuther, Colin W Glass, Christoph
Niethammer, Nicolay Hammer, et al. Twetris: Twenty trillion-atom
simulation. _The_ _International_ _Journal_ _of_ _High_ _Performance_ _Computing_
_Applications_, 33(5):838–854, 2019.
[23] Tingjian Zhang, Yuxuan Li, Ping Gao, Qi Shao, Mingshan Shao,
Meng Zhang, Jinxiao Zhang, Xiaohui Duan, Zhao Liu, Lin Gan, et al.
Sw ~~g~~ romacs: accelerate gromacs on sunway taihulight. In _Proceedings_
_of_ _the_ _International_ _Conference_ _for_ _High_ _Performance_ _Computing,_ _Net-_
_working,_ _Storage_ _and_ _Analysis_, pages 1–14, 2019.
[24] Kun Li, Honghui Shang, Yunquan Zhang, Shigang Li, Baodong Wu,
Dong Wang, Libo Zhang, Fang Li, Dexun Chen, and Zhiqiang Wei.
Openkmc: a kmc design for hundred-billion-atom simulation using millions of cores on sunway taihulight. In _Proceedings_ _of_ _the_ _International_
32
_Conference_ _for_ _High_ _Performance_ _Computing,_ _Networking,_ _Storage_ _and_
_Analysis_, pages 1–16, 2019.
[25] David F Richards, James N Glosli, Bor Chan, MR Dorr, Erik W
Draeger, J-L Fattebert, William D Krauss, T Spelce, Frederick H Streitz,
MP Surh, et al. Beyond homogeneous decomposition: scaling long-range
forces on massively parallel systems. In _Proceedings_ _of_ _the_ _International_
_Conference_ _on_ _High_ _Performance_ _Computing_ _Networking,_ _Storage_ _and_
_Analysis,_, pages 1–12. IEEE, 2009.
[26] Romelia Salomon-Ferrer, Andreas Walter Goetz, Duncan Poole, Scott
Le Grand, and Ross C Walker. Routine microsecond molecular dynamics
simulations with amber on gpus. 2. explicit solvent particle mesh ewald.
_Journal_ _of_ _Chemical_ _Theory_ _and_ _Computation_, 9(9):3878–3888, 2013.
[27] Yoshimichi Andoh, Noriyuki Yoshii, Kazushi Fujimoto, Keisuke Mizu
tani, Hidekazu Kojima, Atsushi Yamada, Susumu Okazaki, Kazutomo
Kawaguchi, Hidemi Nagao, Kensuke Iwahashi, et al. Modylas: A highly
parallelized general-purpose molecular dynamics simulation program for
large-scale systems with long-range forces calculated by fast multipole
method (fmm) and highly scalable fine-grained new parallel processing
algorithms. _Journal_ _of_ _Chemical_ _Theory_ _and_ _Computation_, 2013.
[28] William McDoniel, Markus H¨ohnerbach, Rodrigo Canales, Ahmed E Is
mail, and Paolo Bientinesi. Lammps’ pppm long-range solver for the
second generation xeon phi. In _International_ _Supercomputing_ _Confer-_
_ence_, pages 61–78. Springer, 2017.
[29] J.E. Stone, J.C. Phillips, P.L. Freddolino, D.J. Hardy, L.G. Trabuco,
and K. Schulten. Accelerating molecular modeling applications with
graphics processors. _Journal_ _of_ _Computational_ _Chemistry_, 28(16):2618–
2640, 2007.
[30] J.A. Anderson, C.D. Lorenz, and A. Travesset. General purpose molecu
lar dynamics simulations fully implemented on graphics processing units.
_Journal_ _of_ _Computational_ _Physics_, 227(10):5342–5359, 2008.
[31] Szil´ard P´all and Berk Hess. A flexible algorithm for calculating pair
interactions on simd architectures. _Computer_ _Physics_ _Communications_,
184:2641–2650, 2013.
33
[32] Hasitha Muthumala Waidyasooriya, Masanori Hariyama, and Kota
Kasahara. Architecture of an fpga accelerator for molecular dynamics
simulation using opencl. In _2016_ _IEEE/ACIS_ _15th_ _International_ _Con-_
_ference_ _on_ _Computer_ _and_ _Information_ _Science_ _(ICIS)_, pages 1–5. IEEE,
2016.
[33] Chen Yang, Tong Geng, Tianqi Wang, Rushi Patel, Qingqing Xiong,
Ahmed Sanaullah, Chunshu Wu, Jiayi Sheng, Charles Lin, Vipin
Sachdeva, et al. Fully integrated fpga molecular dynamics simulations.
In _Proceedings_ _of_ _the_ _International_ _Conference_ _for_ _High_ _Performance_
_Computing,_ _Networking,_ _Storage_ _and_ _Analysis_, pages 1–31, 2019.
[34] Tetsu Narumi, Ryutaro Susukita, Takahiro Koishi, Kenji Yasuoka,
Hideaki Furusawa, Atsushi Kawai, and Toshikazu Ebisuzaki. 1.34 tflops
molecular dynamics simulation for nacl with a special-purpose computer:
Mdm. In _SC’00:_ _Proceedings of the 2000 ACM/IEEE Conference on Su-_
_percomputing_, pages 54–54. IEEE, 2000.
[35] Makoto Taiji, Tetsu Narumi, Yousuke Ohno, Noriyuki Futatsugi, At
sushi Suenaga, Naoki Takada, and Akihiko Konagaya. Protein explorer:
A petaflops special-purpose computer system for molecular dynamics
simulations. In _Proceedings_ _of_ _the_ _2003_ _ACM/IEEE_ _conference_ _on_ _Su-_
_percomputing_, page 15, 2003.
[36] Tetsu Narumi, Yousuke Ohno, Noriaki Okimoto, Takahiro Koishi, At
sushi Suenaga, Noriyuki Futatsugi, Ryoko Yanai, Ryutaro Himeno,
Shigenori Fujikawa, Makoto Taiji, et al. A 55 tflops simulation of
amyloid-forming peptides from yeast prion sup35 with the specialpurpose computer system mdgrape-3. In _Proceedings_ _of_ _the_ _2006_
_ACM/IEEE_ _conference_ _on_ _Supercomputing_, page 49. ACM, 2006.
[37] David E Shaw, Martin M Deneroff, Ron O Dror, Jeffrey S Kuskin,
Richard H Larson, John K Salmon, Cliff Young, Brannon Batson,
Kevin J Bowers, Jack C Chao, et al. Anton, a special-purpose machine for molecular dynamics simulation. _Communications_ _of_ _the_ _ACM_,
51(7):91–97, 2008.
[38] David E Shaw, JP Grossman, Joseph A Bank, Brannon Batson, J Adam
Butts, Jack C Chao, Martin M Deneroff, Ron O Dror, Amos Even,
Christopher H Fenton, et al. Anton 2: raising the bar for performance
34
and programmability in a special-purpose molecular dynamics supercomputer. In _Proceedings_ _of_ _the_ _International_ _Conference_ _for_ _High_ _Per-_
_formance_ _Computing,_ _Networking,_ _Storage_ _and_ _Analysis_, pages 41–53.
IEEE Press, 2014.
[39] J¨org Behler and Michele Parrinello. Generalized neural-network repre
sentation of high-dimensional potential-energy surfaces. _Physical Review_
_Letters_, 98(14):146401, 2007.
[40] Albert P Bart´ok, Mike C Payne, Risi Kondor, and G´abor Cs´anyi. Gaus
sian approximation potentials: The accuracy of quantum mechanics,
without the electrons. _Physical_ _Review_ _Letters_, 104(13):136403, 2010.
[41] Matthias Rupp, Alexandre Tkatchenko, Klaus-Robert M¨uller, and
O Anatole VonLilienfeld. Fast and accurate modeling of molecular
atomization energies with machine learning. _Physical_ _Review_ _Letters_,
108(5):058301, 2012.
[42] Stefan Chmiela, Alexandre Tkatchenko, Huziel E Sauceda, Igor
Poltavsky, Kristof T Sch¨utt, and Klaus-Robert M¨uller. Machine learning
of accurate energy-conserving molecular force fields. _Science_ _Advances_,
3(5):e1603015, 2017.
[43] Kristof Sch¨utt, Pieter-Jan Kindermans, Huziel Enoc Sauceda Felix, Ste
fan Chmiela, Alexandre Tkatchenko, and Klaus-Robert M¨uller. Schnet:
A continuous-filter convolutional neural network for modeling quantum
interactions. In _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_,
pages 992–1002, 2017.
[44] Justin S Smith, Olexandr Isayev, and Adrian E Roitberg. ANI-1: an
extensible neural network potential with dft accuracy at force field computational cost. _Chemical_ _Science_, 8(4):3192–3203, 2017.
[45] Jiequn Han, Linfeng Zhang, Roberto Car, and Weinan E. Deep poten
tial: a general representation of a many-body potential energy surface.
_Communications_ _in_ _Computational_ _Physics_, 23(3):629–639, 2018.
[46] Linfeng Zhang, Jiequn Han, Han Wang, Roberto Car, and Weinan E.
Deep potential molecular dynamics: A scalable model with the accuracy
of quantum mechanics. _Physical_ _Review_ _Letters_, 120:143001, Apr 2018.
35
[47] Linfeng Zhang, Jiequn Han, Han Wang, Wissam Saidi, Roberto Car,
and Weinan E. End-to-end symmetry preserving inter-atomic potential
energy model for finite and extended systems. In S. Bengio, H. Wallach,
H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors,
_Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_ _31_, pages 4441–
4451. Curran Associates, Inc., 2018.
[48] Alireza Khorshidi and Andrew A Peterson. Amp: A modular approach
to machine learning in atomistic simulations. _Computer_ _Physics_ _Com-_
_munications_, 207:310–324, 2016.
[49] Kun Yao, John E Herr, David W Toth, Ryker Mckintyre, and John
Parkhill. The tensormol-0.1 model chemistry: a neural network augmented with long-range physics. _Chemical_ _science_, 9(8):2261–2269,
2018.
[50] Han Wang, Linfeng Zhang, Jiequn Han, and Weinan E. DeePMD-kit:
A deep learning package for many-body potential energy representation
and molecular dynamics. _Computer_ _Physics_ _Communications_, 228:178–
184, 2018.
[51] Adam S Abbott, Justin M Turney, Boyi Zhang, Daniel GA Smith, Doaa
Altarawy, and Henry F Schaefer. Pes-learn: An open-source software
package for the automated generation of machine learning models of
molecular potential energy surfaces. _Journal_ _of_ _Chemical_ _Theory_ _and_
_Computation_, 2019.
[52] Kyuhyun Lee, Dongsun Yoo, Wonseok Jeong, and Seungwu Han.
Simple-nn: An efficient package for training and executing neuralnetwork interatomic potentials. _Computer_ _Physics_ _Communications_,
242:95–103, 2019.
[53] Andreas Singraber, J¨org Behler, and Christoph Dellago. Library-based
lammps implementation of high-dimensional neural network potentials.
_Journal_ _of_ _chemical_ _theory_ _and_ _computation_, 15(3):1827–1840, 2019.
[54] QUIP - quantum mechanics and interatomic potentials. `[https://](https://github.com/libAtoms/QUIP)`
`[github.com/libAtoms/QUIP](https://github.com/libAtoms/QUIP)` . Accessed: 2020-03-03.
[55] Yuzhi Zhang, Haidi Wang, Weijie Chen, Jinzhe Zeng, Linfeng Zhang,
Han Wang, and Weinan E. Dp-gen: A concurrent learning platform for
36
the generation of reliable deep learning based potential energy models.
_Computer_ _Physics_ _Communications_, page 107206, 2020.
[56] Linfeng Zhang, De-Ye Lin, Han Wang, Roberto Car, and Weinan E. Ac
tive learning of uniformly accurate interatomic potentials for materials
simulation. _Physical_ _Review_ _Materials_, 3(2):023804, 2019.
[57] Linfeng Zhang, Jiequn Han, Han Wang, Roberto Car, and Weinan E.
Deepcg: Constructing coarse-grained models via deep neural networks.
_The_ _Journal_ _of_ _Chemical_ _Physics_, 149(3):034101, 2018.
[58] Linfeng Zhang, Mohan Chen, Xifan Wu, Han Wang, Weinan E, and
Roberto Car. Deep neural network for the dielectric response of insulators. _Phys._ _Rev._ _B_, 102:041121, Jul 2020.
[59] Grace M. Sommers, Marcos F. Calegari Andrade, Linfeng Zhang, Han
Wang, and Roberto Car. Raman spectrum and polarizability of liquid
water from deep neural networks. _Phys._ _Chem._ _Chem._ _Phys._, 22:10592–
10602, 2020.
[60] Leonardo Zepeda-N´u˜nez, Yixiao Chen, Jiefu Zhang, Weile Jia, Lin
feng Zhang, and Lin Lin. Deep density: circumventing the kohn-sham
equations via symmetry preserving neural networks. _arXiv_ _preprint_
_arXiv:1912.00775_, 2019.
[61] Luigi Bonati and Michele Parrinello. Silicon liquid structure and crystal
nucleation from ab initio deep metadynamics. _Physical_ _review_ _letters_,
121(26):265701, 2018.
[62] Hsin-Yu Ko, Linfeng Zhang, Biswajit Santra, Han Wang, Weinan
E, Robert A DiStasio Jr, and Roberto Car. Isotope effects in liquid water via deep potential molecular dynamics. _Molecular_ _Physics_,
117(22):3269–3281, 2019.
[63] Marcos F. Calegari Andrade, Hsin-Yu Ko, Linfeng Zhang, Roberto Car,
and Annabella Selloni. Free energy of proton transfer at the watertio2
interface from ab initio deep potential molecular dynamics. _Chem._ _Sci._,
11:2335–2341, 2020.
37
[64] Jinzhe Zeng, Liqun Cao, Mingyuan Xu, Tong Zhu, and John ZH Zhang.
Neural network based in silico simulation of combustion reactions. _arXiv_
_preprint_ _arXiv:1911.12252_, 2019.
[65] Wen-Kai Chen, Xiang-Yang Liu, Wei-Hai Fang, Pavlo O Dral, and Gan
glong Cui. Deep learning for nonadiabatic excited-state dynamics. _The_
_journal_ _of_ _physical_ _chemistry_ _letters_, 9(23):6702–6708, 2018.
[66] Fu-Zhi Dai, Bo Wen, Yinjie Sun, Huimin Xiang, and Yanchun Zhou.
Theoretical prediction on thermal and mechanical properties of high
entropy (zr0. 2hf0. 2ti0. 2nb0. 2ta0. 2) c by deep learning potential.
_Journal_ _of_ _Materials_ _Science_ _&_ _Technology_, 2020.
[67] Aris Marcolongo, Tobias Binninger, Federico Zipoli, and Teodoro Laino.
Simulating diffusion properties of solid-state electrolytes via a neural
network potential: Performance and training scheme. _ChemSystem-_
_sChem_, 2019.
[68] Hao Wang, Xun Guo, Linfeng Zhang, Han Wang, and Jianming Xue.
Deep learning inter-atomic potential model for accurate irradiation damage simulations. _Applied_ _Physics_ _Letters_, 114(24):244101, 2019.
[69] Qianrui Liu, Denghui Lu, and Mohan Chen. Structure and dynamics of warm dense aluminum: a molecular dynamics study with density functional theory and deep potential. _JOURNAL_ _OF_ _PHYSICS-_
_CONDENSED_ _MATTER_, 32(14), APR 3 2020.
[70] Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis,
Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving,
Michael Isard, et al. Tensorflow: A system for large-scale machine learning. In _12th_ _{USENIX}_ _Symposium_ _on_ _Operating_ _Systems_ _Design_ _and_
_Implementation_ _({OSDI}_ _16)_, pages 265–283, 2016.
[71] Abhinav Bhatel´e, Laxmikant V Kal´e, and Sameer Kumar. Dynamic
topology aware load balancing algorithms for molecular dynamics applications. In _Proceedings_ _of_ _the_ _23rd_ _international_ _conference_ _on_ _Super-_
_computing_, pages 110–116, 2009.
[72] Long Chen, Oreste Villa, Sriram Krishnamoorthy, and Guang R Gao.
Dynamic load balancing on single-and multi-gpu systems. In _2010 IEEE_
38
_International Symposium on Parallel & Distributed Processing (IPDPS)_,
pages 1–12. IEEE, 2010.
[73] W Michael Brown, Peng Wang, Steven J Plimpton, and Arnold N
Tharrington. Implementing molecular dynamics on hybrid high performance computers–short range forces. _Computer_ _Physics_ _Communi-_
_cations_, 182(4):898–911, 2011.
[74] Jens Glaser, Trung Dac Nguyen, Joshua A Anderson, Pak Lui, Fil
ippo Spiga, Jaime A Millan, David C Morse, and Sharon C Glotzer.
Strong scaling of general-purpose molecular dynamics simulations on
gpus. _Computer_ _Physics_ _Communications_, 192:97–107, 2015.
39
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.