more work towards cpu pipeline, sharing OpenCL kernel code