Random Number Generator in CUDA

后端 未结 9 1357
小鲜肉
小鲜肉 2020-12-05 08:40

I\'ve struggled with this all day, I am trying to get a random number generator for threads in my CUDA code. I have looked through all forums and yes this topic comes up a

9条回答
  •  猫巷女王i
    2020-12-05 09:03

    I'm not sure I understand why you need anything special. Any traditional PRNG should port more or less directly. A linear congruential should work fine. Do you have some special properties you're trying to establish?

提交回复
热议问题