fynv / ThrustRTC

CUDA tool set for non-C++ languages that provides similar functionality like Thrust, with NVRTC at its core.
Other
59 stars 6 forks source link

About python trtc.Functor #26

Open zsy0828 opened 2 years ago

zsy0828 commented 2 years ago

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!

slayoo commented 2 years ago

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

zsy0828 commented 2 years ago

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

fynv commented 2 years ago

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