samedi 21 février 2015

How can I use CURAND_RNG_QUASI_SOBOL32 generator using device API? CUDA

A snippet of my task is to generate, let's say, 256 quasi-random numbers using CUDA. I've read cuRAND docs and from there I've learnt that I need to use a set of direction vectors, which I can get using curandGetDirectionVectors32 function. But the problem is that I still can not understand what is 'set of direction vectors'. Especially how to use it, how to limit its length etc.


Also there's no example in Device API Examples with Sobol's generator. And there's no working example in google. I've found some explanation but scrambled_sobol_v_host is not declared in thas scope and unclear for me.


So, my question is could anyone, please, provide me with tiny working example of using this generator?


And I have troubles with understanding difference between sobol's generator and scrambled sobol's generator.


Thank you in advance.





Aucun commentaire:

Enregistrer un commentaire