Function pocky_opencl_kernels_free_all¶
Defined in File pocky_utils.h
Function Documentation¶
-
cl_int pocky_opencl_kernels_free_all(cl_uint *num_kerns, cl_kernel **kerns)¶
Frees all kernels in the given array.
- Parameters:
num_kerns – [inout] Number of kernels in the array, set to zero on return
kerns – [inout] Array of kernels; each is released, the handle is set to
NULL
, and the container itself is freed on return
- Returns:
On success,
CL_SUCCESS
, otherwise an OpenCL error code