26 #if defined(DATA_TYPE) && defined(BLOCK_SIZE) && defined(NUM_GROUPS) && defined(K) 29 #if BLOCK_SIZE != 4 && BLOCK_SIZE != 8 && BLOCK_SIZE != 16 30 #error "Only block sizes 4, 8 and 16 are supported" 33 #define TYPE VEC_DATA_TYPE(DATA_TYPE, BLOCK_SIZE) 64 const uint curr_channel = get_global_id(2);
65 const uint group_id = curr_channel / K;
66 const uint channel_id = curr_channel % K;
68 const uint x = get_global_id(0) * BLOCK_SIZE;
69 const uint y = get_global_id(1) * BLOCK_SIZE;
70 const uint z = channel_id * NUM_GROUPS + group_id;
#define CONVERT_TO_TENSOR3D_STRUCT(name)
Structure to hold 3D tensor information.
__global const uchar * tensor3D_offset(const Tensor3D *tensor, int x, int y, int z)
Get the pointer position of a Tensor3D.
#define TENSOR3D_DECLARATION(name)
#define CONVERT_TO_TENSOR3D_STRUCT_NO_STEP(name)
convolution configure & src