Accelerating AIREBO: Navigating the Journey from Legacy to High-Performance Code

被引:7
作者
Hoehnerbach, Markus [1 ]
Bientinesi, Paolo [1 ]
机构
[1] Rhein Westfal TH Aachen, High Performance & Automat Comp Grp, Aachen, Germany
关键词
molecular dynamics; vectorization; many-body potential; AIREBO; testing; MOLECULAR-DYNAMICS SIMULATIONS; POTENTIALS; ENERGY; ORDER; SIMD;
D O I
10.1002/jcc.25796
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
Despite initiatives to improve the quality of scientific software, there still is a large presence of legacy code. The focus of such code is usually on domain-science features, rather than maintainability or highest performance. Additionally, architecture specific optimizations often result in less maintainable code. In this article, we focus on the AIREBO potential from LAMMPS, which exhibits large and complex computational kernels, hindering any systematic optimization. We suggest an approach based on complexity-reducing refactoring and hardware abstraction and present the journey from the C++ port of a previous Fortran code to performance-portable, KNC-hybrid, vectorized, scalable, and optimized code supporting full and reduced precision. The journey includes extensive testing that fixed bugs in the original code. Large-scale, full-precision runs sustain speedups of more than 4x (KNL) and 3x (Skylake). (c) 2019 Wiley Periodicals, Inc.
引用
收藏
页码:1471 / 1482
页数:12
相关论文
共 39 条
[1]   Parallel reactive molecular dynamics: Numerical methods and algorithmic techniques [J].
Aktulga, H. M. ;
Fogarty, J. C. ;
Pandit, S. A. ;
Grama, A. Y. .
PARALLEL COMPUTING, 2012, 38 (4-5) :245-259
[2]   General purpose molecular dynamics simulations fully implemented on graphics processing units [J].
Anderson, Joshua A. ;
Lorenz, Chris D. ;
Travesset, A. .
JOURNAL OF COMPUTATIONAL PHYSICS, 2008, 227 (10) :5342-5359
[3]  
Bartlett R., 2017, SUPERCOMPUTING FRONT, V4
[4]  
Bartlett R., 2017, XSDK WORKING COMMUNI
[5]   A second-generation reactive empirical bond order (REBO) potential energy expression for hydrocarbons [J].
Brenner, DW ;
Shenderova, OA ;
Harrison, JA ;
Stuart, SJ ;
Ni, B ;
Sinnott, SB .
JOURNAL OF PHYSICS-CONDENSED MATTER, 2002, 14 (04) :783-802
[6]   Optimizing legacy molecular dynamics software with directive-based offload [J].
Brown, W. Michael ;
Carrillo, Jan-Michael Y. ;
Gavhane, Nitin ;
Thakkar, Foram M. ;
Plimpton, Steven J. .
COMPUTER PHYSICS COMMUNICATIONS, 2015, 195 :95-101
[7]   Implementing molecular dynamics on hybrid high performance computers-Three-body potentials [J].
Brown, W. Michael ;
Yamada, Masako .
COMPUTER PHYSICS COMMUNICATIONS, 2013, 184 (12) :2785-2793
[8]   ReaxFF reactive force field for molecular dynamics simulations of hydrocarbon oxidation [J].
Chenoweth, Kimberly ;
van Duin, Adri C. T. ;
Goddard, William A., III .
JOURNAL OF PHYSICAL CHEMISTRY A, 2008, 112 (05) :1040-1053
[9]   Managing complexity in simulations of land surface and near-surface processes [J].
Coon, Ethan T. ;
Moulton, J. David ;
Painter, Scott L. .
ENVIRONMENTAL MODELLING & SOFTWARE, 2016, 78 :134-149
[10]   EMBEDDED-ATOM METHOD - DERIVATION AND APPLICATION TO IMPURITIES, SURFACES, AND OTHER DEFECTS IN METALS [J].
DAW, MS ;
BASKES, MI .
PHYSICAL REVIEW B, 1984, 29 (12) :6443-6453