All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kernels.double.normal.cu Maven / Gradle / Ivy

There is a newer version: 0.4-rc3.7
Show newest version
#include 
#include 
#include


extern "C"
__global__ void normal_double(int n,double *means,double std,double *result, curandGenerator_t s) {
        int tid = threadIdx.x + blockIdx.x * blockDim.x;
         for(int i = tid; i < n; i += blockDim.x*gridDim.x) {
                     double *curr = result[i];
                     curandGenerateNormal(s,curr,1,means[i],std);
          }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy