Advanced SearchSearch Tips
Efficient Parallel CUDA Random Number Generator on NVIDIA GPUs
facebook(new window)  Pirnt(new window) E-mail(new window) Excel Download
  • Journal title : Journal of KIISE
  • Volume 42, Issue 12,  2015, pp.1467-1473
  • Publisher : Korean Institute of Information Scientists and Engineers
  • DOI : 10.5626/JOK.2015.42.12.1467
 Title & Authors
Efficient Parallel CUDA Random Number Generator on NVIDIA GPUs
Kim, Youngtae; Hwang, Gyuhyeon;
In this paper, we implemented a parallel random number generation program on GPU's, which are known for high performance computing, using LCG (Linear Congruential Generator). Random numbers are important in all fields requiring the use of randomness, and LCG is one of the most widely used methods for the generation of pseudo-random numbers. We explained the parallel program using the NVIDIA CUDA model and MPI(Message Passing Interface) and showed uniform distribution and performance results. We also used a Monte Carlo algorithm to calculate pi() comparing the parallel random number generator with cuRAND, which is a CUDA library function, and showed that our program is much more efficient. Finally we compared performance results using multi-GPU's with those of ideal speedups.
random number;linear congruential generator;CUDA;GPU;MPI;
 Cited by
A. Sheldon, A first course in probability, Pearson Education India, 2002.

C. Dutang, and D Wuertz, A note on random number generation, 2009.

S. Mohanty, A. K. Mohanty, and F. Carminati, "Efficient pseudo-random number generation for monte-carlo simulations using graphic processors," Journal of Physics: Conference Series. IOP Publishing, Vol. 368, No. 1, 2012.

W. B. Langdon, "A fast high quality pseudo random number generator for NVIDIA CUDA," Proc. of the 11th Annual Conference Companion on Genetic and Evolutionary Computation Conference: Late Breaking Papers. ACM, 2009.

M. Manssen, M. Weigel, and A. K. Hartmann1, "Random number generators for massively parallel simulations on GPU," The European Physical Journal Special Topics, Vol. 210, No. 1, pp. 53-71, 2012. crossref(new window)

D. Kirk, "NVIDIA CUDA software and GPU parallel computing architecture," ISMM, Vol. 7, 2007.

P. S. Pacheco, Parallel Programming with MPI, Morgan Kaufmann, 2001.

NVIDIA, CUDA, Compute United Device Architecture Reference Manual Version 5.0, NVIDIA Corporation, 2012.

D. E. Knuth, The Art of Computer Programming Volume 2 (3rd ed.): Seminumerical Algorithms, Addison-Wesley, Boston, MA, 1997.

G. Fox, M. Johnson, G. Lyzenga, S. Otto, J. Salmon, and D. Walker, Solving Problems on concurrent Processors Vol. 1, Prentice Hall, Englewood Cliffs, NJ, 1988.

B. Kernighan, and D. Ritchie, The C Programming Language: 2nd Edition, Prentice Hall Software Series Englewood Cliffs, 1998.

B. Gough, GNU scientific library reference manual, Network Theory Ltd., 2009.

J. H. Lim, S. H. Lee, and D. K. Kim, "New Randomness Testing Methods using Approximate Periods," KIISE Transactions on Computing Practices (KTCP), Vol. 16, No. 6, pp. 742-746, 2010. (in Korean)

M. H. Kalos, and P. A. Whitlock, Monte Carlo Methods, Wiley-VCH, 2nd edition, 2008.

H. Lee, E. Im, "Parallelization of Path Integral Monte Carlo Simulation on nVidia GPU," Proc. of the Korean Information Science Society Conference, Vol. 36, No. 1, pp. 322-326, 2009. (in Korean)

M. Choi, S. Maeng, "Parallelized PI(${\pi}$) Calculation Algorithm using MPI," Proc. of the Korean Information Science Society Conference, Vol. 31, No. 1, pp. 91-93, 2004. (in Korean)

T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein, Introduction to Algorithms, MIT Press, 2009.

NVIDIA, CUDA CURAND Library, PG-05328-032_V01 August, 2010.