Prefetch parallelization and optimization of Monte Carlo in the grand canonical, isothermal-isobaric, and Gibbs ensemble

H Harold W. Hatch (Theory, Modeling, and Simulation Group, Material Data Division, National Institute of Standards and Technology 1 , Gaithersburg, Maryland 20899-8380,)

Abstract

Parallelization of Monte Carlo (MC) is required to observe the same growth as molecular dynamics because computer processor clock speeds have plateaued while the number of cores has increased. Although prefetch parallelization can speed up an Monte Carlo molecular simulation by a factor of 3 using four parallel threads for simultaneous single-particle displacements in the canonical ensemble, other ensembles require multiple trial types that impact efficiency when threads wait for the other threads with more time-consuming trials, such as volume changes or particle insertions and deletions in the isothermal-isobaric, grand canonical, and Gibbs ensemble. Load balancing increases efficiency by attempting the same trial in each thread of a parallel batch but violates detailed balance if done incorrectly. By computing standard deviations as a function of processor time, efficiency is systematically investigated over a variety of ensembles, load balancing algorithms, and trial attempt and acceptance probabilities for dense liquids of Lennard-Jones and an extended simple point charge model of water, to reveal numerous efficiency gains, including in serial simulations. Parallel efficiency in these ensembles approached the theoretical maximum by reducing overhead costs with improved algorithms and data structures released in the open-source Monte Carlo software called FEASST.

Article Details

Volume / Issue Vol. 164, Issue 9
Published March 07, 2026
ISSN 0021-9606
Publisher American Institute of Physics

Journal Info

The Journal of Chemical Physics

American Institute of Physics

ISSN: 0021-9606 Physical Sciences

Authors (1)

H

Harold W. Hatch

Theory, Modeling, and Simulation Group, Material Data Division, National Institute of Standards and Technology 1 , Gaithersburg, Maryland 20899-8380,