#ifndef PREPASS #include #include #include #include "cublas.h" #endif __device__ float4 max4 ( const float4 a , const float4 b ) { float4 c ; c.x = (a.x>b.x)?a.x:b.x; c.y = (a.y>b.y)?a.y:b.y; c.z = (a.z>b.z)?a.z:b.z; c.w = (a.w>b.w)?a.w:b.w; return(c) ; } __device__ float4 min4 ( const float4 a , const float4 b ) { float4 c ; c.x = (a.x