1 2 3 4
kernel void compiler_hadd(global int *src1, global int *src2, global int *dst) { int i = get_global_id(0); dst[i] = hadd(src1[i], src2[i]); }