opencl: implement api for ptr access mode