kernels.double.normal.kh Maven / Gradle / Ivy
#include
#include
#include
extern "C"
__kernel void normal_double(int n,double *means,double std,double *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)) {
double *curr = result[i];
curandGenerateNormal(s,curr,1,means[i],std);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy