Using a normal distribution in GPU machine and CUDA -
i have question of using gpu machine here. i'm working on cuda
file. want put random noise function, , i'm using normal distribution of mean 0 , variance 1. after several tries, still can't make work.
this tried , don't know why didn't work. i'm using school's cluster run experiment.
i_tcs = itcsamp*curand_normal();
i_tcs
, itcsamp
here functions. both curand.h
, curand_kernel.h
. , error messages got were:
error: no instance of overloaded function "curand_normal" matches argument list
please let me know if know possible solutions. i'll appreciate that!
here example use it:
__global__ void kernel(unsigned int * soboldirectionvectors, curandstatesobol32 *state) { curand_init(soboldirectionvectors, 1234, &state[0]); float normalrandomvariable = curand_normal(&state[0]); }
Comments
Post a Comment