simple opencl implementation right index thread