Making the RANMAR pseudorandom number generator in LAMMPS up to four times faster, with an implementation of jump-ahead
Hiroshi Haramoto, Kosuke Suzuki

TL;DR
This paper introduces an exact jump-ahead extension for the RANMAR pseudorandom number generator in LAMMPS, enabling faster, non-overlapping streams for parallel simulations by reformulating state advancement as polynomial computations.
Contribution
We developed a mathematically exact jump-ahead method for RANMAR in LAMMPS, improving stream partitioning and doubling or quadrupling generation speed across CPUs.
Findings
Enables non-overlapping, provably disjoint streams in parallel simulations.
Achieves 2-4 times faster random number generation.
Supports large jumps up to 2^120 efficiently.
Abstract
Massively parallel molecular simulations require pseudorandom number streams that are provably non-overlapping and reproducible across thousands of compute units in parallel computing environments. In the widely used LAMMPS package, the standard RANMAR generator lacks a mathematically exact mechanism to jump ahead; distinct seeds are typically assigned instead, which does not ensure disjoint streams. We introduce a mathematically exact jump-ahead extension for RANMAR in LAMMPS. In practice, a single random sequence can be partitioned into consecutive, non-overlapping blocks of length , with one block assigned to each compute unit under formal non-overlap guarantees. In our approach, we develop an algebraic reformulation that enables efficient jump-ahead even for very large by casting state advancement into polynomial computations over finite residue rings while keeping memory…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCryptography and Residue Arithmetic · Chaos-based Image/Signal Encryption · Cryptographic Implementations and Security
