kernels.complex.float.add.cu Maven / Gradle / Ivy
extern "C"
#include
__global__ void add_float(int n, float *a, float *b, float *sum) {
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < n) {
sum[i] = a[i] + b[i];
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy