OpenRAND:一种用于并行计算的性能可移植、可复现的随机数生成库
OpenRAND: A Performance Portable, Reproducible Random Number Generation Library for Parallel Computations
AI总结:
OpenRAND 是一个 C++17 仅头文件随机数库,面向 CPU/GPU 并行计算,以统计稳健、可复现且高性能为目标,在布朗行走等测试中比 cuRAND 最高快 1.8 倍。
摘要:
我们介绍 OpenRAND,这是一个 C++17 库,旨在通过生成统计上稳健且可复现的随机数来促进可复现的科学研究。OpenRAND 支持 CPU 和 GPU 上的单线程及多线程应用,并提供符合 C++ 标准随机数引擎接口的简化、用户友好的 API。它具有可移植性:可作为轻量级、仅头文件的库无缝运行,使其能够适应广泛的软件和硬件平台。它具有统计稳健性:一套内置测试确保单个或多个流中不存在模式。尽管简单且可移植,它的性能却非常出色——与原生库相当,有时甚至显著优于原生库。我们的测试(包括布朗行走模拟)证实了其可复现性,并突显了其计算效率,性能比 CUDA 的 cuRAND 最高提升 1.8 倍。
英文摘要:
We introduce OpenRAND, a C++17 library aimed at facilitating reproducible scientific research through the generation of statistically robust and yet replicable random numbers. OpenRAND accommodates single and multi-threaded applications on CPUs and GPUs and offers a simplified, user-friendly API that complies with the C++ standard's random number engine interface. It is portable: it functions seamlessly as a lightweight, header-only library, making it adaptable to a wide spectrum of software and hardware platforms. It is statistically robust: a suite of built-in tests ensures no pattern exists within single or multiple streams. Despite the simplicity and portability, it is remarkably performant-matching and sometimes even outperforming native libraries by a significant margin. Our tests, including a Brownian walk simulation, affirm its reproducibility and highlight its computational efficiency, outperforming CUDA's cuRAND by up to 1.8 times.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。