skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Obtaining identical results with double precision global accuracy on different numbers of processors in parallel particle Monte Carlo simulations

Journal Article · · Journal of Computational Physics

We describe and compare different approaches for achieving numerical reproducibility in photon Monte Carlo simulations. Reproducibility is desirable for code verification, testing, and debugging. Parallelism creates a unique problem for achieving reproducibility in Monte Carlo simulations because it changes the order in which values are summed. This is a numerical problem because double precision arithmetic is not associative. Parallel Monte Carlo, both domain replicated and decomposed simulations, will run their particles in a different order during different runs of the same simulation because the non-reproducibility of communication between processors. In addition, runs of the same simulation using different domain decompositions will also result in particles being simulated in a different order. In [1], a way of eliminating non-associative accumulations using integer tallies was described. This approach successfully achieves reproducibility at the cost of lost accuracy by rounding double precision numbers to fewer significant digits. This integer approach, and other extended and reduced precision reproducibility techniques, are described and compared in this work. Increased precision alone is not enough to ensure reproducibility of photon Monte Carlo simulations. Non-arbitrary precision approaches require a varying degree of rounding to achieve reproducibility. For the problems investigated in this work double precision global accuracy was achievable by using 100 bits of precision or greater on all unordered sums which where subsequently rounded to double precision at the end of every time-step.

OSTI ID:
22230809
Journal Information:
Journal of Computational Physics, Vol. 251; Other Information: Copyright (c) 2013 Elsevier Science B.V., Amsterdam, The Netherlands, All rights reserved.; Country of input: International Atomic Energy Agency (IAEA); ISSN 0021-9991
Country of Publication:
United States
Language:
English

Similar Records

Numerical reproducibility for implicit Monte Carlo simulations
Conference · Mon Jul 01 00:00:00 EDT 2013 · OSTI ID:22230809

Investigation of Portable Event-Based Monte Carlo Transport Using the NVIDIA Thrust Library
Journal Article · Wed Jun 15 00:00:00 EDT 2016 · Transactions of the American Nuclear Society · OSTI ID:22230809

Algorithms for Efficient Reproducible Floating Point Summation
Journal Article · Fri Sep 25 00:00:00 EDT 2020 · ACM Transactions on Mathematical Software · OSTI ID:22230809