kernels.double.normmax_strided.cu Maven / Gradle / Ivy
#include "reduce3.h"
__device__ double update(double old,double opOutput,double *extraParams) {
return opOutput + old;
}
__device__ double merge(double old,double opOutput,double *extraParams) {
return opOutput + old;
}
__device__ double op(double d1,double d2,double *extraParams) {
return max(abs(d1),abs(d2));
}
__device__ double postProcess(double reduction,int n,int xOffset,double *dx,int incx,double *extraParams,double *result) {
return reduction;
}
extern "C"
__global__ void normmax_strided_double(int n, int xOffset,double *dx,int incx,double *extraParams,double *result) {
transform(n,xOffset,dx,incx,extraParams,result);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy