JMzance
JMzance

Reputation: 1746

Can 'Thrust' generate random numbers on the device

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

Upvotes: 0

Views: 3196

Answers (2)

Oshkosher
Oshkosher

Reputation: 59

cuRAND might also do what you want: http://developer.nvidia.com/curand It's not Thrust, but it has similar functionality.

Upvotes: 0

geek
geek

Reputation: 1839

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

Upvotes: 5

Related Questions