Can 'Thrust' generate random numbers on the device

做~自己de王妃 提交于 2020-01-06 06:12:06

问题


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.



来源:https://stackoverflow.com/questions/11024718/can-thrust-generate-random-numbers-on-the-device

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!