Error in pointer arithmetic (OpenCL) -
Error in pointer arithmetic (OpenCL) -
can explain me why code doesn't work?
__kernel void foo(__global const void* a) { __global const uchar* currentposition = (__global uchar*) a; // update position currentposition += 4; }
when seek read value of currentposition after increment same result when don't arithmetic.
why happening?
thank you.
it's 'const' keyword declare currentposition. c++ not allow modify values. set currentposition when declare it.
opencl
Comments
Post a Comment