Title :
Simple optimizations for LAMMPS
Author :
Kaewtes, Veerapong ; Ratanaworabhan, Paruj
Author_Institution :
Dept. of Comput. Eng., Kasetsart Univ., Bangkok, Thailand
fDate :
July 30 2014-Aug. 1 2014
Abstract :
LAMMPS, Large-scale Atomic/Molecular Massively Parallel Simulator, is an important molecular dynamic simulator used by a growing number of scientists and engineers. Previous studies have shown that there are limited opportunities to optimize its source; no more than 2% and 18% serial and parallel speedup, respectively, were obtained over the original source. So, LAMMPS optimizations need to done with heavy-handed approaches, making algorithmic changes and employing platform specific instructions. Although the resulting speedup can be considerable, the source becomes less portable. This study investigates simple portable source-code transformation to improve LAMMPS runtime performance. To our surprise, these small optimizations buy us a non-trivial amount of performance improvement. This paper explains why these optimizations work and why they are difficult for the hardware and compilers to perform. Thus, manual source transformation is needed. The final result shows a performance improvement of around 20% over the original source while the improvement due to instruction reordering alone is about 6%.
Keywords :
molecular dynamics method; optimisation; physics computing; source code (software); LAMMPS; large-scale atomic-molecular massively parallel simulator; manual source transformation; molecular dynamic simulator; source-code transformation; Computer science; Conferences; Decision support systems; Handheld computers; Voltage control; code optimization; instruction scheduling; source-code tuning;
Conference_Titel :
Computer Science and Engineering Conference (ICSEC), 2014 International
Conference_Location :
Khon Kaen
Print_ISBN :
978-1-4799-4965-6
DOI :
10.1109/ICSEC.2014.6978132