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

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

There is a newer version: 0.4-rc3.8
Show newest version
#include "reduce.h"

__global  float merge(float old,float opOutput,float *extraParams) {
       return opOutput + old;
 }

__global  float update(float old,float opOutput,float *extraParams) {
       return opOutput + old;
 }


__global  float op(float d1,float *extraParams) {
      return powf(d1,2);
}


__global  float postProcess(float reduction,int n,int xOffset,float *dx,int incx,float *params,float *result) {
             return sqrtf(reduction);
}
extern "C"
__kernel void norm2_strided_float(int n, int xOffset,float *dx,int incx,float *params,float *result) {
             transform(n,xOffset,dx,incx,params,result);
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy