The most widely used technique to allow for parallel simulations in molecular dynamics is spatial domain decomposition, where the physical geometry is divided into boxes, one per processor. This technique can inherently produce computational load imbalance when either the spatial distribution of particles or the computational cost per particle is not uniform. This paper shows the benefits of using a hybrid MPI+OpenMP model to deal with this load imbalance. We consider LAMMPS (Large-scale Atomic/Molecular Massively Parallel Simulator), a prototypical molecular dynamics simulator that provides its own balancing mechanism and an OpenMP implementation for many of its modules, allowing for a hybrid setup. In this work, we extend the current OpenMP implementation of LAMMPS and optimize it and evaluate three different setups: MPI-only, MPI with the LAMMPS balance mechanism, and hybrid setup using our improved OpenMP version. This comparison is made using the five standard benchmarks included in the LAMMPS distribution plus two additional test cases. Results show that the hybrid approach can deal with load balancing problems better and more effectively (50% improvement versus MPI-only for a highly imbalanced test case) than the LAMMPS balance mechanism (only 43% improvement) and improve simulations with issues other than load imbalance.
机构:
State Key Laboratory of High Performance Computing,National University of Defense TechnologyState Key Laboratory of High Performance Computing,National University of Defense Technology
武云龙
徐新海
论文数: 0引用数: 0
h-index: 0
机构:
State Key Laboratory of High Performance Computing,National University of Defense TechnologyState Key Laboratory of High Performance Computing,National University of Defense Technology
徐新海
杨学军
论文数: 0引用数: 0
h-index: 0
机构:
State Key Laboratory of High Performance Computing,National University of Defense TechnologyState Key Laboratory of High Performance Computing,National University of Defense Technology
杨学军
邹顺
论文数: 0引用数: 0
h-index: 0
机构:
State Key Laboratory of High Performance Computing,National University of Defense TechnologyState Key Laboratory of High Performance Computing,National University of Defense Technology
邹顺
任小广
论文数: 0引用数: 0
h-index: 0
机构:
State Key Laboratory of High Performance Computing,National University of Defense TechnologyState Key Laboratory of High Performance Computing,National University of Defense Technology
机构:
Univ Nebraska Med Ctr, Dept Pharmaceut Sci, 986025 Nebraska Med Ctr, Omaha, NE 68198 USAUniv Nebraska Med Ctr, Dept Pharmaceut Sci, 986025 Nebraska Med Ctr, Omaha, NE 68198 USA
Hashemi, Mohtadin
Lyubchenko, Yuri L.
论文数: 0引用数: 0
h-index: 0
机构:
Univ Nebraska Med Ctr, Dept Pharmaceut Sci, 986025 Nebraska Med Ctr, Omaha, NE 68198 USAUniv Nebraska Med Ctr, Dept Pharmaceut Sci, 986025 Nebraska Med Ctr, Omaha, NE 68198 USA
机构:
Natl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R ChinaNatl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R China
Wu Yun-Long
Xu Xin-Hai
论文数: 0引用数: 0
h-index: 0
机构:
Natl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R ChinaNatl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R China
Xu Xin-Hai
Yang Xue-Jun
论文数: 0引用数: 0
h-index: 0
机构:
Natl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R ChinaNatl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R China
Yang Xue-Jun
Zou Shun
论文数: 0引用数: 0
h-index: 0
机构:
Natl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R ChinaNatl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R China
Zou Shun
Ren Xiao-Guang
论文数: 0引用数: 0
h-index: 0
机构:
Natl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R ChinaNatl Univ Def Technol, State Key Lab High Performance Comp, Changsha 410073, Hunan, Peoples R China