kernels.double.min_strided.kh Maven / Gradle / Ivy
#include "reduce.h"
__global double update(double old,double opOutput,double *extraParams) {
return min(old,opOutput);
}
__global double merge(double old,double opOutput,double *extraParams) {
return min(old,opOutput);
}
/**
An op on the device
@param d1 the first operator
@param d2 the second operator
*/
__global double op(double d1,double d2,double *extraParams) {
return d1;
}
__global double op(double d1,double *extraParams) {
return d1;
}
__global double postProcess(double reduction,int n,int xOffset,double *dx,int incx,double *extraParams,double *result) {
return reduction;
}
extern "C"
__kernel void min_strided_double(int n, int xOffset,double *dx,int incx,double *extraParams,double *result) {
transform(n,xOffset,dx,incx,extraParams,result);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy