OpenCl manager code