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

kernels.complex.double.add.cu Maven / Gradle / Ivy

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

__global__ void add_double(int n, double *a, double *b, double *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