Using random numbers with GPUs

2019-03-13 09:48发布

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 as SPRNG. Does anyone know if this is possible?

Update

I've played about with RNG using GPUs. At present there isn't a nice solution. The Mersenne Twister that comes with the SDK isn't really suitable for (my) Monte-Carlo simulations since it takes an incredibly long time to generate seeds.

The NAG libraries are more promising. You can generate RNs either in batches or in individual threads. However, only a few distributions are currently supported - Uniform, exponential and Normal.

标签: c cuda gpu gsl
7条回答
何必那么认真
2楼-- · 2019-03-13 10:48

You will have to implement them by yourself.

查看更多
登录 后发表回答