kernels.complex.float.add_scalar.cu Maven / Gradle / Ivy
extern "C"
#include
__global__ void add_scalar_float(int n, int idx,float dx,float *dy,int incy,float *result) {
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; i += blockDim.x * gridDim.x) {
if(i>= idx && i % incy == 0)
result[i] = dy[i] + dx;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy