Add OpenCL error handler.