ysh329 / OpenCL-101

Learn OpenCL step by step.
123 stars 31 forks source link

Define half16 as input-variable-type for kernel function #8

Closed ysh329 closed 6 years ago

ysh329 commented 6 years ago

This code occurs error code (-14) when execution, ref: #6

__kernel void global_bandwidth_vec16_v2(const int heightA, const int widthA, __global half16 *a, __global half16 *b) {
    const int idx = get_global_id(0);
    const int step = idx << 4;

    half16 value = *(a + step);
    *(b + step) = value;
}
ysh329 commented 6 years ago

After change input-variable-type as half, it's okay.