# A Portable Implementation of RANLUX++

- Institution: CERN
- Department: Conferences
- Speaker: Jonas Hahnfeld
- Year: 2021
- Language: English
- Subjects: Physics, Computer science, Earth and environment
- Source: [CERN](https://videos.cern.ch/record/3008009)
- Licence: [CERN](http://copyright.web.cern.ch)
- Who can watch: Tweens profiles and older (sources give no ratings; placed by Invisible Network from the source's own words)

High energy physics has a constant demand for random number generators (RNGs) with high statistical quality. In this paper, we present ROOT's implementation of the RANLUX++ generator. We discuss the choice of relying only on standard C++ for portability reasons. Building on an initial implementation, we describe a set of optimizations to increase generator speed. This allows to reach performance very close to the original assembler version. We test our implementation on an Apple M1 and Nvidia GPUs to demonstrate the advantages of portable code..

0:00:00 Slide 1

0:01:11 Slide 2

0:02:22 Slide 3

0:03:33 Slide 4

0:04:43 Slide 5

0:05:54 Slide 6

0:07:05 Slide 7

0:08:15 Slide 8

0:09:26 Slide 9

0:10:37 Slide 10

0:11:48 Slide 11

## Lectures

1. [A Portable Implementation of RANLUX++](https://invisiblenetwork.ai/learn/cern/3008009/7aee526c765a), 12 min (CERN's player)
