ThrustRTC icon indicating copy to clipboard operation
ThrustRTC copied to clipboard

About python trtc.Functor

Open zsy0828 opened this issue 3 years ago • 3 comments

hello, I'm a new in learning thrust, and i'm really interesting about yout project, but I have some questions about trtc.Functor.

I wonder can class trtc.Functor support curand_init() or rand() to generate a random number.

i'd really appreciate if you reply me. thank you very much!

zsy0828 avatar Aug 25 '22 15:08 zsy0828

Please check out ThrustRTC's sister project CURandRTC: https://github.com/fynv/CURandRTC/

slayoo avatar Aug 25 '22 21:08 slayoo

Please check out ThrustRTC's sister project CURandRTC: https://github.com/fynv/CURandRTC/ Thank you very much !

zsy0828 avatar Aug 26 '22 08:08 zsy0828

Yes, CURandRTC provides a device-side implementation of XORWOW algorithm. That basically copies some code from curand_kernel.h

fynv avatar Aug 27 '22 12:08 fynv