~/talk

Guide to Random Number Generation in C++

Talkat C++Now 2024 · 2024-04-29..05-03· [c-and-cpp]
links:none on file
slides:none on file

Argues that the ubiquitous Mersenne Twister default in <random> is a poor fit for large scientific parallel workloads and shows concrete alternatives: counter-based PRNG, specifically Random123 (Threefry, Philox) and AES-based variants, which are stateless, use a key+counter model, and give reproducible per-block streams across threads. Benchmarks and test-suite results claim higher BigCrush quality where MT sometimes fails, much lower memory footprint, constant-time skipping, and substantial speedups on CPU/GPU (paper from 2011 wins HPC awards); implementations exist and work.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 3:31C vs C++ random APIs
  3. 8:30Parallel random generation pitfalls
  4. 13:45Counter-based random generators
  5. 17:37Faster counter-based generators
  6. 21:19Random quality benchmarks
  7. 22:23Conclusion and future improvements
  8. 24:51Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.