26 #if defined(DATA_TYPE) && defined(VEC_SIZE) && defined(VEC_SIZE_LEFTOVER) 61 const int shift = max((
int)(get_global_id(0) *
VEC_SIZE) - (
int)VEC_SIZE_LEFTOVER, 0) %
VEC_SIZE;
72 #endif // defined(DATA_TYPE) && defined(VEC_SIZE) && defined(VEC_SIZE_LEFTOVER)
int stride_x
Stride of the image in X dimension (in bytes)
Structure to hold 3D tensor information.
SimpleTensor< T1 > copy_tensor(const SimpleTensor< T2 > &tensor)
#define STORE_VECTOR_SELECT(basename, data_type, ptr, vec_size, leftover, cond)
Store a vector that can only be partial in x.
#define CONVERT_TO_TENSOR3D_STRUCT(name)
__global uchar * ptr
Pointer to the starting postion of the buffer.
#define TENSOR3D_DECLARATION(name)
#define VEC_DATA_TYPE(type, size)