26179

A tool set for random number generation on GPUs in R

Ruoyong Xu, Patrick Brown, Pierre L’Ecuyer
University of Toronto
arXiv:2201.06604 [stat.CO], (20 Jan 2022)

@misc{xu2022tool,

   title={A tool set for random number generation on GPUs in R},

   author={Ruoyong Xu and Patrick Brown and Pierre L’Ecuyer},

   year={2022},

   eprint={2201.06604},

   archivePrefix={arXiv},

   primaryClass={stat.CO}

}

We introduce the R package clrng which leverages the gpuR package and is able to generate random numbers in parallel on a Graphics Processing Unit (GPU) with the clRNG (OpenCL) library. Parallel processing with GPU’s can speed up computationally intensive tasks, which when combined with R, it can largely improve R’s downsides in terms of slow speed, memory usage and computation mode. clrng enables reproducible research by setting random initial seeds for streams on GPU and CPU, and can thus accelerate several types of statistical simulation and modelling. The random number generator in clrng guarantees independent parallel samples even when R is used interactively in an ad-hoc manner, with sessions being interrupted and restored. This package is portable and flexible, developers can use its random number generation kernel for various other purposes and applications.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2024 hgpu.org

All rights belong to the respective authors

Contact us: