arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 2106.02504physics.comp-ph
收藏

RANLUX ++的可移植实现

A Portable Implementation of RANLUX++

Jonas Hahnfeld, Lorenzo Moneta

摘要:

高能物理对具有高统计质量的随机数发生器(RNG)有着持续的需求。在本文中,我们提出了根的RANLUX++生成器的实现。我们讨论了选择只依赖于标准C++的可移植性的原因。在初始实现的基础上,我们描述了一组优化来提高发电机速度。这允许达到非常接近原始汇编程序版本的性能。我们在Apple M1和Nvidia GPU上测试了我们的实现,以展示可移植代码的优势。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑