How to get a “random” number in OpenCL

后端 未结 9 874
悲&欢浪女
悲&欢浪女 2020-12-07 22:59

I\'m looking to get a random number in OpenCL. It doesn\'t have to be real random or even that random. Just something simple and quick.

I see there is a ton of rea

9条回答
  •  暖寄归人
    2020-12-07 23:34

    why not? you could just write a kernel that generates random numbers, tough that would need more kernel calls and eventually passing the random numbers as argument to your other kernel which needs them

提交回复
热议问题