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

kernels.float.normal.kh Maven / Gradle / Ivy

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


extern "C"
__kernel void normal_float(int n,float *means,float std,float *result, curandGenerator_t s) {
        int tid = get_local_id(0) + get_group_id(0) * get_local_size(0);
         for(int i = tid; i < n; i += get_local_size(0)*get_num_groups(0)) {
                     float *curr = &result[i];
                     curandGenerateNormal(s,curr,1,means[i],std);
          }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy