I think you should qualify a pointer with the correct address space.
If you did not specify an address space, it is assumed __private, but your source pointer seems to be a pointer __global(from your comment), so the address spaces are incompatible.
So try using (__global int*)instead (int*).
source
share