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

kernels.float.normmax_strided.kh Maven / Gradle / Ivy

#include "reduce3.h"
__global  float update(float old,float opOutput,float *extraParams) {
       return opOutput + old;
 }
__global  float merge(float old,float opOutput,float *extraParams) {
       return opOutput + old;
 }
__global  float op(float d1,float d2,float *extraParams) {
       return fmaxf(fabsf(d1),fabsf(d2));
}



__global  float postProcess(float reduction,int n,int xOffset,float *dx,int incx,float *extraParams,float *result) {
             return reduction;
}

extern "C"
__kernel void normmax_strided_float(int n, int xOffset,float *dx,int incx,float *extraParams,float *result) {
             transform(n,xOffset,dx,incx,extraParams,result);
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy