Forum Discussion
Altera_Forum
Honored Contributor
11 years agohi ,
If I want to pass the array like temp[gid] (temp is an array of strcture cnt), the error message will say that "change the address space of pointer". But I need to get the temp[gid]'s final value by passing the temp[gid] to other function. Simple code as below typedef struct { int count; } cnt; void funcA(__global cnt * cnt_temp) { } __kernel void photon(__global cnt * temp) { int gid = get_global_id(0); funcA(temp[gid]); } regards.,