ysh329 / OpenCL-101

Learn OpenCL step by step.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Define half16 as input-variable-type for kernel function

ysh329 opened this issue · comments

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;
}
  • Error code: -14
  • OpenCL Error Flag: CL_EXEC_STATUS_ERROR_ FOR_EVENTS_IN_WAIT_LIST
  • Description: if the execution status of any of the events in event_list is a negative integer value.

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