Recitation 6: Monte-Carlo Integration - Caltech
Recitation 6: Monte-Carlo Integration - Caltech
Recitation 6: Monte-Carlo Integration - Caltech
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CURAND Host API<br />
●<br />
Example:<br />
curandGenerator_t r;<br />
// argument tells which algorithm to use<br />
curandCreateGenerator(&r,<br />
CURAND_RNG_PSEUDO_DEFAULT);<br />
curandSetStream(r, stream); // optional<br />
curandSetPseudoRandomGeneratorSeed(r, seed);<br />
curandGenerateUniform(r, data, numElems);<br />
curandDestroyGenerator(r);<br />
●<br />
Seed value can be anything