Clean up OpenCL code