channel channel_vec coef_ch __attribute__((depth(0)));
typdef struct{
float data
} vector_line;
typdef struct{
vector_line lane
} channel_vec;
__kernel
void ReadBlock(
uchar dim1,
uchar dim2,
// Data
__global channel_vec *restrict coef)
{
int loc_x = get_local_id(0);
int loc_y = get_local_id(1);
int loc_z = get_local_id(2);
int block_x = get_group_id(0);
int block_y = get_group_id(1);
int block_z = get_group_id(2);
channel_vec coeft_ch_vec;
coef_ch_vec = coef;
write_channel_altera(coef_ch, coef_ch_vec);
}
This is more detailed snippet of code. Is it enough?