complete preparation of OpenCL porting