Using random numbers with GPUs

后端 未结 7 858
花落未央
花落未央 2021-02-03 12:30

I\'m investigating using nvidia GPUs for Monte-Carlo simulations. However, I would like to use the gsl random number generators and also a parallel random number generator such

7条回答
  •  孤街浪徒
    2021-02-03 12:47

    The GSL manual recommends the Mersenne Twister.

    The Mersenne Twister authors have a version for Nvidia GPUs. I looked into porting this to the R package gputools but found that I needed excessively large number of draws (millions, I think) before the combination of 'generate of GPU and make available to R' was faster than just drawing in R (using only the CPU).

    It really is a computation / communication tradeoff.

提交回复
热议问题