OCL: corner*: fix memory access in kernels; change error check to relative