OpenCL update code