31 #ifndef __CCL_ABSTRACT_WRAPPER_H_
32 #define __CCL_ABSTRACT_WRAPPER_H_
83 typedef void (*ccl_wrapper_release_fields)(
CCLWrapper* wrapper);
99 typedef CL_API_ENTRY cl_int
100 (CL_API_CALL* ccl_wrapper_release_cl_object)(
void* cl_object);
123 typedef CL_API_ENTRY cl_int (CL_API_CALL* ccl_wrapper_info_fp1)(
124 void* cl_object, cl_uint param_name,
size_t param_value_size,
125 void* param_value,
size_t* param_value_size_ret);
150 typedef CL_API_ENTRY cl_int (CL_API_CALL* ccl_wrapper_info_fp2)(
151 void* cl_object1,
void* cl_object2, cl_uint param_name,
152 size_t param_value_size,
void* param_value,
153 size_t* param_value_size_ret);
161 cl_bool ccl_wrapper_unref(
CCLWrapper* wrapper,
size_t size,
162 ccl_wrapper_release_fields rel_fields_fun,
163 ccl_wrapper_release_cl_object rel_cl_fun,
CCLErr** err);
167 void ccl_wrapper_add_info(
CCLWrapper* wrapper, cl_uint param_name,
Information about wrapped OpenCL objects.
enum ccl_class CCLClass
Class or type of wrapped OpenCL object.
Base class for all OpenCL wrappers.
Header for normalizing OpenCL versions within cf4ocl.
Class which represents information about a wrapped OpenCL object.
GError CCLErr
Error handling class.
Common cf4ocl definitions.
Convert OpenCL error codes to readable strings (function header).