Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cuda.h>
- #include <curand_kernel.h>
- typedef unsigned int uint;
- __global__ void setCurand(unsigned long long seed, curandState *state){
- uint i_global = threadIdx.x + blockIdx.x * blockDim.x;
- curand_init(seed, i_global, 0, &state[i_global]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement