Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <cuda.h>
  2. #include <curand_kernel.h>
  3.  
  4. typedef unsigned int uint;
  5.  
  6. __global__ void setCurand(unsigned long long seed, curandState *state){
  7. uint i_global = threadIdx.x + blockIdx.x * blockDim.x;
  8.  
  9. curand_init(seed, i_global, 0, &state[i_global]);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement