Can'Thrust'可以在设备上生成随机数 [英] Can 'Thrust' generate random numbers on the device

查看:228
本文介绍了Can'Thrust'可以在设备上生成随机数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道CUDA库'Thrust'是否可以在设备上生成随机数字?我从示例代码中看到它可以在主机上做它...但是这对我没有好处。提前提醒
Jack

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

推荐答案

是的,Thrust有设备随机生成器。查看Thrust小组提供的 Monte Carlo 示例。

Yes, Thrust has device random generator. See Monte Carlo example provided by Thrust team.

这篇关于Can'Thrust'可以在设备上生成随机数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆