高质量随机数的产生:一种高吞吐量的并行位片方法
Generating High Quality Random Numbers: A High Throughput Parallel Bitsliced Approach
摘要:
在这项工作中,通过采用位切片的数据表示作为构建块的算法,我们展示了我们所提出的方法的能力和可扩展性,在各种PRNG方法的类别中的块和流密码。在论证流密码对高吞吐量PRNG的适用性的同时,作为一个例子,我们通过改变内部函数和数据结构的范式,实现并研究了一个位切片的MICKEY 2.0 PRNG。PRNG基于LFSR(Linear Feedback移位寄存器)的特性,由于其面向寄存器的架构,非常适合GPU的众核结构,并允许使用位切片技术来进一步提高性能。在我们的SIMD矢量化完全并行GPU实现中,每个GPU线程能够在每个LFSR时钟周期中生成32个伪随机位。然后,我们比较我们的实现与一些最重要的PRNG,显示令人满意的性能,在吞吐量和随机性标准。所提出的实现成功地通过了NIST测试的统计随机性和逐位相关性的标准。据作者所知,我们的方法在性能和性能单位成本方面优于文献中基于计算机的PRNG和光学解决方案的当前最佳实现,同时保持可接受的随机性测量。在所有采用该方法实现的CPRNG中,我们的最高性能是通过MICKEY 2.0算法实现的,该算法比最先进的NVIDIA专有高性能PRNG cuRAND库提高了1.9倍,在经济实惠的NVIDIA GTX 980 Ti上实现了1.6 Tb/s的吞吐量。
英文摘要:
In this work, by employing a bitsliced data representation as building blocks of algorithms, we showcase the capability and scalability of our proposed method in a variety of PRNG methods in the category of block and stream ciphers. While demonstrating the suitability of stream-ciphers for high throughput PRNG, as an example, we implement and investigate a bitsliced MICKEY 2.0 PRNG by altering the paradigm of internal functions and data structure. The LFSR-based (Linear Feedback Shift Register) nature of the PRNG in our implementation perfectly suits the GPU's many-core structure due to its register oriented architecture and allows the usage of bit slicing technique to further improve the performance. In our SIMD vectorized fully parallel GPU implementation, each GPU thread is capable of generating a remarkable number of 32 pseudo-random bits in each LFSR clock cycle. We then compare our implementation with some of the most significant PRNGs that display a satisfactory performance in both throughput and randomness criteria. The proposed implementation successfully passes the NIST test for statistical randomness and bit-wise correlation criteria. To the best of authors' best knowledge, our method outperforms the current best implementations in the literature for computer-based PRNG and the optical solutions in terms of performance and performance per cost, while maintaining an acceptable measure of randomness. Our highest performance among all of the implemented CPRNGs with the proposed method is achieved by the MICKEY 2.0 algorithm which shows 1.9x improvement over the state of the art NVIDIA's proprietary high-performance PRNG, cuRAND library, achieving 1.6 Tb/s of throughput on the affordable NVIDIA GTX 980 Ti.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。