Hi Tanya,
The code itself looks good to me. But I'm worried why Clang thinks that
dereferencing a pointer to a struct results in a value in the address space
that the pointer points to. A value is just a value, it shouldn't live in a
particular address space:
__kernel void entry(__global int * buffer)
{
const size_t gid = get_global_id();
int value = buffer[gid] * 2; // no address space
buffer[gid] = value;
}
Can someone explain this please? (Assume that I know nothing - it's not that
far from truth!)
Anton.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits