Implement OpenCL 1.2 functionality in OpenCL 1.1/1.0