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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - cuda, pycuda -- how to write complex numbers -- errors:class "cuComplex" has no member "i" -

How do I check if an insert was successful with MySQLdb in Python? -