Function pocky_opencl_context_free

Function Documentation

cl_int pocky_opencl_context_free(cl_context *ctx)

Frees the given context.

Parameters:
  • ctx[inout] Context to be freed; it is released and its handle is set to NULL on return

Returns:

On success, CL_SUCCESS, otherwise an OpenCL error code