원시데이터 수집 시스템
선정목록으로

High-speed and low-power molecular dynamics processing unit (MDPU) with ab initio accuracy

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (6) PEM(고분자전해질막)(10) 아라미드(21) 에폭시수지

기본 정보

저자
  1. Pinghui Mo — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China|||College of Integrated Circuits, Hunan University, Changsha, 410082, P.R. China
  2. Yujia Zhang — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China
  3. Zhuoying Zhao — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China
  4. Hanhan Sun — College of Computer, National University of Defense Technology, Changsha, 410073, P.R. China
  5. Junhua Li — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China
  6. Dawei Guan — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China
  7. Xi Ding — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China
  8. Xin Zhang — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China
  9. Bo Chen — Department of Physics, National University of Defense Technology, Changsha, 410073, P.R. China
  10. Mengchao Shi — College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China|||DP Technology, 100080, Beijing, P.R. China
  11. Duo Zhang — AI for Science Institute, 100080, Beijing, P.R. China|||Academy for Advanced Interdisciplinary Studies, Peking University, 100871, Beijing, P. R. China|||DP Technology, 100080, Beijing, P.R. China
  12. Denghui Lu — HEDPS, CAPT, College of Engineering, Peking University, 100871, Beijing, P.R. China
  13. Yinan Wang — AI for Science Institute, 100080, Beijing, P.R. China|||School of Mathematical Science, Peking University, 100871, Beijing, P.R. China
  14. Jianxing Huang — State Key Laboratory of Physical Chemistry of Solid Surfaces, iChEM, College of Chemistry and Chemical Engineering, Xiamen University, Xiamen, 361005, P.R. China
  15. Fei Liu — School of Integrated Circuits, Peking University, 100871, Beijing, P.R. China
  16. Xinyu Li — AI for Science Institute, 100080, Beijing, P.R. China
  17. Mohan Chen — HEDPS, CAPT, College of Engineering, Peking University, 100871, Beijing, P.R. China
  18. Jun Cheng — State Key Laboratory of Physical Chemistry of Solid Surfaces, iChEM, College of Chemistry and Chemical Engineering, Xiamen University, Xiamen, 361005, P.R. China
  19. Bin Liang — College of Computer, National University of Defense Technology, Changsha, 410073, P.R. China
  20. E Weinan — AI for Science Institute, 100080, Beijing, P.R. China|||Center for Machine Learning Research, Peking University, 100871, Beijing, P.R. China|||School of Mathematical Science, Peking University, 100871, Beijing, P.R. China
  21. Jiayu Dai — Department of Physics, National University of Defense Technology, Changsha, 410073, P.R. China
  22. Linfeng Zhang — AI for Science Institute, 100080, Beijing, P.R. China|||DP Technology, 100080, Beijing, P.R. China
  23. Handong Wang — AI for Science Institute, 100080, Beijing, P.R. China|||Institute of Applied Physics and Computational Mathematics, 100088, Beijing, P.R. China
  24. Jie Liu — AI for Science Institute, 100080, Beijing, P.R. China|||College of Integrated Circuits, Hunan University, Changsha, 410082, P.R. China|||Department of Electrical and Computer Engineering, University of Washington, Seattle, WA, 98195, USA|||Greater Bay Area Institute for Innovation, Hunan University, Guangzhou, 511300, P.R. China
DOI
10.1038/s41524-024-01422-3
저널
npj Computational Materials
발행년도
2024
발행기관
Nature Portfolio
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-024-01422-3
토픽
Fuel Cells and Related Materials
OpenAlex ID
W4404131312

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(6) PEM(고분자전해질막), (10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.80
근거 용어
Molecular dynamics (MD), ab initio accuracy, interatomic potential (IAP), machine-learning MD, atomistic-scale analysis
판단 근거
이 논문은 분자 동역학(MD) 시뮬레이션의 속도와 정확도를 높이기 위한 전용 하드웨어(MDPU) 및 알고리즘을 다룹니다. 이는 코오롱인더스트리의 고분자(에폭시, PEM, 아라미드 등) 및 복합소재 설계 시 원자 단위의 물성을 예측하고 분석하는 데 활용될 수 있는 범용적인 계산 도구 기술입니다.
R&D 활용 포인트
고분자 전해질막(PEM), 아라미드, 에폭시 수지 등 핵심 소재의 분자 구조, 화학적 결합, 확산 및 열화 메커니즘을 고속·고정밀로 시뮬레이션하여 신소재 설계 및 물성 예측 기간을 단축하는 데 활용 가능합니다.
평가 입력
본문 72,625자 중 30,032자 발췌

초록

Abstract Molecular dynamics (MD) is an indispensable atomistic-scale computational tool widely-used in various disciplines. In the past decades, nearly all ab initio MD and machine-learning MD have been based on the general-purpose central/graphics processing units (CPU/GPU), which are well-known to suffer from their intrinsic “memory wall” and “power wall” bottlenecks. Consequently, nowadays MD calculations with ab initio accuracy are extremely time-consuming and power-consuming, imposing serious restrictions on the MD simulation size and duration. To solve this problem, here we propose a special-purpose MD processing unit (MDPU), which could reduce MD time and power consumption by about 10 3 times (10 9 times) compared to state-of-the-art machine-learning MD (ab initio MD) based on CPU/GPU, while keeping ab initio accuracy. With significantly-enhanced performance, the proposed MDPU may pave a way for the accurate atomistic-scale analysis of large-size and/or long-duration problems which were impossible/impractical to compute before.

본문 72,625자

본문 펼치기
Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences https://doi.org/10.1038/s41524-024-01422-3 # High-speed and low-power molecular dynamics processing unit (MDPU) with ab initio accuracy [Check for updates](http://crossmark.crossref.org/dialog/?doi=10.1038/s41524-024-01422-3&domain=pdf) Pinghui Mo <sup>1,2,16</sup>, Yujia Zhang <sup>2,16</sup>, Zhuoying Zhao 2,16, Hanhan Sun3,16, Junhua Li2, Dawei Guan2, Xi Ding2, Xin Zhang <sup>2</sup>, Bo Chen 4, Mengchao Shi2,5, Duo Zhang 5,6,7, Denghui Lu8, Yinan Wang6,9, Jianxing Huang10, Fei Liu 11, Xinyu Li6, Mohan Chen 8, Jun Cheng 10, Bin Liang3, Weinan E6,9,12, Jiayu Dai 4, Linfeng Zhang <sup>5,6</sup>, Han Wang 6,13 & Jie Liu 1,6,14,15 Molecular dynamics (MD) is an indispensable atomistic-scale computational tool widely-used in various disciplines. In the past decades, nearly all ab initio MD and machine-learning MD have been based on the general-purpose central/graphics processing units (CPU/GPU), which are well-known to suffer from their intrinsic “memory wall” and “power wall” bottlenecks. Consequently, nowadays MD calculations with ab initio accuracy are extremely time-consuming and power-consuming, imposing serious restrictions on the MD simulation size and duration. To solve this problem, here we propose a special-purpose MD processing unit (MDPU), which could reduce MD time and power consumption by about 10 <sup>3</sup> times (10 <sup>9</sup> times) compared to state-of-the-art machine-learning MD (ab initio MD) based on CPU/GPU, while keeping ab initio accuracy. With significantly-enhanced performance, the proposed MDPU may pave a way for the accurate atomistic-scale analysis of large-size and/or long duration problems which were impossible/impractical to compute before. As a cornerstone of atomistic-scale analysis <sup>1–3</sup>, molecular dynamics (MD) is playing increasingly important roles in various disciplines, like physics <sup>4</sup>, chemistry <sup>5</sup>, biology <sup>6,7</sup>, materials <sup>8</sup>, nanotechnology <sup>9</sup>, medicine <sup>10</sup>, geology <sup>11</sup>, semiconductor <sup>12</sup>, cosmology <sup>13</sup> and so on. As a result, the number of MDrelated publications grows as an exponential function of time (e.g., Fig. 1 of ref. <sup>14</sup> and Supplementary Fig. 1). To reliably capture various atomistic-scale phenomena, energy prediction error (εe in meV/atom) of MD should be around or below 1.0 kcal/mol (i.e., 43.4 meV/atom), which is well-known as “quantum mechanical” or “ab initio” accuracy as defined by John A. Pople <sup>15</sup> From the software/algorithm point of view, the existing MD methods consist of three major categories: (1) classical MD (CMD), which uses artificially-crafted analytic expressions to describe the interatomic potential (IAP) <sup>16–20</sup> ; (2) ab initio MD (AIMD), which uses ab initio calculations like density functional theory (DFT) to obtain the IAP <sup>21–26</sup>, and (3) machinelearningMD(MLMD) whichusesmachine learningmodelsto compute the IAP <sup>27–33</sup> . Amongst these three categories, only AIMD and MLMD could achieve ab initio accuracy. In contrast, the IAP prediction error of CMD could be as high as 10.0 kcal/mol <sup>34–37</sup> . Fromthehardware/computerpointofview,althoughtherearespecialpurpose hardware/computer (notably, the Anton series <sup>38–40</sup> and the MDGRAPE series <sup>41–43</sup>, for example) for CMD, the existing MD simulations with ab initio accuracy (i.e., AIMD and MLMD) in the literature are predominantly executed by using the general-purpose central/graphics processing units (CPU/GPU) which are based on the von Neumann (vN) architecture <sup>44</sup> . It is well known that the vN CPU/GPU suffer from “memory wall” and “power wall” bottlenecks –– most (e.g., >90%) of the total 1College of Integrated Circuits, Hunan University, Changsha, 410082, P.R. China. 2College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China. <sup>3</sup> College of Computer, National University of Defense Technology, Changsha, 410073, P.R. China. <sup>4</sup> Department of Physics, National University of Defense Technology, Changsha, 410073, P.R. China. <sup>5</sup> DP Technology, 100080 Beijing, P.R. China. <sup>6</sup> AI for Science Institute, 100080 Beijing, P.R. China. 7Academy for Advanced Interdisciplinary Studies, Peking University, 100871 Beijing, P. R. China. 8HEDPS, CAPT, College of Engineering, Peking University, 100871 Beijing, P.R. China. <sup>9</sup> School of Mathematical Science, Peking University, 100871 Beijing, P.R. China. <sup>10</sup> State Key Laboratory of Physical Chemistry of Solid Surfaces, iChEM, College of Chemistry and Chemical Engineering, Xiamen University, Xiamen, 361005, P.R. China. <sup>11</sup> School of Integrated Circuits, Peking University, 100871 Beijing, P.R. China. <sup>12</sup> Center for Machine Learning Research, Peking University, 100871 Beijing, P.R. China. <sup>13</sup> Institute of Applied Physics and Computational Mathematics, 100088 Beijing, P.R. China. <sup>14</sup> Greater Bay Area Institute for Innovation, Hunan University, Guangzhou, 511300, P.R. China. 15Department of Electrical and Computer Engineering, University of Washington, Seattle, WA, 98195, USA. 16These authors contributed equally: Pinghui Mo, Yujia Zhang, Zhuoying Zhao, Hanhan Sun. [e-mail: jydai@nudt.edu.cn; zhanglf@dp.tech; wang_han@iapcm.ac.cn; jie_liu@hnu.edu.cn](mailto:jydai@nudt.edu.cn) _<u>b</u>_ <u>= log</u> ~~<u>10</u>~~ _<u>η</u>_ ~~<u>t</u>~~ <u>+ log</u> ~~<u>10</u>~~ _<u>η</u>_ ~~<u>p</u>~~ <u>AIMD</u> <u>MLMD</u> <u>FPGA ASIC</u> _<u>b</u>_ max <u>5.41</u> <u>-1.63</u> <u>-4.37</u> <u>-6.13</u> _~~b~~_ ~~<u>min</u>~~ ~~2.72~~ ~~-3.12~~ ~~-4.58~~ ~~-6.17~~ Fig. 1 | Efficiency comparison of AIMD, MLMD, and proposed methods. Time(ηt) and power-consumption (ηp) of state-of-the-art AIMD, MLMD, and the proposed MD method based on FPGA and ASIC. The equation “b = log10ηt + log10ηp” is used to fit the data of AIMD, MLMD, FPGA, and ASIC, to obtain values of parameter b. Here, bmin/bmax denotes the approximate lower/upper boundary of each method. To achieve ηt = 10 <sup>–10</sup> –10 <sup>–9</sup> s/step/atom, ηp is reduced from 10 <sup>6</sup> –10 <sup>7</sup> W (green box <sup>49,71</sup> ) to about 10 <sup>3</sup> W (red box). calculation time and power is actually used to frequently shuttle data, and only a very small proportion of time and power is spent to perform the functional arithmetic/logic operations <sup>45,46</sup> . This leads to high powerconsumption (ηp in Watt) and high time-consumption (ηt in second/ step/atom),i.e.,lowMDspeed <sup>47,48</sup> .ToremedylowMDspeed,parallelization using many CPUs/GPUs (e.g., 10 <sup>6</sup> –10 <sup>7</sup> CPU cores and 10 <sup>4</sup> –10 <sup>5</sup> GPUs) becomesnecessary,furtherincreasing ηp (e.g., ηp canreachabout10 <sup>1</sup> MWas shown in Fig. 1) <sup>49–53</sup> . The high ηt and ηp values imposes serious restrictions on state-of-the-art MD simulation size/duration and affordability. Aiming at mitigating these restrictions, here we propose a specialpurpose MD processing unit (MDPU), which could reduce ηt and ηp by about 10 <sup>3</sup> times (10 <sup>9</sup> times) compared to state-of-the-art MLMD (AIMD), whilekeepingabinitioaccuracy(Sections “Results” and “Discussion”).Such dramaticMDperformanceimprovementisaccomplishedviaco-designand in-depth co-optimization of algorithm, hardware, and software (Section “Methods”) <sup>54</sup> . First, heavy-duty calculations in MD are replaced by using light-weight equivalent arithmetic/logic operations, by leveraging cuttingedge machine-learning algorithms, after extensive and carefully-crafted revisions (Section “Algorithm”) <sup>30,55</sup> . Second, a powerful computing-inmemory (CIM) hardware calculation engine is implemented, in order to mitigate the “memory wall” and “power wall” bottlenecks, based on the commodity-levelorcommercially-availablehardwaretechnologieslike field programmable gatearray (FPGA) and application specific integrated circuit (ASIC) (Section “Hardware”) <sup>56,57</sup> . Third, the software is purposefully rewritten into highly-efficient pipelines according to FPGA/ASIC characteristics (Section “Software”) <sup>54</sup> . More implementation details are available in Section “Methods”. Results The proposed MD method is applied to six systems, including elementary systems (Au <sup>58</sup>, Cu <sup>59</sup>, Mg <sup>60</sup> ), binary systems (H2O <sup>61,62</sup>, GeTe <sup>63,64</sup> ), and quaternary system (Li10GeP2S1265), to quantitatively analyze MD performance metrics like accuracy (Section “Accuracy”), speed and power (Section “Speed and Power”), cost (Section “Cost”), and system size (Section “Size”). We purposefully choose these six systems, which are known to be challenging to achieve high accuracy, as they are either energetically subtle or under extreme external conditions <sup>58–65</sup> . Accuracy As shown in Fig. 2, the proposed MD method has decent accuracy. Compared tothe ab initio DFT results, the root-mean-square error (RMSE) of its potential energy surface (PES) prediction results is εe = 85.35, 1.84, 2.47, 7.62, 2.95, 1.66 meV/atom; and the RMSE of its atomic force prediction results is εf = 173.20, 16.44, 13.91, 148.24, 110.69, 59.67 meV/Å, in Au, Cu, Mg, GeTe, H2O, and Li10GeP2S12, respectively. Notably, εe here (10 <sup>−3</sup> –10 <sup>–1</sup> eV/atom) is 2–3 orders of magnitude smaller than typical interatomic bond energy (10 <sup>0</sup> –10 <sup>1</sup> eV/atom <sup>66</sup> ); and εf here (about 10 <sup>1</sup> –10 <sup>2</sup> meV/Å) is very close to the typical default convergence threshold force value of lattice relaxation in various DFT tools (e.g., 40.0 meV/Å in SIESTA <sup>25</sup> ; 25.7 meV/Å in Quantum Espresso <sup>22</sup> ; and 23.1 meV/Å in CP2K <sup>67</sup> ). It worth noting that such small εe and εf indicates very high accuracy of the proposed MD method, since these six systems involve repeated chemical bond rupture and formation with extremely complicated and dynamically-evolving high-dimensional PES, imposing serious challenges to keep high calculation accuracy <sup>58–65</sup> . Fortunately, ab initio accuracy of energy and atomic force of the proposed MD method (Fig. 2) lays a solid foundation for reliable prediction of various physical properties. In Fig. 3, these physical properties are computed using the proposed MD method and compared directly against the established MLMD, because MLMD is known to have ab initio accuracy <sup>58–65</sup> and DFT-based AIMD is too time-consuming and power-consuming to obtain these properties (Fig. 1). Under intensive shock wave compression (e.g., 10 <sup>0</sup> -10 <sup>1</sup> km/s), which leads to extremely high pressure (e.g., 10 <sup>3</sup> –10 <sup>4</sup> GPa) and temperature (e.g., 10 <sup>4</sup> –10 <sup>5</sup> K), the Au physical properties calculated by using the proposed MD method agree well with MLMD results (Fig. 3a and Supplementary Fig. 2) <sup>58</sup> . Under strong (up to 10%) tensile strain, the proposed MD method can accurately predict Cu strain-stress curve and the related properties like the Young’s modulus (Fig. 3(b)) <sup>59</sup> . The stacking fault energies of Mg, which is difficult to accurately compute <sup>60</sup>, are calculated using the proposed method on basal {0001}, prismatic {10 <sup>�</sup> 10}, pyramidal I {10 <sup>�</sup> 11}, and pyramidal II {11 <sup>�</sup> 22} planes, and the results agree well with the established MLMD and DFT methods (Fig. 3c and Supplementary Fig. 3) <sup>60</sup> . The proposed MD method could accurately reproduce the radial distribution function of liquid H2O, which has complicated PES and hydrogen bonds (Fig. 3d) <sup>61,62</sup> . It is known that the energy difference between amorphous and crystalline chalcogenide phase change material (PCM) is εa-c ≈ 10 <sup>2</sup> meV/atom, and the energy difference between PCM with and without Peierls distortion is εPeierls ≈ 10 <sup>1</sup> meV/atom <sup>68–70</sup> . Using the proposed MD method, we have reliably captured not only the meltquench-recrystallization processes of PCM GeTe, but also its Peierls distortion as revealed by the angular-limited three-body correlation (ALTBC) results (Fig. 3e) <sup>63,64</sup> . ALTBC indicates the bond length distribution of two Ge-Te bonds in the three-body structure (i.e. Ge-Te-Ge and Te-Ge-Te) with an angle greater than 155°. the PES error here (εe = 7.62 meV/atom as shown in Fig. 2e) is much smaller than εa-c and εPeierls, enabling MDPU to correctly reproduce the microstructure of the amorphous GeTe. The proposed MD method also accurately predicts the Li-ion diffusion process in the complicated quaternary system Li10GeP2S12 (Fig. 3f) <sup>65</sup> . Our study shows that the accuracy of DPMD simulations on CPU/ GPU aligns closely with those on MDPU. Minor variations observed in examples like Cu and Li10GeP2S12 fall within the statistical error range and are attributed to natural fluctuations in the simulations, rather than differences in the hardware. The calculation data and codes are open-sourced (Sections “Data Availability” and “Code Availability”). More details are available in Supplementary Section 2. Au Cu Mg (a) (b) (c) _ε_ e = 85.35 meV/atom _ε_ f = 173.20 meV/Å _ε_ e = 1.84 meV/atom _ε_ f = 16.44 meV/Å _ε_ e = 2.47 meV/atom _ε_ f = 13.91 meV/Å GeTe H2O Li10GeP2S12 (d) (e) (f) _ε_ e = 7.62 meV/atom _ε_ f = 148.24 meV/Å _ε_ e = 2.95 meV/atom _ε_ e = 1.66 meV/atom _ε_ f = 110.69 meV/Å _ε_ f = 59.67 meV/Å Fig. 2 | The comparison of predicted energy and force. Comparison between energy/force predicted by the proposed MD method (E/F) and those computed using DFT (EDFT/FDFT). Here, εe/εf is the root-mean-square error (RMSE) of E/F compared against EDFT/FDFT. (a) <u>Au</u> (b) <u>Cu</u> (c) <u>Mg</u> (d) <u>Au</u> (b) <u>Cu</u> (c) <u>Mg</u> (d) <u>H2O</u> 7.5 7.0 <u>6.5</u> shock wave 0% 3% <u>strain</u> <u>strain</u> ~~initial cell~~ final cell 4.0 6. <mark>0</mark> ~~5.5~~ 5.0 4.5 MLMD this work (e) GeTe MLMD this work (f) GeTe MLMD this work (f) <u>Li10GeP2S12</u> Ge _r_ 1 Te _r_ 2 _θ_ < 25 ALTBC definition Fig. 3 | Comparison of results between the MD method proposed in this work and the established MLMD. a Au under intensive shock wave compression <sup>58</sup> ; (b) Cu under strong tensile strain <sup>59</sup> ; (c) stacking fault energies of Mg on the pyramid I Speed and power As shown in Fig. 1, due to the linear strong and weak scalingof MLMD <sup>49</sup>, we use b ¼ log10 ηt þ log10 ηp ð1Þ to investigate time-efficiency and power-efficiency. Though it does not hold for AIMD, Eq. (1) helps approximately define the upper (bmax) and lower (bmin) boundaries of each method, facilitating quantitative analysis and comparison. Figure 1 shows that the proposed MD method based on FPGA is over 10 <sup>7</sup> times more efficient than CPU/GPU-based AIMD (b <sup>AIMD</sup> min <sup>-b</sup> max <sup>FPGA</sup> <sup>≈</sup> <sup>7.1, bAIMD</sup> max <sup>-b</sup> max <sup>FPGA</sup> <sup>≈</sup> <sup>9.8), and over 101 times more efficient</sup> {10 <sup>�</sup> 11} plane <sup>60</sup> ; (d) radial distribution function (RDF) of liquid H2O <sup>63,64</sup> ; (e) angularlimited three-body correlation (ALTBC) of amorphous GeTe <sup>61,62</sup> ; (f) diffusion coefficient (D) of Li in Li10GeP2S1265. . levelclockfrequencyand10 <sup>6</sup> -levelconfigurablelogicblocks(Section “Size”), which are far inferior than the CPU/GPU (GHz-level clock frequency and far more logic devices) used by AIMD/MLMD. When deployed on ASIC (Section “Size”), whose clock frequency and logic device density are comparable to CPU/GPU, the proposed MD method can be about 10 <sup>9</sup> times more efficient than CPU/GPU-based AIMD (b <sup>AIMD</sup> min <sup>-b</sup> max <sup>ASIC</sup> <sup>≈</sup> <sup>8.9, bAIMD</sup> max <sup>-b</sup> max <sup>ASIC</sup> <sup>≈</sup> <sup>11.5), and about 103 times more efficient</sup> <sup>AIMD</sup> min <sup>-b</sup> max <sup>ASIC</sup> max <sup>ASIC</sup> <sup>≈</sup> <sup>8.9, bAIMD</sup> max <sup>AIMD</sup> max <sup>-b</sup> max <sup>ASIC</sup> <sup>MLMD</sup> min -b <sup>ASIC</sup> max <sup>ASIC</sup> max <sup>≈</sup> <sup>3.0,</sup> <sup>b</sup> max <sup>MLMD</sup> max <sup>MLMD</sup> -b <sup>ASIC</sup> max (b <sup>AIMD</sup> min <sup>-b</sup> max <sup>FPGA</sup> <sup>≈</sup> <sup>7.1, bAIMD</sup> max <sup>-b</sup> max <sup>FPGA</sup> <sup>≈</sup> <sup>9.8), and over 101 times more efficient</sup> than CPU/GPU-based MLMD (b <sup>MLMD</sup> min -b <sup>FPGA</sup> max <sup>≈</sup> <sup>1.3, b</sup> max <sup>MLMD</sup> -b <sup>FPGA</sup> max <sup>≈</sup> <sup>2.7). It</sup> deserves stressing that the FPGA hardware used here has merely 10 <sup>2</sup> MHz (b <sup>AIMD</sup> min <sup>-b</sup> max <sup>ASIC</sup> <sup>≈</sup> <sup>8.9, bAIMD</sup> max <sup>-b</sup> max <sup>ASIC</sup> <sup>≈</sup> <sup>11.5), and about 103 times more efficient</sup> than CPU/GPU-based MLMD (b <sup>MLMD</sup> min -b <sup>ASIC</sup> max <sup>≈</sup> <sup>3.0,</sup> <sup>b</sup> max <sup>MLMD</sup> -b <sup>ASIC</sup> max <sup>≈</sup> <sup>6.5).</sup> Such significant efficiency increase may have profound impact on future-generation high-performance computation of MD with ab initio accuracy. For example, as the recipient of 2020 Association for Computing Machinery (ACM) Gordon Bell Prize, a research team achieved record-breaking ηt = 10 <sup>–10</sup> –10 <sup>–9</sup> s/step/atom (green dashed box at bottom right of Fig. 1), by using the entire Summit supercomputer, which was <sup>AIMD</sup> min <sup>-b</sup> max <sup>FPGA</sup> max <sup>FPGA</sup> <sup>≈</sup> <sup>7.1, bAIMD</sup> max <sup>AIMD</sup> max <sup>-b</sup> max <sup>FPGA</sup> <sup>MLMD</sup> min -b <sup>FPGA</sup> max <sup>FPGA</sup> max <sup>≈</sup> <sup>1.3, b</sup> max <sup>MLMD</sup> max <sup>MLMD</sup> -b <sup>FPGA</sup> max the most powerful supercomputer in the world at that time (ηp ≈ 10 <sup>6</sup> –10 <sup>7</sup> W which needs more than 4000 gallons of water pump through cooling system every minute to carry away heat; 522 m <sup>2</sup> area; 10 <sup>4</sup> –10 <sup>5</sup> NVIDIA V100 GPUs; 10 <sup>5</sup> –10 <sup>6</sup> CPU cores) <sup>49,71</sup> . In sharp contrast, to achieve the same ηt (10 <sup>–10</sup> –10 <sup>–9</sup> s/step/atom), the proposed MD method needs merely about ηp ≈ 10 <sup>3</sup> W power (red dashed box at bottom of Fig. 1) by using 10 to 20 ASICs, which fits into a single desktop-size computer (Section “Methods”). In Fig. 1, the ηt values of AIMD and MLMD are fetched from the literature (Supplementary Table 1); the ηt results of FPGA and ASIC are obtained in this work (Section “Methods”); the ηp values are approximately estimated using a unified equation ηp = PCPU × NCPU + PGPU × NGPU + PFPGA × NFPGA + PASIC × NASIC, where NCPU, NGPU, NFPGA, and NASIC denote the number of CPU core(s), GPU(s), FPGA(s), and ASIC(s); and PCPU, PGPU, PFPGA, and PASIC denote the thermal design power (TDP) of a CPU core, a GPU, an FPGA, or an ASIC, respectively (Supplementary Tables 2, 3, 4). Here, we use TDP (defined as “the maximum amount of heat generated by a computer chip or component that the cooling system is designed to dissipate under any workload” <sup>72</sup> ) instead of measured power, mainly due to two reasons. First, in existing AIMD and MLMD papers, the measured power values of MD calculations are typically not available, but the types of CPU/GPU are disclosed and TDP values are available in the datasheets of CPU/GPU. Second, to economically utilize the hardware resources, the computing devices typically consume most (e.g., ζ = 65.2–91.4% as shown in Supplementary Table 5) of TDP. This is particularly true for the computationally-intensive tasks like MD with ab initio accuracy. Cost Compared to the widely-used CPU/GPU-based MD, the proposed MD method is more cost-efficient. To accomplish an MD task with Na atoms and ns timesteps, the total cost is Ctotal = ηt × Na × ns × Crent US dollars (USD), where Crent (in USD/s) is the price to rent computing time. Since Crent of the proposed MD method (like FPGA servers in Supplementary Table 6) is comparable or lower than the CPU/GPU counterparts and ηt of the proposed MD method is significantly lower (Fig. 1), the Ctotal of the proposed MD method can be much lower than CPU/GPU-based MD. For instance, by using the commodity-level FPGA (Xilinx Virtex UltraScale+ VU9P), we have built a computing server cluster to openly provide MD [computing service (available at https://bohrium.dp.tech), which can reduce](https://bohrium.dp.tech) Ctotal by over 10 <sup>1</sup> times compared to the widely-used CPU/GPU service providers. Size Using one CPU/GPU computer node, AIMD (MLMD) can typically calculateabout10 <sup>3</sup> (10 <sup>6</sup> )atoms,partiallyduetocapacitylimitationsofthehighperformance memory, e.g., the high-bandwidth memory (HBM) on the GPU card (typically 10 <sup>1</sup> –10 <sup>2</sup> GB) <sup>73</sup> . In order to mitigate this limitation, the proposed MD method adopted purposefully-designed pipeline (Section “Methods”), which enable us to leverage the larger-capacity (typically 10 <sup>2</sup> –10 <sup>4</sup> GB) dynamics random access memory (DRAM) on the mainboard instead.Consequently,theproposedMDmethodbasedononedesktop-size computer can calculate over 10 <sup>8</sup> atoms with ab initio accuracy. Notably, this is comparable to the cutting-edge MLMD, which used the entire Summit supercomputer to accommodate about 10 <sup>8</sup> atoms <sup>49,71</sup> . Discussion The abovementioned merits (i.e., ab initio accuracy, high speed, low power, lowcost, and large size) of theproposed MD methodare generallyapplicable to the MD calculations of any chemical elements, any composition, and any statistical ensemble. The proposed MD method has linear time complexity, which is desirable for parallelization and scaling. These merits are inherited from the deep potential smooth edition (DeepPot-SE) MLMD algorithm (Section “Algorithm”) <sup>55</sup> . All hardware (e.g., ASIC and FPGA) used in this paper are commodity-level or commercially-available technologies. The communication networks are realized by using widely-used technologies, like internet wide-area remote-direct-memory-access protocol (iWARP), InfiniBand (IB), and peripheral component interconnect express (PCIe), etc. The parallelization is realized based on the mainstream Beowulf cluster and message passing interface (MPI). So, there is no hardware component in this paper that cannot be purchased commercially on the existing market. The software is programmed using mainstream programming languages like C/C + +, and the users can control the MD calculations via popular MD tools like LAMMPS <sup>74</sup> . The proposed MD system is designed in this way, aiming at general-purpose user-friendly MD applications with ab initio accuracy. It is worth mentioning that MDPU has high accuracy and efficiency at the same time, which makes it have obvious advantages over AIMD when simulating complex systems. Taking the Au system as an example, although AIMD can accurately predict the thermodynamic properties of shocked-compressed Au, it fails to capture the evolution of microstructures under shock compression due to the limit of simulation sizes <sup>58</sup> . In addition, as shown in Fig. 3, six examples in various fields such as special materials, semiconductors, and electrochemistry have extremely complex and dynamically evolving simulation processes, which pose a serious challenge to the accuracy of PES. The results demonstrate that MDPU is not only accurate and efficient but also general enough to be extended to more application fields, effectively addressing practical materials science problems. It deserves noting that the DeepPot-SE algorithm (Section “Algorithm”) <sup>55</sup> has been applied successfully in many MD simulations from different disciplines <sup>75</sup>, including long-range electrostatic interactions <sup>76</sup> and polarization <sup>77</sup> . By inheriting its merits of general-applicability, the MDPU proposed here is promising to offer next-generation general-purpose MD solutions with high-speed, low-power, and high-accuracy. Though the time- and power-consumptions (ηt and ηp) have been significantlyreducedbymitigating “memory/powerwall” inCIMhardware, the remaining communication between master and slave processing units (MPU and SPU in Section “Methods”) hinders further enhancement of efficiency. It deserves future attention to solve this problem, for example, by integrating MPU and SPU in a larger-area ASIC. Compared to the seminar and established ASIC-based MD machines (e.g., the Anton series <sup>38–40</sup> and the MDGRAPE series <sup>41–43</sup> ) and the FPGA-based MD machines <sup>78–82</sup>, the most significant merit of the proposed MDPU is its ab initio accuracy. Though the existing ASICbased and FPGA-based MD machines are very efficient, they are all based on CMD, which intrinsically cannot achieve ab initio accuracy. Therefore, in the FPGA/ASIC-based MD machine family, the MDPU proposed here can offer a useful efficient MD modeling solution when high accuracy is required. It is well known that general-purpose CPUs and GPUs have the advantages of low development costs and faster development cycles, but their computational efficiency is limited by the “memory/power wall” bottleneck. In contrast, special-purpose FPGAs and ASICs are more computationally efficient but come with higher development costs and longer development cycles. FPGAs offer programmability, but their limitations include lower clock frequencies and limited resources, making them more suitable for debugging and testing purposes. ASICs surpass FPGAs in terms of clock frequency and hardware resources, but they require redesign and remanufacturing for each iteration, which adds to the development complexity and time. Methods The results presented above are obtained by following the same analysis procedure (Section “Analysis Procedure”), and the MD simulations are performed on the proposed MD system (Section “System Overview”), which consists of co-designed and deeply co-optimized algorithm (Section 4.0), hardware (Section “Hardware”), and software (Section “Software”). MPU SPU Communication Fig. 4 | System overview of the proposed MD method and MD processing unit (MDPU). MDPU consists of three parts—master processing units (MPUs), slave processing units (SPUs), intra- and inter-MDPU communication networks which link MPUs and SPUs. a In the MD calculation flow, the evaluation of interatomic potential (IAP) is deployed on the SPUs, which are marked in yellow; all other calculations are deployed on MPUs, which are marked in green. b The pipeline designed to coordinate the operations of MPUs, SPUs, and the MPU-SPU communication. (a) MD flowchart: Initialization (position, velocity, species, temperature, pressure, etc.) Inter-atomic potential (IAP) evaluation Solve Newton equation (update position & velocity, apply thermostat, etc.) Y _t_ - _t_ +∆ _t_ _t_ < _t_ max? N End (post-processing) ## … MPU _n_,1 deploy … MPU _n_, _m_ MPU _n_, _M_ … intra-MDPU network … SPU _n_, _s_ SPU _n_, _S_ <u>deploy</u> SPU _n_,1 … MDPU1 MDPU _n_ MDPU _N_ MPU1 MPU _n_ MPU _N_ MDPU1 ## … MPU _n_ SPU1 SPU _n_ SPU _N_ inter-MDPU network (b) Intra-MDPU pipeline: time … … … … One MD timestep … … Analysis procedure To simulate each system, the analysis procedure consists of three consecutive steps. In the first step, the emerging active learning tools (e.g., DPGEN <sup>59</sup> ) are used to iteratively call the DFT calculations, to generate training datasets. In this work, we use the training datasets, which were generated in this wayand published previously in the literature (Supplementary Table 1). Inthesecondstep,theinteratomicpotential(IAP)modelistrainedusingthe emerging deep learning tools, like DeepPot-SE in DeePMD <sup>30,55,73</sup>, which is revised extensively here according to characteristics of FPGA and ASIC hardware (Section “Algorithm”). In the third step, MD simulation is performed based on the proposed MD system (Sections “System Overview”, “Algorithm”, “Hardware”, “Software”), by using the IAP model. System overview As shown in Fig. 4a, the proposed system consists of N MD processing units (i.e., MDPUn, where n = 1, 2, …, N). Inside eachMDPU, there are M master processingunits (i.e., MPUn,m,where m = 1, 2, …, M) and S slave processing units (i.e., SPUn,s, where s = 1, 2, …, S). MPU can be implemented using CPU/GPU, which is based on the traditional von Neumann architecture (lower time-efficiency and power-efficiency); and SPU can be implemented usingFPGA/ASIC,which isbased ontheemergingCIMnonvonNeumann architecture (higher time-efficiency and power-efficiency). The MPU and SPU jointly form a heterogeneous architecture parallelization system via intra-MDPU and inter-MDPU communication networks. The system is designed in this way, in order to realize three goals. First, to boost MD efficiency. As most of MD calculation workload (sometimes over 99%) is to evaluate the interatomic potential (IAP), IAP is completely offloaded to SPU, which is a coprocessor with an internal architecture specially-designed to significantlyenhance time and powerefficiencyof IAP evaluation. Second, to enable user-friendly and flexible MD calculations. Though SPU is efficient, its FPGA/ASIC implementation is inconvenient to control via programs that users are familiar with. So MPU is implemented based on CPU/GPU, which can be controlled using programs like C/C + +/Fortran, facilitating arbitrarily-defined post-processing, meta-dynamics, and MD withallkindsofstatisticalensembles,e.g.,constant-energyconstant-volume (NVE), constant-temperature constant-volume (NVT), constanttemperature constant-pressure (NPT), constant-temperature constantstress (NST), constant-pressure constant-enthalpy (NPH), etc. Third, to seamlessly integrate both high-efficiency and high-flexibility. Though MPU helps realizing flexibility, it is slowerand may introduce extra latency besides the much faster SPU. To annihilate the potential MPUinduced ηt increase, a pipeline is used to coordinate the execution of MPU, SPU, and the MPU-SPU communication. As shown in Fig. 4(b), system design and parameters (e.g., M and S) are optimized such that time consumption of MPU (tMPU) and intra-MDPU MPU-SPU communication (tcomm)canbecompletelycoveredbythatofSPU(tSPU),i.e., tMPU ≤ tSPU and tcomm ≤ tSPU. Consequently, the total MD system time consumption is just the time used by the highly-efficient SPU. Algorithm In this work, we use deep potential smooth edition (DeepPot-SE) MLMD algorithm <sup>55</sup>, after extensive modifications, to model IAP. In a Na-atom system, the set of atomic coordinates is R = {Ri | i = 1, 2, …, Na}, where Ri = (xi, yi, zi). The set of chemical species is Z = {Zi | i = 1, 2, …, Na}. The neighbor list of atom i is defined as Ii = {j | Rji < Rc}, where Rji = |Rji | = |Rj Ri |, Rji = (xji, yji, zji), Rc is the cutoff radius. To ensure the translational symmetry, the global coordinate system {Rj} = {Rj | j ∈ Ii} is translated into a generalized local environment matrix Reji ¼ ðsji; sjixji=Rji; sjiyji=Rji; sjizji=RjiÞ, where sji = 1/Rji, if 0 ≤ Rji < Rcs; sji = 1/Rji × {0.5 + 0.5 × cos[π(Rji-Rcs)/(Rc-Rcs)]}, if Rcs ≤ Rji < Rc; and sji = 0, if Rc ≤ Rji. Here, Rcs is a smooth cutoff parameter. Then, sji is mapped into a MG-dimension embedding matrix Gji by a multilayer perceptron (MLP) neuralnetwork,whichisreferredtoas “FeaNet” hereafter.The l <sup>th</sup> layerofthe MLP is d <sup>lþ1</sup> ¼ φ <sup>l</sup> ðd <sup>l</sup> × w <sup>l</sup> þ b <sup>l</sup> Þ, where d <sup>l</sup>, w <sup>l</sup>, b <sup>l</sup> and φ <sup>l</sup> are the input vector, weight matrix, bias vector, and the nonlinear activation function, respectively. To ensure the permutation symmetry and the rotational symmetry, an MG × 4matrix Pi ¼ <sup>P</sup> j <sup>GT</sup> ji <sup>× eR</sup> ji <sup>andan</sup> <sup>MG × MG</sup> <sup>matrix</sup> <sup>D</sup> i <sup>0</sup> <sup>¼ P</sup> i <sup>× PT</sup> i <sup>are</sup> the atomic force Fi ¼ �∇iE Ri and the virial V ¼ <sup>P</sup> i <sup>RT</sup> i <sup>F</sup> i <sup>can</sup> <sup>be</sup> computed. Though this MLMD algorithm is much more efficient than AIMD (Fig. 1), it has been designed to run on CPU/GPU, whose architecture (von Neumann) is fundamentally different from that of FPGA/ASIC (CIM non vonNeumann) usedhere. So if thisMLMDalgorithmwasdirectlydeployed on FPGA/ASIC hardware without revision, it would be too transistorconsuming to be efficient enough (i.e., large ηt and ηp). To minimize ηt and <sup>T</sup> ji <sup>× eR</sup> ji <sup>andan</sup> <sup>MG × MG</sup> <sup>matrix</sup> <sup>D</sup> i <sup>0</sup> j <sup>GT</sup> ji i <sup>0</sup> <sup>¼ P</sup> i <sup>× PT</sup> i MG × 4matrix Pi ¼ <sup>P</sup> j <sup>GT</sup> ji <sup>× eR</sup> ji <sup>andan</sup> <sup>MG × MG</sup> <sup>matrix</sup> <sup>D</sup> i <sup>0</sup> <sup>¼ P</sup> i <sup>× PT</sup> i <sup>are</sup> computed.� Then,� an MG × MH (1 ≤ MH ≤ MG) matrix Di½r; c�¼ D <sup>0</sup> i <sup>r;</sup> ð <sup>c þ r</sup> Þ%MG is extracted from D <sup>0</sup> i <sup>,</sup> <sup>where</sup> <sup>r</sup> <sup>and</sup> <sup>c</sup> <sup>denote</sup> <sup>row</sup> <sup>and</sup> column indices, respectively; and % denotes the modulo operation. Byusing another MLP, which is referred to as “FitNet” hereafter, Di is mapped into theenergyatomicEi,andthetotalsystemenergyiscomputedusingforce Fi ¼ �∇iE�Ri� and the virial V ¼E <sup>P</sup> ¼ i <sup>PRT</sup> ii <sup>EF</sup> ii <sup>.Finally,can</sup> <sup>be</sup> computed.� Then,� an MG × MH (1 <sup>0</sup> i <sup>r;</sup> ð <sup>c þ r</sup> Þ%MG is extracted from D <sup>0</sup> i �Ri� and the virial V ¼ <sup>P</sup> i <sup>RT</sup> i Fig. 5 | Performance and parallelization of FPGA/ ASIC-based MD systems. Na-dependent time consumption (ηt) and its parallelization performance of the proposed MD system based on FPGA (a) and ASIC (b), where Na is the number of atoms. In (a), one MDPU consists of a multicore CPU and an FPGA. In (b), one MDPU consists of one GPU and four ASICs; The lines with small dots are analytical prediction values; and the symbols (i.e., crosses, upward/downward triangles, circles, squares, and stars) are the measured values. (a) (b) ~~<u>4.0</u>~~ ~~<u>1</u>~~ 0 <sup>~~-9~~</sup> s/ ~~s~~ t ~~e~~ p/ ~~a~~ t ~~<u>om</u>~~ ~~<u>3.8</u>~~ ~~<u>10</u>~~ <sup>~~<u>-7</u>~~</sup> ~~<u>s/step</u>~~ / ~~<u>atom</u>~~ ηp, this MLMD algorithm is extensively revised, in the following four aspects, according to the characteristics of FPGA/ASIC hardware (Section “Hardware”). First, the emerging highly-efficient reconfigurable digital CIM technology <sup>56</sup> is utilized to replace the conventional floating-point multiplyaccumulation (MAC) operation, which is known as one of the most computationally-intensive parts. Specifically, MACðA; BÞ ¼ <sup>P</sup> i <sup>a</sup> i <sup>× b</sup> i between the two floating-point vectors A = (a1, a2, …, aK) and B = (b1, b2, …, bK) is replacedby: (1) pre-alignment of elements of A (i.e., a <sup>0</sup> i <sup>¼ h</sup> i <sup>a</sup> <sup>× 2ea</sup> <sup>)</sup> …, bK) is replacedby: (1) pre-alignment of elements of A (i.e., a <sup>0</sup> i <sup>¼ h</sup> i <sup>a</sup> <sup>× 2ea</sup> <sup>)</sup> and B; and (2) subsequent fixed-point MAC operation (i.e., MACðA <sup>0</sup> ; B <sup>0</sup> Þ ¼ <sup>P</sup> i <sup>a</sup> i <sup>0</sup> <sup>× b</sup> i <sup>0</sup> <sup>¼ 2eaþeb ×</sup> <sup>P</sup> i <sup>h</sup> i <sup>a</sup> <sup>× hb</sup> i <sup>).</sup> <sup>Here,</sup> <sup>h</sup> i <sup>a</sup> <sup>¼ a</sup> i <sup>× 2�ea</sup> <sup>;</sup> <sup>0</sup> i <sup>¼ h</sup> i <sup>a</sup> i <sup>a</sup> <sup>× hb</sup> i i <sup>h</sup> i <sup>a</sup> MACðA <sup>0</sup> ; B <sup>0</sup> Þ ¼ <sup>P</sup> i <sup>a</sup> i <sup>0</sup> <sup>× b</sup> i <sup>0</sup> <sup>¼ 2eaþeb ×</sup> <sup>P</sup> i <sup>h</sup> i <sup>a</sup> <sup>× hb</sup> i <sup>).</sup> <sup>Here,</sup> <sup>h</sup> i <sup>a</sup> <sup>¼ a</sup> i <sup>× 2�ea</sup> <sup>;</sup> e <sup>a</sup> ¼ e <sup>a</sup> max <sup>�</sup> <sup>e</sup> h <sup>; ea</sup> max <sup>is the largest element of A; e</sup> h <sup>is the fractional digits of</sup> fixed-point number h <sup>a</sup> i <sup>for A. Similar definitions are valid for B by replacing</sup> superscript “a” with “b”. This could significantly enhance the time and power efficiency while maintaining high accuracy <sup>56</sup>, since inputs are prealigned to their local maximum exponents, avoiding complex alignment logic circuit in hardware implementation (Section “Hardware”). Second, though the above pre-alignment has replaced the resourceconsuming floating-point operations (e.g., ai × bi) by using much more resource-saving fixed-point operations (e.g., h <sup>a</sup> i <sup>× hb</sup> i <sup>), the time and power</sup> efficiency could be further enhanced via replacing the resource-consuming multiplications by using the resource-saving bitwise shift and/or add operations <sup>83,84</sup> . The consequent quantization error can be effectively controlled by using multiple bitwise shift/add operations to replace one multiplication, by leveraging MLP’s merit of high tolerance of weight variation <sup>85,86</sup> and the training algorithms purposefully designed to control the error due to weight variation <sup>87</sup> . Third, the conventional trigonometric function-based nonlinear activation function, φ <sup>l</sup> ð�Þ; <sup>55</sup> which is very transistor-consuming, is replaced here byψðxusingÞ ¼ ð1much=16Þ - morex <sup>2</sup> c <sup>�</sup> �transistor-savingxc - ��xc�� - 4xc� þlight-weight xc, where xactivationc = max(min(functionx, 2), <sup>b</sup> i <sup>).</sup> <sup>Here,</sup> <sup>h</sup> i <sup>a</sup> fi i <sup>0</sup> <sup>¼ 2eaþeb ×</sup> <sup>P</sup> <sup>a</sup> max <sup>�</sup> <sup>e</sup> h <sup>; ea</sup> i <sup>a</sup> i <sup>0</sup> i <sup>0</sup> <sup>× b</sup> i <sup>0</sup> <sup>a</sup> i <sup>× hb</sup> i byψðxusingÞ ¼ ð1much=16Þ - morex <sup>2</sup> c <sup>�</sup> �transistor-savingxc - ��xc�� - 4xc� þlight-weight xc, where xactivationc = max(min(functionx, 2), −2). The ψðxÞ needs only two multiplications, excluding complicated trigonometric, exponential or division operations; the remaining coefficient multiplications are efficiently implemented as inexpensive shift operations 2 <sup>n</sup> (i.e., 1/16 = 2 <sup>−4</sup> and 4 = 2 <sup>2</sup> ). It worth noting that both the first-order and second-order derivatives of ψðxÞ are continuous, paving a way to the accurate evaluation of energy, atomic force, and virial. Fourth, though the above three revisions have significantly reduced ηt and ηp of MLP, the efficiency of “FeaNet” MLP can be further enhanced by leveraging its special algorithm characteristics <sup>73</sup> . Since the dimensionality of “FeaNet” input (output)is1 (MG), here this low-dimensional 1-to-MG MLP mapping is replaced by using MG interpolation functions. For one of these MG continuous functions, y = f (x), as defined on a finite range [xmin, xmax], its input range is uniformly divided into segments (x ∈ [xk, xk+1)], where k = ⌊(x - xmin) / dx⌋. Here, dx is set small enough suchthat a polynomial can be used to approximate the function of the k <sup>th</sup> segment. The cubic spline interpolation function gkðxÞ ¼ a�4x <sup>3</sup> þ b �4x <sup>2</sup> þ c �4x þ d is used to approximate y = f (x),where 4x ¼ x � xk;andfourcoefficients� a�, b, c and� - d are� first determined by solving the four linear equations� - - - - - - - - g�k xk �¼ f xk, <sup>2</sup> c <sup>�</sup> xc - xc approximate y = f (x),where 4x ¼ x � xk;andfourcoefficients� a�, b, c and� - d are� first determined by solving the four linear equations� - - - - - - - - g�k xk �¼ f xk, g <sup>0</sup> k <sup>x</sup> k ¼ f <sup>0</sup> xk, gk xkþ1 ¼ f xkþ1, and g <sup>0</sup> k <sup>x</sup> kþ1 ¼ f <sup>0</sup> xkþ1 and then are� first determined by solving the four linear equations� - - - - - - - - g�k xk �¼ f xk, g <sup>0</sup> k <sup>x</sup> k ¼ f <sup>0</sup> xk, gk xkþ1 ¼ f xkþ1, and g <sup>0</sup> k <sup>x</sup> kþ1 ¼ f <sup>0</sup> xkþ1 and then stored in lookup tables. In both feed-forward (to evaluate energy) and back - fi - <sup>x</sup> k ¼ f <sup>0</sup> xk - - xkþ1 ¼ f xkþ1 - xkþ1, and g <sup>0</sup> k <sup>0</sup> k <sup>x</sup> kþ1 - - g�k xk <sup>x</sup> kþ1 ¼ f <sup>0</sup> xkþ1 - a�, b, c and� xk �¼ f xk propagation (to evaluate atomic force) “FeaNet” calculations, the above techniques are applied, to guarantee continuity of the function value and its first-order derivative. Hardware Inthewidely-usedvonNeumannarchitecturehardware(e.g.,CPU/GPU),a huge proportion (sometimes over 90%) of total MD calculation time and power is spent to frequently shuttle data back-and-forth between the information processing device and the information storage device (i.e., “memorywall” and “powerwall” bottlenecks) <sup>45–47</sup> .Tosolvethisproblem,we have designed and implemented a non von Neumann architecture CIM hardware, to deploy the revised IAP MLMD algorithm (Section “Algorithm”), based on commodity-level or commercially-available FPGA and ASIC technologies. While FPGA has the merits of fast design iteration and low development cost, it suffers from drawbacks of inferior performance, power, and area (PPA) metrics. In contrast, the PPA metrics of ASIC is typically about 10 <sup>1</sup> –10 <sup>2</sup> times superior than FPGA, at the expense of slow design iteration and high development cost <sup>57</sup> . So, following the common practice of the semiconductor industry, the CIM hardware here is developed and implemented in two consecutive phases (first FPGA and then ASIC), both of which are based on the emerging inmemory processing technologies to mitigate the “memory wall” and “power wall” bottlenecks <sup>56</sup> . In the first phase, FPGA (e.g., Xilinx Virtex UltraScale+ VU9P with fFPGA = 350 MHz clock frequency) is used to realize SPU; and CPU (e.g., Intel Xeon Platinum 8163) can be used to realize MPU. Inside one commodity-level desktop, we can install several FPGA cards (e.g., S = 1, 2, 3, 4 as shown in Fig. 4). To enable intra-MDPU pipeline (i.e., tMPU ≤ tSPU in Fig. 4a), M = κ × S CPUcoresareneededinside each MDPU.We found that typically κ < 10 suffices (e.g., κ = 4 to 8), up to the CPU performance, if software on MPU is well-programmed, and further increasing κ does not help reducing ηt. To realize inter-MDPU communication, we use internet wide-area remote-direct-memory-access protocol (iWARP), whose bandwidthandlatencyareshowninSupplementaryFig.4.TheblackcurveofFig. 5a shows that an MDPU with one FPGA achieves ηt = 3.8 × 10 <sup>−7</sup> s/step/ atom, consuming merely ηp = 7.5 × 10 <sup>1</sup> W. As a direct comparison, the established MLMD based on one state-ofthe-art GPU, after the IAP model compression and in-depth software optimization, can only achieve ηt = 10 <sup>−6</sup> –10 <sup>−5</sup> s/step/atom and ηp = 10 <sup>2</sup> –10 <sup>3</sup> W <sup>49,71,73</sup> . Notably, such low ηt and ηp based on FPGA are achieved by using merely fFPGA = 10 <sup>–1</sup> –10 <sup>0</sup> GHz clock frequency and about dFPGA ≈ 10 <sup>6</sup> devices (i.e., logic units). It is well known that ASIC has much higher clock frequency (e.g., fASIC = 10 <sup>0</sup> –10 <sup>1</sup> GHz) and significantly more devices (e.g., dASIC > 10 <sup>9</sup> transistors). So, here we use the first phase (FPGA) asaspringboardtothesecondphase(ASIC) <sup>57</sup>,inordertoachieveevenlower ηt and ηp. In the second phase, ASIC is used to realize SPU; and GPU can be used to implement MPU. Since the Xilinx Virtex UltraScale+ FPGA is fabricated using 14 nm/16 nm technology nodeswith about 30–40 million transistors/ mm <sup>288</sup>, we use a process design kit (PDK) with similar transistor density to <sup>0</sup> k <sup>x</sup> k - - xk, gk xkþ1 Fig. 6 | Parallel pipelining and sliding window techniques in MD calculation. Schematic figures to illustrate the MPU-SPU-communication parallel pipeline used to enhance intra-MDPU calculation efficiency where tpl is the pipeline period (a), and sliding window used to enhance inter-MDPU calculation efficiency, in the second phase of implementation (ASIC). (a) (b) MPU send MPU receive SPU1 SPU2 SPU3 SPU4 _t_ <u>pl</u> _<u>t</u>_ <u>pl</u> _<u>t</u>_ <u>pl</u> 7/4� _n_ Ω subdomains parallel pipeline of subdomains _Ωn_, _m_ _Φn_, _m_ ~~<mark>overlap</mark>~~ MPU-SPU communication calculate atoms in _n_ Ω subdomains elapsed time _<u>n</u>_ Ω subdomains sliding window direction overlap overlap _ΦΩn_, _mn_,, _km_ +1, _k_ +1 _Ωn_, _m_, _k_ _Φn_, _m_, _k_ _R_ c _z_ _x_ _y_ _R_ c designASIC.The digitalcircuit design,whichhasbeenwell-tested onFPGA in the first phase, is simulated and synthesized using mainstream electronic design automation tools like Synopsys Verilog Compiler and Simulator (VCS®) <sup>89</sup>, Synopsys Design Compiler (DC®) <sup>90</sup>, and so on. To realize the inter-MDPU communication, we use the InfiniBand (IB) technology <sup>91</sup>, whose bandwidth and latency are shown in Supplementary Fig. 4. As shown in Supplementary Fig. 5, the ASIC is designed to calculate atoms by using the time division multiplexing (TDM) and pipeline technologies. In our ASIC, it takes n0 = 676 clock cycles to complete calculation of the first atom. After that, the pipeline uses 8 extra clock cycles to finish calculating each additional atom. Since the ASIC clock frequency here is 2.0 GHz, one clock cycle takes 0.5 ns. So, the time consumption of one ASIC is ηtðASICÞ �ðn0 þ 8 × NaðASICÞÞ=NaðASICÞ × ð0:5 × 10 <sup>�9</sup> Þ ¼ 3:38 ð2Þ × 10 <sup>�7</sup> =NaðASICÞ þ 4:00 × 10 <sup>�9</sup> s=step=atom When the number of atoms sent to an ASIC (Na(ASIC)) is large (e.g., 10 <sup>3</sup> –10 <sup>4</sup> or larger), we have n0 << 8 × Na(ASIC) and ηt(ASIC) ≈ 4.00 × 10 <sup>–9</sup> s/ step/atom as indicated by black arrow in Fig. 5b. One ASIC consumes about ηp(ASIC) = 1.3 × 10 <sup>2</sup> W power. Notably, though ηp(ASIC) of one ASIC here is comparable to that of one state-of-the-artGPU(i.e.,10 <sup>2</sup> –10 <sup>3</sup> W), ηt(ASIC) ofoneASICisabout3ordersof magnitude lower thanthat of one state-of-the-art GPU(i.e., about 10 <sup>−6</sup> s/step/ atom) <sup>49,71,73</sup> .TostrikeabalancebetweenASICfabricationcostandcalculation performance, the ASIC area is designed to be a moderate value (about 110 mm <sup>2</sup> ) and four ASICs are used together with one GPU (i.e., S/M = 4) to form anMDprocessingunit(MDPU).SinceeachGPU(i.e.,MPU)typicallyhas16 peripheral component interconnect express (PCIe) lanes, so each ASIC (i.e., SPUi, i = 1, 2, 3, 4) is designed to have 4 PCIe lanes, such that S/M = 4. As shown in Fig. 6a, in the second phase (ASIC), each MPU connects with four SPUs via an PCIe switch, in order to further reduce ηt. So, the number of atoms sent to one MDPU (Na(MDPU)) is four times of that sent to one SPU (Na(SPU)), i.e., Na(MDPU)=Na(SPU) × S/M = 4 × Na(SPU). Time efficiency of an MDPU is ηtðMDPUÞ �ðc0 × NΩ × nΩ þ NaðMDPUÞ=4Þ=NaðMDPUÞ × ηtðSPUÞ ¼ 9:14 × 10 <sup>�2</sup> =Na <sup>2</sup> ðMDPUÞ <sup>þ 2:71 × 10�4=N</sup> aðMDPUÞ þ 1:00 × 10 <sup>�9</sup> s=step=atom ð3Þ an ASIC to ensure tcomm ≤ tSPU; c0 = 7/4 + 1 = 2.75meansthat it takesMPU 7/4 × tpl to send data to SPUs and 1 × tpl to receive data from SPU in one pipeline period (tpl as defined in Fig. 6a). Equation (3) is visualized as the green curve in Fig. 5b. It worth noting that one common blade server node <sup>92</sup> can accommodate at least 4 MDPU, which can achieve ηt ≈ 2.5 × 10 <sup>−10</sup> s/ step/atom (red curve of Fig. 5b) consuming merely ηp ≈ 2.7 × 10 <sup>3</sup> W power. This ηt value is comparable to the speed using the whole top-tier supercomputer in the world with ηp ≈ 10 <sup>7</sup> W <sup>49,71</sup> . Software The software is developed for deployment on von Neumann architecture MPU, to perform three tasks: (1) to coordinate the intra-MDPU MPUSPU-communicationpipeline;(2) torealizetheinter-MDPUparallelization via message passing interface (MPI); and (3) to run all calculations other thanIAP evaluation. To efficientlyaccomplish these three tasks, asshown in Fig. 6b, the supercell with Na atoms is partitioned into Nd = N × M domains (denoted as Ωn,m with n = 1, 2, …, N and m = 1, 2, …, M), where N is the number of MDPUs and M is the number of MPU per MDPU. Eachdomain (Ωn,m), which is surrounded by a domain shell (Φn,m) of thickness Rc, is further partitioned into subdomains (Ωn,m,k), which is surrounded by their subdomain shells (Φn,m,k). In the first phase (FPGA), to run an MD step, MPUn,m first encodes atomicinformation(e.g.,theatomiccoordinates{Ri | i∈ Ωn,m,k ∪ Φn,m,k},the atomic specie {zi | i∈ Ωn,m,k ∪ Φn,m,k}, and the neighbor list {Ii | i∈ Ωn,m,k}) and save it into buffer memory. Then, MPUn,m sends the encoded data to SPUn,g (g = [m/k]). After SPUn,g calculation of PES, CPUn,m reads the encoded PES data from SPUn,g. Next, MPUn,m sends the enable signal to the following CPU core in the n <sup>th</sup> MDPU. Finally, the data is decoded to obtain theatomicenergies{Ei | i ∈ Ωn,m,k},forces{Fi | i∈ Ωn,m,k ∪ Φn,m,k},andvirials {Vi | i ∈ Ωn,m,k ∪ Φn,m,k }. Following the processing of the subdomains, the MPUn,m must communicate with each other via MPI, and collect all components to obtain the final values of system energy, atomic forces, and atomic virials. In the second phase (ASIC), since an ASIC is much faster than an FPGA (i.e., significantly reduced tSPU), it becomes much more challenging to achieve tMPU ≤ tSPU and tcomm ≤ tSPU. So, besides the above domain and subdomain partitioning scheme, several other highly-efficient software technologies are used to further reduce tMPU and tcomm. To reduce tMPU, MPU is based on GPU instead of CPU, as a GPU typically has about 10 <sup>2</sup> times more cores than a CPU. And GPU kernel fusion programming technology is used to dramatically reduce tMPU on GPU <sup>93</sup> . To reduce tcomm, we use sliding window (Fig. 6b), such that the communication data size can be significantly reduced - after computing {Ωn,m,k ∪ Φn,m,k}, the atomic where NΩ = 4096 is the number of atoms in a subdomain (defined in Fig. 6b and Section “Software”); nΩ = 6 subdomains of atoms are sent together into information in the overlap region does not need to be resent to the SPU to compute {Ωn,m,k+1 ∪ Φn,m,k+1}. Since there is limited hardware resource, to enable highly-efficient CIM processing, we restrict the total number of atoms in Ωn,m,k to be 4096 and that of {Ωn,m,k ∪ Φn,m,k} to be 16384. To enhance efficiency to run MD with large number of atoms and/or long duration, we use the N-MDPU parallelization, based on inter-MDPU MPI. According to the Amdahl’s law, the time consumption is ηt = ηt(MDPU)/N + ζ (plotted in Fig. 5), where ηt(MDPU) (ζ) is computation (communication) time consumption (unit: s/step/atom); and N is the number of MDPU. Here, ζ = (ζ1 + ζ2)/Na, where ζ1 = log2N × Tc(bc) is synchronous collective communication time (e.g., MPI function “MPI_Allreduce”) <sup>94</sup> ; ζ2 = Tn(6bn)/υ + (2υ—1) / υ × Tn(3bn) is the asynchronous communication time (e.g., MPI functions “MPI_Isend”, “MPI_Irecv”); Tc(bc) = bc / Gbandwith(bc) + Glatency(bc) is a function depends on the bandwidth (Gbandwith) and latency (Glatency), which is shown in the Supplementary Fig. 4; Tn(bn) = ΣαTc(Na(α) × bn); Na(α) is number of atoms transmitted in the α <sup>th</sup> MPI communication; bc is the number of bits transmitted via inter-MDPU synchronous collective MPI communication (bc = 64 bits here since only temperature is transmitted); bn is the number of bits per atom transmitted via inter-MDPU asynchronous MPI communication (here bn = 32 bits is used to represent each number); and the (sub) domain shell is constructed every υ steps (e.g., υ = 10). In ζ2, the first term means that 6 numbers (3 coordinates, chemical species, atomic index, and region label) per atom should be transmitted every υ steps; the second term means updating the atomic coordinates (3 numbers per atom) υ-1 times every υ step and updating atomic forces (3 numbers per atom) every step. Data availability Alldataneededtoreproducetheanalysisresultsinthispaper(e.g.,Fig. 2 and [Fig. 3) can be freely downloaded from: https://github.com/LiuGroupHNU/](https://github.com/LiuGroupHNU/md-data/tree/master/data) [md-data/tree/master/data.](https://github.com/LiuGroupHNU/md-data/tree/master/data) Code availability The codes are open-sourced at: [https://github.com/LiuGroupHNU/md-](https://github.com/LiuGroupHNU/md-data/) [data, with a step-by-step tutorial: https://github.com/LiuGroupHNU/md-](https://github.com/LiuGroupHNU/md-data/) [data/blob/master/code/doc/mdpu/mdpu.md,based on GNUlesserGeneral](https://github.com/LiuGroupHNU/md-data/blob/master/code/doc/mdpu/mdpu.md) Public License 3.0: [https://github.com/LiuGroupHNU/md-data/blob/](https://github.com/LiuGroupHNU/md-data/blob/master/code/LICENSE) [master/code/LICENSE.](https://github.com/LiuGroupHNU/md-data/blob/master/code/LICENSE) Received: 24 October 2023; Accepted: 28 September 2024; References 1. Alder, B. J. & Wainwright, T. E. Phase transition for a hard sphere system. J. Chem. Phys 27, 1208–1209 (1957). 2. Iftimie, R., Minary, P. & Tuckerman, M. E. Ab initio molecular dynamics: Concepts, recent developments, and future trends. Proc. Natl. Acad. Sci. 102, 6654–6659 (2005). 3. Tuckerman, M. E. & Martyna, G. J. Understanding modern molecular dynamics:0.167em techniques and applications. J. Phys. Chem. B 104, 159–178 (1999). 4. Hu, Y.-C. & Tanaka, H. Origin of the boson peak in amorphous solids. Nat. Phys. 18, 669–677 (2022). 5. Galib,M.&Limmer,D.T.ReactiveuptakeofN2O5 byatmosphericaerosol is dominated by interfacial processes. Science 371, 921–925 (2021). 6. Wang, D. et al. Efficient sampling of high-dimensional free energy landscapes using adaptive reinforced dynamics. Nat. Comput. Sci. 2, 20–29 (2021). 7. Karplus, M. & Petsko, G. A. Molecular dynamics simulations in biology. Nature 347, 631–639 (1990). 8. Rao, F. et al. Reducing the stochasticity of crystal nucleation to enable subnanosecond memory writing. Science 358, 1423–1427 (2017). 9. Ding, K. et al. Phase-change heterostructure enables ultralow noise and drift for memory operation. Science 366, 210–215 (2019). 10. Gorgulla, C. et al. An open-source drug discovery platform enables ultra-large virtual screens. Nature 580, 663–668 (2020). 11. Laio,A., Bernard,S., Chiarotti, G. L., Scandolo,S. & Tosatti,E. Physics of iron at earth’s core conditions. Science 287, 1027–1030 (2000). 12. Ihara, S. & Itoh, S. Molecular dynamics in semiconductor physics. Comput. Mater. Sci. 10, 80–87 (1998). 13. Cheng, B., Mazzola, G., Pickard, C. J. & Ceriotti, M. Evidence for supercritical behaviour of high-pressure liquid hydrogen. Nature 585, 217–220 (2020). 14. Kadau, K., Germann, T. C. & Lomdahl, P. S. Molecular dynamics comes of age: 320-billion-atom simulation on BlueGene\L. Int. J. Modern Phys. C 17, 1755–1761 (2006). 15. Pople, J. A. Nobel lecture: Quantum chemical models. Rev. Mod. Phys. 71, 1267–1274 (1999). 16. Thompson, A. P. et al. LAMMPS - a flexible simulation tool for particlebased materials modeling at the atomic, meso, and continuum scales. Comput. Phys. Commun. 271, 108171 (2022). 17. Berendsen, H., van der Spoel, D. & van Drunen, R. GROMACS: A message-passing parallel molecular dynamics implementation. Comput. Phys. Commun. 91, 43–56 (1995). 18. Phillips, J. C. et al. Scalable molecular dynamics on CPU and GPU architectures with NAMD. J. Chem. Phys 153, 044130 (2020). 19. Case, D. A. et al. AmberTools. J. Chem. Inf. Model. 63, 6183–6191 (2023). 20. Brooks, B. R. et al. CHARMM: The biomolecular simulation program. J. Comput. Chem. 30, 1545–1614 (2009). 21. Kresse, G. & Furthmüller, J. Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set. Phys. Rev. B 54, 11169–11186 (1996). 22. Giannozzi, P. et al. QUANTUM ESPRESSO: a modular and opensource software project for quantum simulations of materials. J. Phys.: Condens. Matter 21, 395502 (2009). 23. Kühne, T. D. et al. CP2K: An electronic structure and molecular dynamics software package - quickstep: Efficient and accurate electronic structure calculations. J. Chem. Phys. 152 (2020). 24. Boero, M. & Oshiyama, A. Car–Parrinello Molecular Dynamics, 489–497 (Springer Netherlands, Dordrecht, 2016). 25. Soler, J. M. et al. The siesta method for ab initio order- n materials simulation. J. Phys.: Condens. Matter 14, 2745–2779 (2002). 26. Chen, M., Guo, G.-C. & He, L. Systematically improvable optimized atomic basis sets for ab initio calculations. J. Phys.: Condens. Matter 22, 445501 (2010). 27. Thompson, A., Swiler, L., Trott, C., Foiles, S. & Tucker, G. Spectral neighboranalysismethodforautomatedgenerationofquantum-accurate interatomic potentials. J. Computational Phys. 285, 316–330 (2015). 28. Schütt, K. T., Arbabzadah, F., Chmiela, S., Müller, K. R. & Tkatchenko, A. Quantum-chemical insights from deep tensor neural networks. Nat. Commun. 8 (2017). 29. Smith, J. S., Isayev, O. & Roitberg, A. E. ANI-1: an extensible neural network potential with dft accuracy at force field computational cost. Chem. Sci. 8, 3192–3203 (2017). 30. Zhang, L., Han, J., Wang, H., Car, R. & E, W. Deep potential molecular dynamics: A scalable model with the accuracy of quantum mechanics. Phys. Rev. Lett. 120, 143001 (2018). 31. Schütt, K. T., Sauceda, H. E., Kindermans, P.-J., Tkatchenko, A. & Müller, K.-R. SchNet - a deep learning architecture for molecules and materials. J Chem. Phys 148, 241722 (2018). 32. Lee, K., Yoo, D., Jeong, W. & Han, S. SIMPLE-NN: An efficient package for training and executing neural-network interatomic potentials. Comput. Phys. Commun. 242, 95–103 (2019). 33. Chen, X. et al. TensorAlloy: An automatic atomistic neural network program for alloys. Comput. Phys. Commun. 250, 107057 (2020). 34. Kanal, I. Y., Keith, J. A. & Hutchison, G. R. A sobering assessment of small-molecule force field methods for low energy conformer predictions. Int. J. Quant. Chem. 118, e25512 (2018). 35. Zgarbová, M., Otyepka, M., Šponer, J., Hobza, P. & Jurecka, P. Largescale compensation of errors in pairwise-additive empirical force fields: comparison of amber intermolecular terms with rigorous dftsapt calculations. Phys. Chem. Chem. Phys. 12, 10476 (2010). 36. Demir, H. et al. DFT-based force field development for noble gas adsorption in metal organic frameworks. J. Mater. Chem. A 3, 23539–23548 (2015). 37. Lu, C. et al. OPLS4: Improving force field accuracy on challenging regimes of chemical space. J. Chem. Theory Comput. 17, 4291–4300 (2021). 38. Shaw, D. E. et al. Anton, a special-purpose machine for molecular dynamics simulation. Commun. ACM 51, 91–97 (2008). 39. Shaw, D. E. et al. Anton 2: Raising the bar for performance and programmability in a special-purpose molecular dynamics supercomputer. In SC14: International Conference for High Performance Computing, Networking, Storage and Analysis (IEEE, 2014). 40. Shaw, D. E. et al. Anton 3: twenty microseconds of molecular dynamics simulation before lunch. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (ACM, 2021). 41. Susukita, R. et al. Hardware accelerator for molecular dynamics: MDGRAPE-2. Comput. Phys. Commun. 155, 115–131 (2003). 42. Taiji, M., Narumi, T., Ohno, Y. & Konagaya, A. Mdgrape-3: A petaflops special-purpose computer system for molecular dynamics simulations. In Joubert, G., Nagel, W., Peters, F. & Walter, W. (eds.) Parallel Computing, vol. 13 of Advances in Parallel Computing, 669–676 (North-Holland, 2004). 43. Ohmura, I., Morimoto, G., Ohno, Y., Hasegawa, A. & Taiji, M. MDGRAPE-4: A special-purpose computer system for molecular dynamics simulations. Philos. Trans. R. Soc. A: Math. Phys. Eng. Sci. 372, 20130387 (2014). 44. [https://en.wikipedia.org/wiki/von_neumann_architecture.](https://en.wikipedia.org/wiki/von_neumann_architecture) 45. Horowitz, M. 1.1 computing’s energy problem (and what we can do about it). In 2014 IEEE International Solid-State Circuits Conference Digest of Technical Papers (ISSCC) (IEEE, (2014). 46. Stegailov, V., Smirnov, G. & Vecher, V. VASP hits the memory wall: Processors efficiency comparison. Concurrency and Computa.: Pract. Exp. 31, e5136 (2019). 47. Mo, P. et al. Accurate and efficient molecular dynamics based on machine learning and non von Neumann architecture. npj Comput. Mater. 8 (2022). 48. Zhao, Z. et al. A heterogeneous parallel non-von Neumann architecture system for accurate and efficient machine learning molecular dynamics. IEEE Transactions on Circuits and Systems I: Regular Papers 1–11 (2023). 49. Jia, W. et al. Pushing the limit of molecular dynamics with ab initio accuracy to 100 million atoms with machine learning. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, Article 5 (IEEE Press, Atlanta, Georgia, 2020). 50. Das, S. et al. Fast, scalable and accurate finite-element based ab initio calculations using mixed precision computing. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (ACM, 2019). 51. Schade, R. et al. Towards electronic structure-based ab-initio molecular dynamics simulations with hundreds of millions of atoms. Parallel Comput 111, 102920 (2022). 52. Fattebert, J.-L., Osei-Kuffuor, D., Draeger, E. W., Ogitsu, T. & Krauss, W. D. Modeling dilute solutions using first-principles molecular dynamics: Computing more than a million atoms with over a million cores. In SC16: International Conference for High Performance Computing, Networking, Storage and Analysis (IEEE, 2016). 53. Guo, Z. et al. Extending the limit of molecular dynamics with ab initio accuracy to 10 billion atoms. In Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (ACM, 2022). 54. Leiserson, C. E. et al. There’s plenty of room at the top: What will drive computer performance after moore’s law? Science 368, eaam9744 (2020). 55. Zhang, L. et al. End-to-end symmetry preserving inter-atomic potential energy model for finite and extended systems. In Bengio, S. et al. (eds.) Advances in Neural Information Processing Systems 31, 4436–4446 (Curran Associates, Inc.,2018). 56. Tu, F. et al. A 28 nm 29.2tflops/w BF16 and 36.5tops/w INT8 reconfigurable digital CIM processor with unified FP/INT pipeline and bitwise in-memory booth multiplication for cloud deep learning acceleration. In 2022 IEEE International Solid- State Circuits Conference (ISSCC) (IEEE, 2022). 57. Kuon, I. & Rose, J. Measuring the gap between FPGAs and ASICs. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 26, 203–215 (2007). 58. Chen, B. et al. Atomistic mechanism of phase transition in shock [compressed gold revealed by deep potential (2020). https://arxiv.org/](https://arxiv.org/abs/2006.13136) [abs/2006.13136. 2006.13136.](https://arxiv.org/abs/2006.13136) 59. Zhang, Y. et al. DP-GEN: A concurrent learning platform for the generation of reliable deep learning based potential energy models. Comput. Phys. Commun. 253, 107206 (2020). 60. Zhang, L., Lin, D.-Y., Wang, H., Car, R. & E, W. Active learning of uniformly accurate interatomic potentials for materials simulation. Phys. Rev. Mater. 3, 023804 (2019). 61. DiStasio, R. A., Santra, B., Li, Z., Wu, X. & Car, R. The individual and collective effects of exact exchange and dispersion interactions on the ab initio structure of liquid water. J. Chem. Phys 141, 084502 (2014). 62. Zhang, L., Wang, H., Car, R. & E, W. Phase diagram of a deep potential water model. Phys. Rev. Lett. 126, 236001 (2021). 63. Shi, M., Mo, P. & Liu, J. Deep neural network for accurate and efficient atomistic modeling of phase change memory. IEEE Electron Device Lett 41, 365–368 (2020). 64. Zhang,W.&Ma,E.Unveilingthestructuralorigintocontrolresistancedrift in phase-change memory materials. Mater. Today 41, 156–176 (2020). 65. Huang, J. et al. Deep potential generation scheme and simulation protocol for the Li10GeP2S12-type superionic conductors. J. Chem. Phys 154, 094703 (2021). 66. Sanderson, R. T. Interrelation of bond dissociation energies and contributing bond energies. J. Am. Chem. Soc. 97, 1367–1372 (1975). 67. VandeVondele, J. et al. Quickstep: Fast and accurate density functional calculations using a mixed gaussian and plane waves approach. Comput. Phys. Commun. 167, 103–128 (2005). 68. Liu, J., Xu, X., Brush, L. & Anantram, M. P. A multi-scale analysis of the crystallization of amorphous germanium telluride using ab initio simulations and classical crystallization theory. J. Appl. Phys 115, 023513 (2014). 69. Akola, J. & Jones, R. O. Structure of amorphous Ge8Sb2Te11: GeTeSb2Te3 alloys and optical storage. Phys. Rev. B 79, 134118 (2009). 70. Gaspard, J.-P. Structure of covalently bonded materials: From the peierls distortion to phase-change materials. Comptes Rendus Phys 17, 389–405 (2016). 71. [https://awards.acm.org/bell.](https://awards.acm.org/bell) 72. [https://en.wikipedia.org/wiki/thermal_design_power.](https://en.wikipedia.org/wiki/thermal_design_power) 73. Lu, D. et al. Dp compress: A model compression scheme for generating efficient deep potential models. J. Chem. Theory Comput. 18, 5559–5567 (2022). 74. [https://www.lammps.org/.](https://www.lammps.org/) 75. [https://deepmodeling.com/blog/papers/deepmd-kit/.](https://deepmodeling.com/blog/papers/deepmd-kit/) 76. Zhang, L. et al. A deep potential model with long-range electrostatic interactions. J. Chem. Phys 156, 124107 (2022). 77. Zhang, C., Yue, S., Panagiotopoulos, A. Z., Klein, M. L. & Wu, X. Why dissolving salt in water decreases its dielectric permittivity. Phys. Rev. Lett. 131, 076801 (2023). 78. Deng, Q. & Liu, Q. Field-programmable gate array acceleration of the tersoff potential in lammps. Eng. Rep. e12694 (2023). 79. Wu, C. et al. FASDA: An FPGA-aided, scalable and distributed accelerator for range-limited molecular dynamics. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, SC ’23 (Association for Computing Machinery, New York, NY, USA, 2023). 80. Sheng, N. et al. Microsecond simulation in a special-purpose molecular dynamics computer cluster. In 2023 11th International Conference on Bioinformatics and Computational Biology (ICBCB) (IEEE, 2023). 81. Yuan, M. et al. FPGA-accelerated tersoff multi-body potential for molecular dynamics simulations. In Applied Reconfigurable Computing. Architectures, Tools, and Applications, 17–31 (Springer Nature Switzerland, 2022). 82. Yang, C. et al. Fully integrated fpga molecular dynamics simulations. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, SC ’19 (ACM, 2019). 83. Chen, H. et al. Addernet: Do we really need multiplications in deep [learning? (2019). https://arxiv.org/abs/1912.13200v3.](https://arxiv.org/abs/1912.13200v3) 84. Elhoushi, M., Chen, Z., Shafiq, F., Tian, Y. H. & Li, J. Y. DeepShift: [Towards multiplication-less neural networks (2019). https://arxiv.org/](https://arxiv.org/abs/1905.13298v3) [abs/1905.13298v3.](https://arxiv.org/abs/1905.13298v3) 85. Sackinger, E. Measurement of finite-precision effects in handwritingand speech-recognition algorithms. In Lecture Notes in Computer Science, 1223–1228 (Springer Berlin Heidelberg, 1997). 86. Merrikh-Bayat, F. et al. High-performance mixed-signal neurocomputing with nanoscale floating-gate memory cell arrays. IEEE Trans. Neural Netw. Learn. Syst. 29, 4782–4790 (2018). 87. Conti, M., Orcioni, S. & Turchetti, C. Training neural networks to be insensitive to weight random variations. Neural Netw 13, 125–132 (2000). 88. [https://www.xilinx.com/products/silicon-devices/fpga/virtex-](https://www.xilinx.com/products/silicon-devices/fpga/virtex-ultrascale-plus.html) [ultrascale-plus.html.](https://www.xilinx.com/products/silicon-devices/fpga/virtex-ultrascale-plus.html) 89. [https://www.synopsys.com/verification/simulation/vcs.html.](https://www.synopsys.com/verification/simulation/vcs.html) 90. [https://www.synopsys.com/implementation-and-signoff/rtl-](https://www.synopsys.com/implementation-and-signoff/rtl-synthesis-test/dc-ultra.html) [synthesis-test/dc-ultra.html.](https://www.synopsys.com/implementation-and-signoff/rtl-synthesis-test/dc-ultra.html) 91. Li, Y. et al. Understanding hot interconnects with an extensive benchmark survey. BenchCouncil Trans. Benchmarks Stand. Evaluat. 2, 100074 (2022). 92. [https://www.gigabyte.cn/enterprise/gpu-server/g292-z20-rev-100.](https://www.gigabyte.cn/enterprise/gpu-server/g292-z20-rev-100) 93. Wang, G., Lin, Y. & Yi, W. Kernel fusion: An effective method for better power efficiency on multithreaded GPU. In 2010 IEEE/ACM Intl Conference on Green Computing and Communications &amp Intl Conference on Cyber, Physical and Social Computing (IEEE, 2010). 94. Rabenseifner, R. & Traff, J. L. More efficient reduction algorithms for non-power-of-two number of processors in message-passing parallel systems. In Recent Advances in Parallel Virtual Machine and Message Passing Interface, 36–46 (Springer Berlin Heidelberg, 2004). Acknowledgements This work is supported by the National Natural Science Foundation of China (62474058 and 61804049); the Yuelushan Center for Industrial Innovation (2023YCII0104); the Huxiang High Level Talent Gathering Project (2019RS1023); the Technology Innovation and Entrepreneurship Funds of Hunan Province, P.R. China (2019GK5029); the Fund for Distinguished Young Scholars of Changsha (kq1905012). Author contributions P.H.M.,Y.J.Z.,Z.Y.Z.andJ.L.proposedthemethodologyandperformedthe experiments. P.H.M., Y.J.Z., Z.Y.Z., J.H.L., H.H.S. and J.L. prepared the visualized tables and figures. P.H.M., Y.J.Z., Z.Y.Z., J.H.L., D.W.G., X.D., X.Z.,B.C.,J.X.H.,J.C.,J.Y.D.,andJ.L.collectedthedata.P.H.M.,Z.Y.Z.,and J.L. wrote the initial manuscript. P.H.M., Y.J.Z., Z.Y.Z., H.H.S., J.H.L., D.W.G., X.D., X.Z., B.C., M.C.S., D.Z., D.H.L., Y.N.W., J.X.H., F.L., X.Y.L., M.H.C., J.C., B.L., W.N.E., J.Y.D., L.F.Z., H.W., and J.L. provided the review and revision for manuscript. H.W. provided suggestions to improve the implementation. J.L. provided the oversight and guidance for the research execution. Competing interests The authors declare no competing interests. Additional information Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41524-024-01422-3.](https://doi.org/10.1038/s41524-024-01422-3) Correspondence and requests for materials should be addressed to Jiayu Dai, Linfeng Zhang, Han Wang or Jie Liu. Reprints and permissions information is available at [http://www.nature.com/reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this [licence, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 62문단 · 39,451자

(제목 없음)

2Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences https://doi.org/10.1038/s41524-024-01422-3

3High-speed and low-power molecular dynamics processing unit (MDPU) with ab initio accuracy

Check for updates

4Pinghui Mo 1,2,16 , Yujia Zhang 2,16 , Zhuoying Zhao 2,16 , Hanhan Sun 3,16 , Junhua Li 2 , Dawei Guan 2 , Xi Ding 2 , Xin Zhang 2 , Bo Chen 4 , Mengchao Shi 2,5 , Duo Zhang 5,6,7 , Denghui Lu 8 , Yinan Wang 6,9 , Jianxing Huang 10 , Fei Liu 11 , Xinyu Li 6 , Mohan Chen 8 , Jun Cheng 10 , Bin Liang 3 , Weinan E 6,9,12 , Jiayu Dai 4 , Linfeng Zhang 5,6 , Han Wang 6,13 & Jie Liu 1,6,14,15 Molecular dynamics (MD) is an indispensable atomistic-scale computational tool widely-used in various disciplines.In the past decades, nearly all ab initio MD and machine-learning MD have been based on the general-purpose central/graphics processing units (CPU/GPU), which are well-known to suffer from their intrinsic "memory wall" and "power wall" bottlenecks.Consequently, nowadays MD calculations with ab initio accuracy are extremely time-consuming and power-consuming, imposing serious restrictions on the MD simulation size and duration.To solve this problem, here we propose a special-purpose MD processing unit (MDPU), which could reduce MD time and power consumption by about 10 3 times (10 9 times) compared to state-of-the-art machine-learning MD (ab initio MD) based on CPU/GPU, while keeping ab initio accuracy.With significantly-enhanced performance, the proposed MDPU may pave a way for the accurate atomistic-scale analysis of large-size and/or longduration problems which were impossible/impractical to compute before.

5As a cornerstone of atomistic-scale analysis [1][2][3] , molecular dynamics (MD) is playing increasingly important roles in various disciplines, like physics 4 , chemistry 5 , biology 6,7 , materials 8 , nanotechnology 9 , medicine 10 , geology 11 , semiconductor 12 , cosmology 13 and so on.As a result, the number of MDrelated publications grows as an exponential function of time (e.g., Fig. 1 of ref. 14 and Supplementary Fig. 1).To reliably capture various atomistic-scale phenomena, energy prediction error (ε e in meV/atom) of MD should be around or below 1.0 kcal/mol (i.e., 43.4 meV/atom), which is well-known as "quantum mechanical" or "ab initio" accuracy as defined by John A. Pople 15 From the software/algorithm point of view, the existing MD methods consist of three major categories: (1) classical MD (CMD), which uses artificially-crafted analytic expressions to describe the interatomic potential (IAP) [16][17][18][19][20] ; (2) ab initio MD (AIMD), which uses ab initio calculations like density functional theory (DFT) to obtain the IAP [21][22][23][24][25][26] , and (3) machinelearning MD (MLMD) which uses machine learning models to compute the IAP [27][28][29][30][31][32][33] .Amongst these three categories, only AIMD and MLMD could achieve ab initio accuracy.In contrast, the IAP prediction error of CMD could be as high as 10.0 kcal/mol [34][35][36][37] .

6From the hardware/computer point of view, although there are specialpurpose hardware/computer (notably, the Anton series [38][39][40] and the MDGRAPE series [41][42][43] , for example) for CMD, the existing MD simulations with ab initio accuracy (i.e., AIMD and MLMD) in the literature are predominantly executed by using the general-purpose central/graphics processing units (CPU/GPU) which are based on the von Neumann (vN) architecture 44 .It is well known that the vN CPU/GPU suffer from "memory wall" and "power wall" bottlenecks -most (e.g., >90%) of the total 1 College of Integrated Circuits, Hunan University, Changsha, 410082, P.R. China. 2 College of Electrical and Information Engineering, Hunan University, Changsha, 410082, P.R. China. 3College of Computer, National University of Defense Technology, Changsha, 410073, P.R. China. 4Department of Physics, National University of Defense Technology, Changsha, 410073, P.R. China. 5DP Technology, 100080 Beijing, P.R. China. 6AI for Science Institute, 100080 Beijing, P.R. China. 7Academy for Advanced Interdisciplinary Studies, Peking University, 100871 Beijing, P. R. China. 8HEDPS, CAPT, College of Engineering, Peking University, 100871 Beijing, P.R. China. 9School of Mathematical Science, Peking University, 100871 Beijing, P.R. China. 10State Key Laboratory of Physical Chemistry of Solid Surfaces, iChEM, College of Chemistry and Chemical Engineering, Xiamen University, Xiamen, 361005, P.R. China. 11School of Integrated Circuits, Peking University, 100871 Beijing, P.R. China. 12Center for Machine Learning Research, Peking University, 100871 Beijing, P.R. China. 13Institute of Applied Physics and Computational Mathematics, 100088 Beijing, P.R. China. 14Greater Bay Area Institute for Innovation, Hunan University, Guangzhou, 511300, P.R. China.calculation time and power is actually used to frequently shuttle data, and only a very small proportion of time and power is spent to perform the functional arithmetic/logic operations 45,46 .This leads to high powerconsumption (η p in Watt) and high time-consumption (η t in second/ step/atom), i.e., low MD speed 47,48 .To remedy low MD speed, parallelization using many CPUs/GPUs (e.g., 10 6 -10 7 CPU cores and 10 4 -10 5 GPUs) becomes necessary, further increasing η p (e.g., η p can reach about 10 1 MW as shown in Fig. 1) [49][50][51][52][53] .The high η t and η p values imposes serious restrictions on state-of-the-art MD simulation size/duration and affordability.

7Aiming at mitigating these restrictions, here we propose a specialpurpose MD processing unit (MDPU), which could reduce η t and η p by about 10 3 times (10 9 times) compared to state-of-the-art MLMD (AIMD), while keeping ab initio accuracy (Sections "Results" and "Discussion").Such dramatic MD performance improvement is accomplished via co-design and in-depth co-optimization of algorithm, hardware, and software (Section "Methods") 54 .First, heavy-duty calculations in MD are replaced by using light-weight equivalent arithmetic/logic operations, by leveraging cuttingedge machine-learning algorithms, after extensive and carefully-crafted revisions (Section "Algorithm") 30,55 .Second, a powerful computing-inmemory (CIM) hardware calculation engine is implemented, in order to mitigate the "memory wall" and "power wall" bottlenecks, based on the commodity-level or commercially-available hardware technologies like field programmable gate array (FPGA) and application specific integrated circuit (ASIC) (Section "Hardware") 56,57 .Third, the software is purposefully rewritten into highly-efficient pipelines according to FPGA/ASIC characteristics (Section "Software") 54 .More implementation details are available in Section "Methods".

Results

8The proposed MD method is applied to six systems, including elementary systems (Au 58 , Cu 59 , Mg 60 ), binary systems (H 2 O 61,62 , GeTe 63,64 ), and quaternary system (Li 10 GeP 2 S 12 65 ), to quantitatively analyze MD performance metrics like accuracy (Section "Accuracy"), speed and power (Section "Speed and Power"), cost (Section "Cost"), and system size (Section "Size").We purposefully choose these six systems, which are known to be challenging to achieve high accuracy, as they are either energetically subtle or under extreme external conditions [58][59][60][61][62][63][64][65] .

Accuracy

9As shown in Fig. 2, the proposed MD method has decent accuracy.Compared to the ab initio DFT results, the root-mean-square error (RMSE) of its potential energy surface (PES) prediction results is ε e = 85.35, 1.84, 2.47, 7.62, 2.95, 1.66 meV/atom; and the RMSE of its atomic force prediction results is ε f = 173.20, 16.44, 13.91, 148.24, 110.69, 59.67 meV/Å, in Au, Cu, Mg, GeTe, H 2 O, and Li 10 GeP 2 S 12 , respectively.Notably, ε e here (10 −3 -10 -1 eV/atom) is 2-3 orders of magnitude smaller than typical interatomic bond energy (10 0 -10 1 eV/atom 66 ); and ε f here (about 10 1 -10 2 meV/Å) is very close to the typical default convergence threshold force value of lattice relaxation in various DFT tools (e.g., 40.0 meV/Å in SIESTA 25 ; 25.7 meV/Å in Quantum Espresso 22 ; and 23.1 meV/Å in CP2K 67 ).

10It worth noting that such small ε e and ε f indicates very high accuracy of the proposed MD method, since these six systems involve repeated chemical bond rupture and formation with extremely complicated and dynamically-evolving high-dimensional PES, imposing serious challenges to keep high calculation accuracy [58][59][60][61][62][63][64][65] .Fortunately, ab initio accuracy of energy and atomic force of the proposed MD method (Fig. 2) lays a solid foundation for reliable prediction of various physical properties.In Fig. 3, these physical properties are computed using the proposed MD method and compared directly against the established MLMD, because MLMD is known to have ab initio accuracy [58][59][60][61][62][63][64][65] and DFT-based AIMD is too time-consuming and power-consuming to obtain these properties (Fig. 1).

11Under intensive shock wave compression (e.g., 10 0 -10 1 km/s), which leads to extremely high pressure (e.g., 10 3 -10 4 GPa) and temperature (e.g., 10 4 -10 5 K), the Au physical properties calculated by using the proposed MD method agree well with MLMD results (Fig. 3a and Supplementary Fig. 2) 58 .Under strong (up to 10%) tensile strain, the proposed MD method can accurately predict Cu strain-stress curve and the related properties like the Young's modulus (Fig. 3(b)) 59 .The stacking fault energies of Mg, which is difficult to accurately compute 60 , are calculated using the proposed method on basal {0001}, prismatic {10 10}, pyramidal I {10 11}, and pyramidal II {11 22} planes, and the results agree well with the established MLMD and DFT methods (Fig. 3c and Supplementary Fig. 3) 60 .

12The proposed MD method could accurately reproduce the radial distribution function of liquid H 2 O, which has complicated PES and hydrogen bonds (Fig. 3d) 61,62 .It is known that the energy difference between amorphous and crystalline chalcogenide phase change material (PCM) is ε a-c ≈ 10 2 meV/atom, and the energy difference between PCM with and without Peierls distortion is ε Peierls ≈ 10 1 meV/atom [68][69][70] .Using the proposed MD method, we have reliably captured not only the meltquench-recrystallization processes of PCM GeTe, but also its Peierls distortion as revealed by the angular-limited three-body correlation (ALTBC) results (Fig. 3e) 63,64 .ALTBC indicates the bond length distribution of two Ge-Te bonds in the three-body structure (i.e.Ge-Te-Ge and Te-Ge-Te) with an angle greater than 155°.the PES error here (ε e = 7.62 meV/atom as shown in Fig. 2e) is much smaller than ε a-c and ε Peierls , enabling MDPU to correctly reproduce the microstructure of the amorphous GeTe.The proposed MD method also accurately predicts the Li-ion diffusion process in the complicated quaternary system Li 10 GeP 2 S 12 (Fig. 3f) 65 .

13Our study shows that the accuracy of DPMD simulations on CPU/ GPU aligns closely with those on MDPU.Minor variations observed in examples like Cu and Li 10 GeP 2 S 12 fall within the statistical error range and are attributed to natural fluctuations in the simulations, rather than differences in the hardware.The calculation data and codes are open-sourced (Sections "Data Availability" and "Code Availability").More details are available in Supplementary Section 2. To achieve η t = 10 -10 -10 -9 s/step/atom, η p is reduced from 10 6 -10 7 W (green box 49,71 ) to about 10 3 W (red box).

Speed and power

14As shown in Fig. 1, due to the linear strong and weak scaling of MLMD 49 , we use

15to investigate time-efficiency and power-efficiency.Though it does not hold for AIMD, Eq. ( 1) helps approximately define the upper (b max ) and lower (b min ) boundaries of each method, facilitating quantitative analysis and comparison.Figure 1 shows that the proposed MD method based on FPGA is over 10 the most powerful supercomputer in the world at that time (η p ≈ 10 6 -10 7 W which needs more than 4000 gallons of water pump through cooling system every minute to carry away heat; 522 m 2 area; 10 4 -10 5 NVIDIA V100 GPUs; 10 5 -10 6 CPU cores) 49,71 .In sharp contrast, to achieve the same η t (10 -10 -10 -9 s/step/atom), the proposed MD method needs merely about η p ≈ 10 3 W power (red dashed box at bottom of Fig. 1) by using 10 to 20 ASICs, which fits into a single desktop-size computer (Section "Methods").

16In Fig. 1, the η t values of AIMD and MLMD are fetched from the literature (Supplementary Table 1); the η t results of FPGA and ASIC are obtained in this work (Section "Methods"); the η p values are approximately estimated using a unified equation η p = P CPU × N CPU + P GPU × N GPU + P FPGA × N FPGA + P ASIC × N ASIC , where N CPU , N GPU , N FPGA , and N ASIC denote the number of CPU core(s), GPU(s), FPGA(s), and ASIC(s); and P CPU , P GPU , P FPGA , and P ASIC denote the thermal design power (TDP) of a CPU core, a GPU, an FPGA, or an ASIC, respectively (Supplementary Tables 2, 3, 4).Here, we use TDP (defined as "the maximum amount of heat generated by a computer chip or component that the cooling system is designed to dissipate under any workload" 72 ) instead of measured power, mainly due to two reasons.First, in existing AIMD and MLMD papers, the measured power values of MD calculations are typically not available, but the types of CPU/GPU are disclosed and TDP values are available in the datasheets of CPU/GPU.Second, to economically utilize the hardware resources, the computing devices typically consume most (e.g., ζ = 65.2-91.4% as shown in Supplementary Table 5) of TDP.This is particularly true for the computationally-intensive tasks like MD with ab initio accuracy.

Cost

17Compared to the widely-used CPU/GPU-based MD, the proposed MD method is more cost-efficient.To accomplish an MD task with N a atoms and n s timesteps, the total cost is C total = η t × N a × n s × C rent US dollars (USD), where C rent (in USD/s) is the price to rent computing time.Since C rent of the proposed MD method (like FPGA servers in Supplementary Table 6) is comparable or lower than the CPU/GPU counterparts and η t of the proposed MD method is significantly lower (Fig. 1), the C total of the proposed MD method can be much lower than CPU/GPU-based MD.For instance, by using the commodity-level FPGA (Xilinx Virtex UltraScale+ VU9P), we have built a computing server cluster to openly provide MD computing service (available at https://bohrium.dp.tech), which can reduce C total by over 10 1 times compared to the widely-used CPU/GPU service providers.

Size

18Using one CPU/GPU computer node, AIMD (MLMD) can typically calculate about 10 3 (10 6 ) atoms, partially due to capacity limitations of the highperformance memory, e.g., the high-bandwidth memory (HBM) on the GPU card (typically 10 1 -10 2 GB) 73 .In order to mitigate this limitation, the proposed MD method adopted purposefully-designed pipeline (Section "Methods"), which enable us to leverage the larger-capacity (typically 10 2 -10 4 GB) dynamics random access memory (DRAM) on the mainboard instead.Consequently, the proposed MD method based on one desktop-size computer can calculate over 10 8 atoms with ab initio accuracy.Notably, this is comparable to the cutting-edge MLMD, which used the entire Summit supercomputer to accommodate about 10 8 atoms 49,71 .

Discussion

19The abovementioned merits (i.e., ab initio accuracy, high speed, low power, low cost, and large size) of the proposed MD method are generallyapplicable to the MD calculations of any chemical elements, any composition, and any statistical ensemble.The proposed MD method has linear time complexity, which is desirable for parallelization and scaling.These merits are inherited from the deep potential smooth edition (DeepPot-SE) MLMD algorithm (Section "Algorithm") 55 .All hardware (e.g., ASIC and FPGA) used in this paper are commodity-level or commercially-available technologies.The communication networks are realized by using widely-used technologies, like internet wide-area remote-direct-memory-access protocol (iWARP), InfiniBand (IB), and peripheral component interconnect express (PCIe), etc.The parallelization is realized based on the mainstream Beowulf cluster and message passing interface (MPI).So, there is no hardware component in this paper that cannot be purchased commercially on the existing market.The software is programmed using mainstream programming languages like C/C + +, and the users can control the MD calculations via popular MD tools like LAMMPS 74 .The proposed MD system is designed in this way, aiming at general-purpose user-friendly MD applications with ab initio accuracy.

20It is worth mentioning that MDPU has high accuracy and efficiency at the same time, which makes it have obvious advantages over AIMD when simulating complex systems.Taking the Au system as an example, although AIMD can accurately predict the thermodynamic properties of shocked-compressed Au, it fails to capture the evolution of microstructures under shock compression due to the limit of simulation sizes 58 .In addition, as shown in Fig. 3, six examples in various fields such as special materials, semiconductors, and electrochemistry have extremely complex and dynamically evolving simulation processes, which pose a serious challenge to the accuracy of PES.The results demonstrate that MDPU is not only accurate and efficient but also general enough to be extended to more application fields, effectively addressing practical materials science problems.

21It deserves noting that the DeepPot-SE algorithm (Section "Algorithm") 55 has been applied successfully in many MD simulations from different disciplines 75 , including long-range electrostatic interactions 76 and polarization 77 .By inheriting its merits of general-applicability, the MDPU proposed here is promising to offer next-generation general-purpose MD solutions with high-speed, low-power, and high-accuracy.

22Though the time-and power-consumptions (η t and η p ) have been significantly reduced by mitigating "memory/power wall" in CIM hardware, the remaining communication between master and slave processing units (MPU and SPU in Section "Methods") hinders further enhancement of efficiency.It deserves future attention to solve this problem, for example, by integrating MPU and SPU in a larger-area ASIC.

23Compared to the seminar and established ASIC-based MD machines (e.g., the Anton series [38][39][40] and the MDGRAPE series [41][42][43] ) and the FPGA-based MD machines [78][79][80][81][82] , the most significant merit of the proposed MDPU is its ab initio accuracy.Though the existing ASICbased and FPGA-based MD machines are very efficient, they are all based on CMD, which intrinsically cannot achieve ab initio accuracy.Therefore, in the FPGA/ASIC-based MD machine family, the MDPU proposed here can offer a useful efficient MD modeling solution when high accuracy is required.

24It is well known that general-purpose CPUs and GPUs have the advantages of low development costs and faster development cycles, but their computational efficiency is limited by the "memory/power wall" bottleneck.In contrast, special-purpose FPGAs and ASICs are more computationally efficient but come with higher development costs and longer development cycles.FPGAs offer programmability, but their limitations include lower clock frequencies and limited resources, making them more suitable for debugging and testing purposes.ASICs surpass FPGAs in terms of clock frequency and hardware resources, but they require redesign and remanufacturing for each iteration, which adds to the development complexity and time.

Methods

25The results presented above are obtained by following the same analysis procedure (Section "Analysis Procedure"), and the MD simulations are performed on the proposed MD system (Section "System Overview"), which consists of co-designed and deeply co-optimized algorithm (Section 4.0), hardware (Section "Hardware"), and software (Section "Software").

Analysis procedure

26To simulate each system, the analysis procedure consists of three consecutive steps.In the first step, the emerging active learning tools (e.g., DP-GEN 59 ) are used to iteratively call the DFT calculations, to generate training datasets.In this work, we use the training datasets, which were generated in this way and published previously in the literature (Supplementary Table 1).In the second step, the interatomic potential (IAP) model is trained using the emerging deep learning tools, like DeepPot-SE in DeePMD 30,55,73 , which is revised extensively here according to characteristics of FPGA and ASIC hardware (Section "Algorithm").In the third step, MD simulation is performed based on the proposed MD system (Sections "System Overview", "Algorithm", "Hardware", "Software"), by using the IAP model.

System overview

27As shown in Fig. 4a, the proposed system consists of N MD processing units (i.e., MDPU n , where n = 1, 2, …, N).Inside each MDPU, there are M master processing units (i.e., MPU n,m , where m = 1, 2, …, M) and S slave processing units (i.e., SPU n,s , where s = 1, 2, …, S).MPU can be implemented using CPU/GPU, which is based on the traditional von Neumann architecture (lower time-efficiency and power-efficiency); and SPU can be implemented using FPGA/ASIC, which is based on the emerging CIM non von Neumann architecture (higher time-efficiency and power-efficiency).The MPU and SPU jointly form a heterogeneous architecture parallelization system via intra-MDPU and inter-MDPU communication networks.

28The system is designed in this way, in order to realize three goals.First, to boost MD efficiency.As most of MD calculation workload (sometimes over 99%) is to evaluate the interatomic potential (IAP), IAP is completely offloaded to SPU, which is a coprocessor with an internal architecture specially-designed to significantly enhance time and power efficiency of IAP evaluation.

29Second, to enable user-friendly and flexible MD calculations.Though SPU is efficient, its FPGA/ASIC implementation is inconvenient to control via programs that users are familiar with.So MPU is implemented based on CPU/GPU, which can be controlled using programs like C/C + +/Fortran, facilitating arbitrarily-defined post-processing, meta-dynamics, and MD with all kinds of statistical ensembles, e.g., constant-energy constant-volume (NVE), constant-temperature constant-volume (NVT), constanttemperature constant-pressure (NPT), constant-temperature constantstress (NST), constant-pressure constant-enthalpy (NPH), etc.

30Third, to seamlessly integrate both high-efficiency and high-flexibility.Though MPU helps realizing flexibility, it is slower and may introduce extra latency besides the much faster SPU.To annihilate the potential MPUinduced η t increase, a pipeline is used to coordinate the execution of MPU, SPU, and the MPU-SPU communication.As shown in Fig. 4(b), system design and parameters (e.g., M and S) are optimized such that time consumption of MPU (t MPU ) and intra-MDPU MPU-SPU communication (t comm ) can be completely covered by that of SPU (t SPU ), i.e., t MPU ≤ t SPU and t comm ≤ t SPU .Consequently, the total MD system time consumption is just the time used by the highly-efficient SPU.

Algorithm

31In this work, we use deep potential smooth edition (DeepPot-SE) MLMD algorithm 55 , after extensive modifications, to model IAP.In a N a -atom system, the set of atomic coordinates is R = {R i | i = 1, 2, …, N a }, where R i = (x i , y i , z i ).The set of chemical species is Z = {Z i | i = 1, 2, …, N a }.The neighbor list of atom i is defined as

32To ensure the translational symmetry, the global coordinate system {R j } = {R j | j ∈ I i } is translated into a generalized local environment matrix e R ji ¼ ðs ji ; s ji x ji =R ji ; s ji y ji =R ji ; s ji z ji =R ji Þ, where

33Here, R cs is a smooth cutoff parameter.Then, s ji is mapped into a M G -dimension embedding matrix G ji by a multilayer perceptron (MLP) neural network, which is referred to as "FeaNet" hereafter.The l th layer of the MLP is d lþ1 ¼ φ l ðd l × w l þ b l Þ, where d l , w l , b l and φ l are the input vector, weight matrix, bias vector, and the nonlinear activation function, respectively.

34To ensure the permutation symmetry and the rotational symmetry, an

35, where r and c denote row and column indices, respectively; and % denotes the modulo operation.By using another MLP, which is referred to as "FitNet" hereafter, D i is mapped into energy E i , and the total system energy is computed using E ¼ P i E i .Finally, the atomic force

36Though this MLMD algorithm is much more efficient than AIMD (Fig. 1), it has been designed to run on CPU/GPU, whose architecture (von Neumann) is fundamentally different from that of FPGA/ASIC (CIM non von Neumann) used here.So if this MLMD algorithm was directly deployed on FPGA/ASIC hardware without revision, it would be too transistorconsuming to be efficient enough (i.e., large η t and η p ).To minimize η t and N η p , this MLMD algorithm is extensively revised, in the following four aspects, according to the characteristics of FPGA/ASIC hardware (Section "Hardware").

37First, the emerging highly-efficient reconfigurable digital CIM technology 56 is utilized to replace the conventional floating-point multiplyaccumulation (MAC) operation, which is known as one of the most computationally-intensive parts.Specifically, MAC A; B ð Þ¼

38) is replaced by: (1) pre-alignment of elements of A (i.e., a 0 i ¼ h a i × 2 e a ) and B; and (2) subsequent fixed-point MAC operation (i.e.,

39Here, h a i ¼ a i × 2 Àe a ; e a ¼ e a max À e h ; e a max is the largest element of A; e h is the fractional digits of fixed-point number h a i for A. Similar definitions are valid for B by replacing superscript "a" with "b".This could significantly enhance the time and power efficiency while maintaining high accuracy 56 , since inputs are prealigned to their local maximum exponents, avoiding complex alignment logic circuit in hardware implementation (Section "Hardware").

40Second, though the above pre-alignment has replaced the resourceconsuming floating-point operations (e.g., a i × b i ) by using much more resource-saving fixed-point operations (e.g., h a i × h b i ), the time and power efficiency could be further enhanced via replacing the resource-consuming multiplications by using the resource-saving bitwise shift and/or add operations 83,84 .The consequent quantization error can be effectively controlled by using multiple bitwise shift/add operations to replace one multiplication, by leveraging MLP's merit of high tolerance of weight variation 85,86 and the training algorithms purposefully designed to control the error due to weight variation 87 .

41Third, the conventional trigonometric function-based nonlinear activation function, φ l ðÁÞ; 55 which is very transistor-consuming, is replaced here by using much more transistor-saving light-weight activation function

42, where x c = max(min(x, 2), −2).The ψ x ð Þ needs only two multiplications, excluding complicated trigonometric, exponential or division operations; the remaining coefficient multiplications are efficiently implemented as inexpensive shift operations 2 n (i.e., 1/16 = 2 −4 and 4 = 2 2 ).It worth noting that both the first-order and second-order derivatives of ψ x ð Þ are continuous, paving a way to the accurate evaluation of energy, atomic force, and virial.

43Fourth, though the above three revisions have significantly reduced η t and η p of MLP, the efficiency of "FeaNet" MLP can be further enhanced by leveraging its special algorithm characteristics 73 .Since the dimensionality of "FeaNet" input (output) is 1 (M G ), here this low-dimensional 1-to-M G MLP mapping is replaced by using M G interpolation functions.For one of these M G continuous functions, y = f (x), as defined on a finite range [x min , x max ], its input range is uniformly divided into segments (x ∈ [x k , x k+1 )], where k = ⌊(xx min ) / dx⌋.Here, dx is set small enough such that a polynomial can be used to approximate the function of the k th segment.The cubic spline interpolation function

44, where 4x ¼ x À x k ; and four coefficients a, b, c and d are first determined by solving the four linear equations g

45and then stored in lookup tables.In both feed-forward (to evaluate energy) and back-propagation (to evaluate atomic force) "FeaNet" calculations, the above techniques are applied, to guarantee continuity of the function value and its first-order derivative.

Hardware

46In the widely-used von Neumann architecture hardware (e.g., CPU/GPU), a huge proportion (sometimes over 90%) of total MD calculation time and power is spent to frequently shuttle data back-and-forth between the information processing device and the information storage device (i.e., "memory wall" and "power wall" bottlenecks) [45][46][47] .To solve this problem, we have designed and implemented a non von Neumann architecture CIM hardware, to deploy the revised IAP MLMD algorithm (Section "Algorithm"), based on commodity-level or commercially-available FPGA and ASIC technologies.

47While FPGA has the merits of fast design iteration and low development cost, it suffers from drawbacks of inferior performance, power, and area (PPA) metrics.In contrast, the PPA metrics of ASIC is typically about 10 1 -10 2 times superior than FPGA, at the expense of slow design iteration and high development cost 57 .So, following the common practice of the semiconductor industry, the CIM hardware here is developed and implemented in two consecutive phases (first FPGA and then ASIC), both of which are based on the emerging inmemory processing technologies to mitigate the "memory wall" and "power wall" bottlenecks 56 .

48In the first phase, FPGA (e.g., Xilinx Virtex UltraScale+ VU9P with f FPGA = 350 MHz clock frequency) is used to realize SPU; and CPU (e.g., Intel Xeon Platinum 8163) can be used to realize MPU.Inside one commodity-level desktop, we can install several FPGA cards (e.g., S = 1, 2, 3, 4 as shown in Fig. 4).To enable intra-MDPU pipeline (i.e., t MPU ≤ t SPU in Fig. 4a), M = κ × S CPU cores are needed inside each MDPU.We found that typically κ < 10 suffices (e.g., κ = 4 to 8), up to the CPU performance, if software on MPU is well-programmed, and further increasing κ does not help reducing η t .To realize inter-MDPU communication, we use internet wide-area remote-direct-memory-access protocol (iWARP), whose bandwidth and latency are shown in Supplementary Fig. 4. The black curve of Fig. 5a shows that an MDPU with one FPGA achieves η t = 3.8 × 10 −7 s/step/ atom, consuming merely η p = 7.5 × 10 1 W.

49As a direct comparison, the established MLMD based on one state-ofthe-art GPU, after the IAP model compression and in-depth software optimization, can only achieve η t = 10 −6 -10 −5 s/step/atom and η p = 10 2 -10 3 W 49,71,73 .Notably, such low η t and η p based on FPGA are achieved by using merely f FPGA = 10 -1 -10 0 GHz clock frequency and about d FPGA ≈ 10 6 devices (i.e., logic units).It is well known that ASIC has much higher clock frequency (e.g., f ASIC = 10 0 -10 1 GHz) and significantly more devices (e.g., d ASIC > 10 9 transistors).So, here we use the first phase (FPGA) as a springboard to the second phase (ASIC) 57 , in order to achieve even lower η t and η p .

50In the second phase, ASIC is used to realize SPU; and GPU can be used to implement MPU.Since the Xilinx Virtex UltraScale+ FPGA is fabricated using 14 nm/16 nm technology nodes with about 30-40 million transistors/ mm 288 , we use a process design kit (PDK) with similar transistor density to Fig. 5 | Performance and parallelization of FPGA/ ASIC-based MD systems.N a -dependent time consumption (η t ) and its parallelization performance of the proposed MD system based on FPGA (a) and ASIC (b), where N a is the number of atoms.In (a), one MDPU consists of a multicore CPU and an FPGA.In (b), one MDPU consists of one GPU and four ASICs; The lines with small dots are analytical prediction values; and the symbols (i.e., crosses, upward/downward triangles, circles, squares, and stars) are the measured values.As shown in Supplementary Fig. 5, the ASIC is designed to calculate atoms by using the time division multiplexing (TDM) and pipeline technologies.In our ASIC, it takes n 0 = 676 clock cycles to complete calculation of the first atom.After that, the pipeline uses 8 extra clock cycles to finish calculating each additional atom.Since the ASIC clock frequency here is 2.0 GHz, one clock cycle takes 0.5 ns.So, the time consumption of one ASIC is

51When the number of atoms sent to an ASIC (N a(ASIC) ) is large (e.g., 10 3 -10 4 or larger), we have n 0 << 8 × N a(ASIC) and η t(ASIC) ≈ 4.00 × 10 -9 s/ step/atom as indicated by black arrow in Fig. 5b.One ASIC consumes about η p(ASIC) = 1.3 × 10 2 W power.

52Notably, though η p(ASIC) of one ASIC here is comparable to that of one state-of-the-art GPU (i.e., 10 2 -10 3 W), η t(ASIC) of one ASIC is about 3 orders of magnitude lower than that of one state-of-the-art GPU (i.e., about 10 −6 s/step/ atom) 49,71,73 .To strike a balance between ASIC fabrication cost and calculation performance, the ASIC area is designed to be a moderate value (about 110 mm 2 ) and four ASICs are used together with one GPU (i.e., S/M = 4) to form an MD processing unit (MDPU).Since each GPU (i.e., MPU) typically has 16 peripheral component interconnect express (PCIe) lanes, so each ASIC (i.e., SPU i , i = 1, 2, 3, 4) is designed to have 4 PCIe lanes, such that S/M = 4.

53As shown in Fig. 6a, in the second phase (ASIC), each MPU connects with four SPUs via an PCIe switch, in order to further reduce η t .So, the number of atoms sent to one MDPU (N a(MDPU) ) is four times of that sent to one SPU (N a(SPU) ), i.e., N a(MDPU) =N a(SPU) × S/M = 4 × N a(SPU) .Time efficiency of an MDPU is

54where N Ω = 4096 is the number of atoms in a subdomain (defined in Fig. 6b and Section "Software"); n Ω = 6 subdomains of atoms are sent together into an ASIC to ensure t comm ≤ t SPU ; c 0 = 7/4 + 1 = 2.75 means that it takes MPU 7/4 × t pl to send data to SPUs and 1 × t pl to receive data from SPU in one pipeline period (t pl as defined in Fig. 6a).Equation ( 3) is visualized as the green curve in Fig. 5b.It worth noting that one common blade server node 92 can accommodate at least 4 MDPU, which can achieve η t ≈ 2.5 × 10 −10 s/ step/atom (red curve of Fig. 5b) consuming merely η p ≈ 2.7 × 10 3 W power.This η t value is comparable to the speed using the whole top-tier supercomputer in the world with η p ≈ 10 7 W 49,71 .

Software

55The software is developed for deployment on von Neumann architecture MPU, to perform three tasks: (1) to coordinate the intra-MDPU MPU-SPU-communication pipeline; (2) to realize the inter-MDPU parallelization via message passing interface (MPI); and (3) to run all calculations other than IAP evaluation.To efficiently accomplish these three tasks, as shown in Fig. 6b, the supercell with N a atoms is partitioned into N d = N × M domains (denoted as Ω n,m with n = 1, 2, …, N and m = 1, 2, …, M), where N is the number of MDPUs and M is the number of MPU per MDPU.Each domain (Ω n,m ), which is surrounded by a domain shell (Φ n,m ) of thickness R c , is further partitioned into subdomains (Ω n,m,k ), which is surrounded by their subdomain shells (Φ n,m,k ).

56In the first phase (FPGA), to run an MD step, MPU n,m first encodes atomic information (e.g., the atomic coordinates {R i | i∈ Ω n,m,k ∪ Φ n,m,k }, the atomic specie {z i | i∈ Ω n,m,k ∪ Φ n,m,k }, and the neighbor list {I i | i∈ Ω n,m,k }) and save it into buffer memory.Then, MPU n,m sends the encoded data to SPU n,g (g = [m/k]).After SPU n,g calculation of PES, CPU n,m reads the encoded PES data from SPU n,g .Next, MPU n,m sends the enable signal to the following CPU core in the n th MDPU.Finally, the data is decoded to obtain the atomic energies {E i | i ∈ Ω n,m,k }, forces {F i | i∈ Ω n,m,k ∪ Φ n,m,k }, and virials {V i | i ∈ Ω n,m,k ∪ Φ n,m,k }.Following the processing of the subdomains, the MPU n,m must communicate with each other via MPI, and collect all components to obtain the final values of system energy, atomic forces, and atomic virials.

57In the second phase (ASIC), since an ASIC is much faster than an FPGA (i.e., significantly reduced t SPU ), it becomes much more challenging to achieve t MPU ≤ t SPU and t comm ≤ t SPU .So, besides the above domain and subdomain partitioning scheme, several other highly-efficient software technologies are used to further reduce t MPU and t comm .To reduce t MPU , MPU is based on GPU of CPU, as a GPU typically has about 10 2 times more cores than a CPU.And GPU kernel fusion programming technology is used to dramatically reduce t MPU on GPU 93 .To reduce t comm , we use sliding window (Fig. 6b), such that the communication data size can be significantly reducedafter computing {Ω n,m,k ∪ Φ n,m,k }, the atomic

Fig. 1 |

58Fig. 1 | Efficiency comparison of AIMD, MLMD, and proposed methods.Time-(η t ) and power-consumption (η p ) of state-of-the-art AIMD, MLMD, and the proposed MD method based on FPGA and ASIC.The equation "b = log 10 η t + log 10 η p " is used to fit the data of AIMD, MLMD, FPGA, and ASIC, to obtain values of parameter b.Here, b min /b max denotes the approximate lower/upper boundary of each method.To achieve η t = 10 -10 -10 -9 s/step/atom, η p is reduced from 10 6 -10 7 W (green box49,71 ) to about 10 3 W (red box).

Fig. 2 |

59Fig. 2 | The comparison of predicted energy and force.Comparison between energy/force predicted by the proposed MD method (E/F) and those computed using DFT (E DFT /F DFT ).Here, ε e /ε f is the root-mean-square error (RMSE) of E/F compared against E DFT /F DFT .

Fig. 3 |

60Fig. 3 | Comparison of results between the MD method proposed in this work and the established MLMD. a Au under intensive shock wave compression 58 ; (b) Cu under strong tensile strain 59 ; (c) stacking fault energies of Mg on the pyramid I {10 11} plane 60 ; (d) radial distribution function (RDF) of liquid H 2 O 63,64 ; (e) angularlimited three-body correlation (ALTBC) of amorphous GeTe 61,62 ; (f) diffusion coefficient (D) of Li in Li 10 GeP 2 S 12 65 . .

Fig. 4 |

61Fig. 4 | System overview of the proposed MD method and MD processing unit (MDPU).MDPU consists of three parts-master processing units (MPUs), slave processing units (SPUs), intra-and inter-MDPU communication networks which link MPUs and SPUs.a In the MD calculation flow, the evaluation of interatomic potential (IAP) is deployed on the SPUs, which are marked in yellow; all other calculations are deployed on MPUs, which are marked in green.b The pipeline designed to coordinate the operations of MPUs, SPUs, and the MPU-SPU communication.

10 - 7

62s/step/atom 4.0 10 -9 s/step/atom (a) (b) design ASIC.The digital circuit design, which has been well-tested on FPGA in the first phase, is simulated and synthesized using mainstream electronic design automation tools like Synopsys Verilog Compiler and Simulator (VCS®) 89 , Synopsys Design Compiler (DC®) 90 , and so on.To realize the inter-MDPU communication, we use the InfiniBand (IB) technology 91 , whose bandwidth and latency are shown in Supplementary Fig. 4.

Fig. 6 |

63Fig. 6 | Parallel pipelining and sliding window techniques in MD calculation.Schematic figures to illustrate the MPU-SPU-communication parallel pipeline used to enhance intra-MDPU calculation efficiency where t pl is the pipeline period (a), and sliding window used to enhance inter-MDPU calculation efficiency, in the second phase of implementation (ASIC).

참고문헌 82건

  1. Spectral neighbor analysis method for automated generation of quantum-accurate interatomic potentials Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2014.12.018
  2. Measurement of finite-precision effects in handwriting- and speech-recognition algorithms Lecture notes in computer science · Springer Science+Business Media · 1997 10.1007/bfb0020318
  3. More Efficient Reduction Algorithms for Non-Power-of-Two Number of Processors in Message-Passing Parallel Systems Lecture notes in computer science · Springer Science+Business Media · 2004 10.1007/978-3-540-30218-6_13
  4. Structure of amorphous<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mtext>Ge</mml:mtext></mml:mrow><mml:mn>8</mml:mn></mml:msub><mml:msub><mml:mrow><mml:mtext>Sb</mml:mtext></mml:mrow><mml:mn>2</mml:mn></mml:msub><mml:msub><mml:mrow><mml:mtext>Te</mml:mtext></mml:mrow><mml:mrow><mml:mn>11</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math>:<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub… Physical Review B · American Physical Society · 2009 10.1103/physrevb.79.134118
  5. Measuring the Gap Between FPGAs and ASICs IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2007 10.1109/tcad.2006.884574
  6. GROMACS: A message-passing parallel molecular dynamics implementation Computer Physics Communications · Elsevier BV · 1995 10.1016/0010-4655(95)00042-e
  7. Large-scale compensation of errors in pairwise-additive empirical force fields: comparison of AMBER intermolecular terms with rigorous DFT-SAPT calculations Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2010 10.1039/c002656e
  8. <i>Ab initio</i> molecular dynamics: Concepts, recent developments, and future trends Proceedings of the National Academy of Sciences · National Academy of Sciences · 2005 10.1073/pnas.0500193102
  9. 1.1 Computing's energy problem (and what we can do about it) 2014 10.1109/isscc.2014.6757323
  10. The individual and collective effects of exact exchange and dispersion interactions on the <i>ab initio</i> structure of liquid water The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4893377
  11. Physics of Iron at Earth's Core Conditions Science · American Association for the Advancement of Science · 2000 10.1126/science.287.5455.1027
  12. A multi-scale analysis of the crystallization of amorphous germanium telluride using <i>ab initio</i> simulations and classical crystallization theory Journal of Applied Physics · American Institute of Physics · 2014 10.1063/1.4861721
  13. Quickstep: Fast and accurate density functional calculations using a mixed Gaussian and plane waves approach Computer Physics Communications · Elsevier BV · 2005 10.1016/j.cpc.2004.12.014
  14. Molecular dynamics in semiconductor physics Computational Materials Science · Elsevier BV · 1998 10.1016/s0927-0256(97)00087-6
  15. Understanding Modern Molecular Dynamics: Techniques and Applications The Journal of Physical Chemistry B · American Chemical Society · 1999 10.1021/jp992433y
  16. Hardware accelerator for molecular dynamics: MDGRAPE-2 Computer Physics Communications · Elsevier BV · 2003 10.1016/s0010-4655(03)00349-7
  17. Phase Transition for a Hard Sphere System The Journal of Chemical Physics · American Institute of Physics · 1957 10.1063/1.1743957
  18. Anton 2: Raising the Bar for Performance and Programmability in a Special-Purpose Molecular Dynamics Supercomputer 2014 10.1109/sc.2014.9
  19. Anton, a special-purpose machine for molecular dynamics simulation Communications of the ACM · Association for Computing Machinery · 2008 10.1145/1364782.1364802
  20. Nobel Lecture: Quantum chemical models Reviews of Modern Physics · American Physical Society · 1999 10.1103/revmodphys.71.1267
  21. MDGRAPE-4: a special-purpose computer system for molecular dynamics simulations Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2014 10.1098/rsta.2013.0387
  22. Molecular dynamics simulations in biology Nature · Nature Portfolio · 1990 10.1038/347631a0
  23. Efficient iterative schemes for<i>ab initio</i>total-energy calculations using a plane-wave basis set Physical review. B, Condensed matter · American Physical Society · 1996 10.1103/physrevb.54.11169
  24. Training neural networks to be insensitive to weight random variations Neural Networks · Elsevier BV · 2000 10.1016/s0893-6080(99)00101-x
  25. MOLECULAR DYNAMICS COMES OF AGE: 320 BILLION ATOM SIMULATION ON BlueGene/L International Journal of Modern Physics C · World Scientific · 2006 10.1142/s0129183106010182
  26. QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials Journal of Physics Condensed Matter · IOP Publishing · 2009 10.1088/0953-8984/21/39/395502
  27. CHARMM: The biomolecular simulation program Journal of Computational Chemistry · Wiley · 2009 10.1002/jcc.21287
  28. Kernel Fusion: An Effective Method for Better Power Efficiency on Multithreaded GPU 2010 10.1109/greencom-cpscom.2010.102
  29. DFT-based force field development for noble gas adsorption in metal organic frameworks Journal of Materials Chemistry A · Royal Society of Chemistry · 2015 10.1039/c5ta06201b
  30. Structure of covalently bonded materials: From the Peierls distortion to Phase-Change Materials Comptes Rendus Physique · Elsevier BV · 2015 10.1016/j.crhy.2015.12.009
  31. MDGRAPE-3: A petaflops special-purpose computer system for molecular dynamics simulations Advances in parallel computing · Elsevier BV · 2004 10.1016/s0927-5452(04)80083-2
  32. Interrelation of bond dissociation energies and contributing bond energies Journal of the American Chemical Society · American Chemical Society · 1975 10.1021/ja00839a013
  33. Quantum-chemical insights from deep tensor neural networks Nature Communications · Nature Portfolio · 2017 10.1038/ncomms13890
  34. ANI-1: an extensible neural network potential with DFT accuracy at force field computational cost Chemical Science · Royal Society of Chemistry · 2017 10.1039/c6sc05720a
  35. Deep Potential Molecular Dynamics: A Scalable Model with the Accuracy of Quantum Mechanics Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.120.143001
  36. A sobering assessment of small‐molecule force field methods for low energy conformer predictions International Journal of Quantum Chemistry · Wiley · 2017 10.1002/qua.25512
  37. Reducing the stochasticity of crystal nucleation to enable subnanosecond memory writing Science · American Association for the Advancement of Science · 2017 10.1126/science.aao3212
  38. SchNet – A deep learning architecture for molecules and materials The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5019779
  39. High-Performance Mixed-Signal Neurocomputing With Nanoscale Floating-Gate Memory Cell Arrays IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tnnls.2017.2778940
  40. End-to-end Symmetry Preserving Inter-atomic Potential Energy Model for Finite and Extended Systems arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1805.09003
  41. Active learning of uniformly accurate interatomic potentials for materials simulation Physical Review Materials · American Physical Society · 2019 10.1103/physrevmaterials.3.023804
  42. VASP hits the memory wall: Processors efficiency comparison Concurrency and Computation Practice and Experience · Wiley · 2019 10.1002/cpe.5136
  43. SIMPLE-NN: An efficient package for training and executing neural-network interatomic potentials Computer Physics Communications · Elsevier BV · 2019 10.1016/j.cpc.2019.04.014
  44. Phase-change heterostructure enables ultralow noise and drift for memory operation Science · American Association for the Advancement of Science · 2019 10.1126/science.aay0291
  45. Fast, scalable and accurate finite-element based <i>ab initio</i> calculations using mixed precision computing 2019 10.1145/3295500.3357157
  46. Fully integrated FPGA molecular dynamics simulations 2019 10.1145/3295500.3356179
  47. TensorAlloy: An automatic atomistic neural network program for alloys Computer Physics Communications · Elsevier BV · 2019 10.1016/j.cpc.2019.107057
  48. Deep Neural Network for Accurate and Efficient Atomistic Modeling of Phase Change Memory IEEE Electron Device Letters · Institute of Electrical and Electronics Engineers · 2020 10.1109/led.2020.2964779
  49. DP-GEN: A concurrent learning platform for the generation of reliable deep learning based potential energy models Computer Physics Communications · Elsevier BV · 2020 10.1016/j.cpc.2020.107206
  50. An open-source drug discovery platform enables ultra-large virtual screens Nature · Nature Portfolio · 2020 10.1038/s41586-020-2117-z
  51. CP2K: An electronic structure and molecular dynamics software package - Quickstep: Efficient and accurate electronic structure calculations The Journal of Chemical Physics · American Institute of Physics · 2020 10.1063/5.0007045
  52. There’s plenty of room at the Top: What will drive computer performance after Moore’s law? Science · American Association for the Advancement of Science · 2020 10.1126/science.aam9744
  53. Scalable molecular dynamics on CPU and GPU architectures with NAMD The Journal of Chemical Physics · American Institute of Physics · 2020 10.1063/5.0014475
  54. Unveiling the structural origin to control resistance drift in phase-change memory materials Materials Today · Elsevier BV · 2020 10.1016/j.mattod.2020.07.016
  55. Evidence for supercritical behaviour of high-pressure liquid hydrogen Nature · Nature Portfolio · 2020 10.1038/s41586-020-2677-y
  56. Active learning of uniformly accurate interatomic potentials for materials simulation Physical Review Materials · American Physical Society · 2019 10.1103/physrevmaterials.3.023804
  57. Deep potential generation scheme and simulation protocol for the Li10GeP2S12-type superionic conductors The Journal of Chemical Physics · American Institute of Physics · 2021 10.1063/5.0041849
  58. Phase Diagram of a Deep Potential Water Model Physical Review Letters · American Physical Society · 2021 10.1103/physrevlett.126.236001
  59. Reactive uptake of N <sub>2</sub> O <sub>5</sub> by atmospheric aerosol is dominated by interfacial processes Science · American Association for the Advancement of Science · 2021 10.1126/science.abd7716
  60. Pushing the Limit of Molecular Dynamics with Ab Initio Accuracy to 100 Million Atoms with Machine Learning 2020 10.1109/sc41405.2020.00009
  61. Deep potential generation scheme and simulation protocol for the Li10GeP2S12-type superionic conductors The Journal of Chemical Physics · American Institute of Physics · 2021 10.1063/5.0041849
  62. Efficient sampling of high-dimensional free energy landscapes using adaptive reinforced dynamics Nature Computational Science · Nature Portfolio · 2021 10.1038/s43588-021-00173-1
  63. OPLS4: Improving Force Field Accuracy on Challenging Regimes of Chemical Space Journal of Chemical Theory and Computation · American Chemical Society · 2021 10.1021/acs.jctc.1c00302
  64. LAMMPS - a flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales Computer Physics Communications · Elsevier BV · 2021 10.1016/j.cpc.2021.108171
  65. A deep potential model with long-range electrostatic interactions The Journal of Chemical Physics · American Institute of Physics · 2022 10.1063/5.0083669
  66. Extending the limit of molecular dynamics with <i>ab initio</i> accuracy to 10 billion atoms 2022 10.1145/3503221.3508425
  67. Towards electronic structure-based ab-initio molecular dynamics simulations with hundreds of millions of atoms Parallel Computing · Elsevier BV · 2022 10.1016/j.parco.2022.102920
  68. A 28nm 29.2TFLOPS/W BF16 and 36.5TOPS/W INT8 Reconfigurable Digital CIM Processor with Unified FP/INT Pipeline and Bitwise In-Memory Booth Multiplication for Cloud Deep Learning Acceleration 2022 IEEE International Solid- State Circuits Conference (ISSCC) · 2022 10.1109/isscc42614.2022.9731762
  69. Accurate and efficient molecular dynamics based on machine learning and non von Neumann architecture npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00773-z
  70. Modeling Dilute Solutions Using First-Principles Molecular Dynamics: Computing more than a Million Atoms with over a Million Cores 2016 10.1109/sc.2016.88
  71. Car–Parrinello Molecular Dynamics Springer eBooks · Springer Nature · 2016 10.1007/978-94-017-9780-1_100946
  72. Origin of the boson peak in amorphous solids Nature Physics · Nature Portfolio · 2022 10.1038/s41567-022-01628-6
  73. DP Compress: A Model Compression Scheme for Generating Efficient Deep Potential Models Journal of Chemical Theory and Computation · American Chemical Society · 2022 10.1021/acs.jctc.2c00102
  74. Understanding hot interconnects with an extensive benchmark survey BenchCouncil Transactions on Benchmarks Standards and Evaluations · Elsevier BV · 2022 10.1016/j.tbench.2022.100074
  75. FPGA-Accelerated Tersoff Multi-body Potential for Molecular Dynamics Simulations Lecture notes in computer science · Springer Science+Business Media · 2022 10.1007/978-3-031-19983-7_2
  76. A Heterogeneous Parallel Non-von Neumann Architecture System for Accurate and Efficient Machine Learning Molecular Dynamics IEEE Transactions on Circuits and Systems I Regular Papers · Institute of Electrical and Electronics Engineers · 2023 10.1109/tcsi.2023.3255199
  77. Field‐programmable gate array acceleration of the Tersoff potential in LAMMPS Engineering Reports · Wiley · 2023 10.1002/eng2.12694
  78. Why Dissolving Salt in Water Decreases Its Dielectric Permittivity Physical Review Letters · American Physical Society · 2023 10.1103/physrevlett.131.076801
  79. Microsecond Simulation in a Special-Purpose Molecular Dynamics Computer Cluster 2023 10.1109/icbcb57893.2023.10246549
  80. AmberTools Journal of Chemical Information and Modeling · American Chemical Society · 2023 10.1021/acs.jcim.3c01153
  81. FASDA: An FPGA-Aided, Scalable and Distributed Accelerator for Range-Limited Molecular Dynamics 2023 10.1145/3581784.3607100
  82. The SIESTA method for ab initio order-N materials simulation arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.cond-mat/0111138