Using async_work_group_copy with a custom data type
问题 I need to copy some data from __global to __local in openCL using async_work_group_copy. The issue is, I'm not using a built-in data type. The code snip of what I have tried is as follows: typedef struct Y { ... } Y; typedef struct X { Y y[MAXSIZE]; } X; kernel void krnl(global X* restrict x){ global const Y* l = x[a].y; local Y* l2; size_t sol2 = sizeof(l); async_work_group_copy(l2, l, sol2, 0); } where 'a' is just a vector of int. This code does not work, specifically because the gen_type