(346bc) Parallel Prefetching in Canonical and Grand Canonical Ensemble Monte Carlo Simulations | AIChE

(346bc) Parallel Prefetching in Canonical and Grand Canonical Ensemble Monte Carlo Simulations

Authors 

In order to enable large-scale molecular simulations, algorithms must efficiently utilize multi-core processors that continue to increase in total core count, but with relatively stagnant clock speeds. Although parallelized molecular dynamics (MD) software has taken advantage of this trend in computer hardware, single-particle perturbations with Monte Carlo are more difficult to parallelize than system-wide updates in MD using domain decomposition. Instead, prefetching reconstructs the serial Markov chain after computing multiple Monte Carlo trials in parallel. Canonical ensemble simulations of a Lennard-Jones fluid with prefetching resulted in up to a factor of 1.7 speedup using 2 OMP threads, and a factor of 3 speedup using 4 threads. Flat histogram grand canonical ensemble simulation see further improvement with up a factor of 3.5 speedup using 4 threads. Strategies for maximizing efficiency of prefetching simulations are discussed, including the potentially counter-intuitive benefit of reduced acceptance probabilities. Determination of the optimal acceptance probability for a parallel simulation is simplified by theoretical prediction from serial simulation data. Source code is available in the prefetch plugin of the Free Energy and Advance Sampling Simulation Toolkit (FEASST).