I am just learning CUDA. Trying to learn curand. I need to be able to call random int of a designated range many times in 1 CUDA thread but no need to store them or return them to host. They can be discarded after use. For example I may need to have a random int 1-25 and then do some things then have another 1. I may need to do this thousands of times in that thread but I don’t need to store those numbers. I only ever need 1 at a time and when it’s used I can toss it and get the next one. Can anyone tell me if this is even possible onboard the device and how to do it please? I am using C++ btw.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Random Number within Kernel | 3 | 1982 | October 18, 2016 | |
random number generation on each thread? random number generation rng | 3 | 6229 | August 26, 2008 | |
Help on Random Floats (0,1) | 3 | 2630 | November 26, 2011 | |
How to draw a pseudorandom number on device? | 1 | 2709 | May 20, 2009 | |
how to get random number in __global__function? | 1 | 768 | November 7, 2017 | |
Is there any way to use rand() function in cuda like the example i have attached | 1 | 6349 | January 29, 2015 | |
Parallel random number generation using hash-functions I would like feedback about a method of gener | 4 | 5410 | August 4, 2010 | |
Multiple random nos. to be generated in a single kernel | 0 | 2353 | November 28, 2011 | |
Simple generating of a number between 0.0 and 1.0? | 3 | 1025 | July 15, 2010 | |
Random numbers in GPU | 1 | 809 | June 5, 2019 |