Hybrid parallelization of molecular dynamics simulations to reduce load imbalance

被引:4
作者
Morillo, Julian [1 ]
Vassaux, Maxime [2 ]
Coveney, Peter V. [2 ]
Garcia-Gasulla, Marta [1 ]
机构
[1] Ctr Nacl Supercomp, Barcelona Supercomp Ctr, Pl Eusebi Guell,1-3, Barcelona 08034, Spain
[2] UCL, Ctr Computat Sci, 20 Gordon St, London WC1 H0AJ, England
基金
英国工程与自然科学研究理事会; 欧盟地平线“2020”;
关键词
Load Balance; Parallel computing; Molecular dynamics; MPI; OpenMP; Hybrid programming model;
D O I
10.1007/s11227-021-04214-4
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:9184 / 9215
页数:32
相关论文
共 36 条
[1]   Parallel Programming with Migratable Objects: Charm plus plus in Practice [J].
Acun, Bilge ;
Gupta, Abhishek ;
Jain, Nikhil ;
Langer, Akhil ;
Menon, Harshitha ;
Mikida, Eric ;
Ni, Xiang ;
Robson, Michael ;
Sun, Yanhua ;
Totoni, Ehsan ;
Wesolowski, Lukasz ;
Kale, Laxmikant .
SC14: INTERNATIONAL CONFERENCE FOR HIGH PERFORMANCE COMPUTING, NETWORKING, STORAGE AND ANALYSIS, 2014, :647-658
[2]  
[Anonymous], 2017, TOOLS HIGH PERFORMAN, DOI DOI 10.1007/978-3-030-11987-4
[3]  
[Anonymous], 2019, LAMMPS RELEASE
[4]   Performance study of HPC applications on an Arm-based cluster using a generic efficiency model [J].
Banchelli, Fabio ;
Peiro, Kilian ;
Querol, Andrea ;
Ramirez-Gargallo, Guillem ;
Ramirez-Miranda, Guillem ;
Vinyals, Joan ;
Vizcaino, Pablo ;
Garcia-Gasulla, Marta ;
Mantovani, Filippo .
2020 28TH EUROMICRO INTERNATIONAL CONFERENCE ON PARALLEL, DISTRIBUTED AND NETWORK-BASED PROCESSING (PDP 2020), 2020, :167-174
[5]  
Barcelona Supercomputing Center, EXTR
[6]   Hybrid parallelization of the LIGGGHTS open-source DEM code [J].
Berger, R. ;
Kloss, C. ;
Kohlmeyer, A. ;
Pirker, S. .
POWDER TECHNOLOGY, 2015, 278 :234-247
[7]   An adaptive load balancing method for parallel molecular dynamics simulations [J].
Deng, YF ;
Peierls, RF ;
Rivera, C .
JOURNAL OF COMPUTATIONAL PHYSICS, 2000, 161 (01) :250-263
[8]   New challenges in dynamic load balancing [J].
Devine, KD ;
Boman, EG ;
Heaphy, RT ;
Hendrickson, BA ;
Teresco, JD ;
Faik, J ;
Flaherty, JE ;
Gervasio, LG .
APPLIED NUMERICAL MATHEMATICS, 2005, 52 (2-3) :133-152
[9]  
Etinski M, 2009, INT PARALL DISTRIB P, P1928
[10]   PARALLEL COMPUTERS AND MOLECULAR SIMULATION [J].
Fincham, David .
MOLECULAR SIMULATION, 1987, 1 (1-2) :1-45