Does anybody know if the CUDA library 'Thrust' can generate random numbers on the device? I've seen from the example codes that it can do it on the host...But Thats no good for me really. Cheers in advance Jack
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes, Thrust has device random generator. See Monte Carlo example provided by Thrust team.
回答2:
cuRAND might also do what you want: http://developer.nvidia.com/curand It's not Thrust, but it has similar functionality.