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