Follow the OpenCL spec better.