用于图形处理器上生物分子模拟的高效伪随机数发生器
Efficient pseudo-random number generators for biomolecular simulations on graphics processors
摘要:
Langevin动力学、Monte Carlo和隐式溶剂中的全原子分子动力学模拟广泛用于研究生物分子的微观跃迁,需要可靠的随机数源。在这里,我们提出了在GPU上实现随机数生成器(RNG)的两种主要方法,它们使人们能够动态生成随机数。在基于CPU的计算中固有的每个线程一个RNG的方法中,一个RNG在每个执行线程中产生随机数流,而所有线程一个RNG的方法建立在不同线程通信的能力上,从而在整个GPU设备上共享随机种子。我们通过开发完全在GPU上实现的Ran 2、Hybrid Taus和滞后Fibonacci算法来验证这些方法的使用。作为一个基于应用的随机性测试,我们进行了LD模拟N个独立的谐振子耦合到一个随机恒温器。该模型允许我们通过将模拟输出与使用真正随机数获得的确切结果进行比较来评估随机数的统计质量。我们还分析了这些发电机的计算时间,内存使用和加速因子(CPU/GPU时间)方面的性能。
英文摘要:
Langevin Dynamics, Monte Carlo, and all-atom Molecular Dynamics simulations in implicit solvent, widely used to access the microscopic transitions in biomolecules, require a reliable source of random numbers. Here we present the two main approaches for implementation of random number generators (RNGs) on a GPU, which enable one to generate random numbers on the fly. In the one-RNG-per-thread approach, inherent in CPU-based calculations, one RNG produces a stream of random numbers in each thread of execution, whereas the one-RNG-for-all-threads approach builds on the ability of different threads to communicate, thus, sharing random seeds across the entire GPU device. We exemplify the use of these approaches through the development of Ran2, Hybrid Taus, and Lagged Fibonacci algorithms fully implemented on the GPU. As an application-based test of randomness, we carry out LD simulations of N independent harmonic oscillators coupled to a stochastic thermostat. This model allows us to assess statistical quality of random numbers by comparing the simulation output with the exact results that would be obtained with truly random numbers. We also profile the performance of these generators in terms of the computational time, memory usage, and the speedup factor (CPU/GPU time).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。