Changes to OpenCL kernel wrapper.