A set of helper functions for the OpenCl C API