Accelerating AIREBO: Navigating the Journey from Legacy to High‐Performance Code
- 19 February 2019
- journal article
- research article
- Published by Wiley in Journal of Computational Chemistry
- Vol. 40 (14) , 1471-1482
Abstract
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 4× (KNL) and 3× (Skylake).Keywords
Funding Information
- Deutsche Forschungsgemeinschaft
- Deutsche Forschungsgemeinschaft (GSC 111)
This publication has 30 references indexed in Scilit:
- Parallel reactive molecular dynamics: Numerical methods and algorithmic techniquesParallel Computing, 2012
- The potential of atomistic simulations and the knowledgebase of interatomic modelsJOM, 2011
- GPU-accelerated molecular modeling coming of ageJournal of Molecular Graphics and Modelling, 2010
- General purpose molecular dynamics simulations fully implemented on graphics processing unitsJournal of Computational Physics, 2008
- A second-generation reactive empirical bond order (REBO) potential energy expression for hydrocarbonsJournal of Physics: Condensed Matter, 2002
- Fast Parallel Algorithms for Short-Range Molecular DynamicsJournal of Computational Physics, 1995
- New empirical approach for the structure and energy of covalent systemsPhysical Review B, 1988
- Computer simulation of local order in condensed phases of siliconPhysical Review B, 1985
- Embedded-atom method: Derivation and application to impurities, surfaces, and other defects in metalsPhysical Review B, 1984
- On the determination of molecular fields. —II. From the equation of state of a gasProceedings of the Royal Society of London. Series A, Containing Papers of a Mathematical and Physical Character, 1924