cf4ocl (C Framework for OpenCL)  v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ccl_memobj Struct Reference

Base class for memory object wrappers, i.e., CCLBuffer and CCLImage. More...

Inheritance diagram for ccl_memobj:
Inheritance graph
Collaboration diagram for ccl_memobj:
Collaboration graph

Public Types

typedef void(* ccl_memobj_destructor_callback )(cl_mem memobj, void *user_data)
 Prototype for memory object destructor callback functions. More...
 
typedef void(* ccl_memobj_destructor_callback )(cl_mem memobj, void *user_data)
 Prototype for memory object destructor callback functions. More...
 

Public Member Functions

CCLEventccl_memobj_enqueue_migrate (CCLMemObj **mos, cl_uint num_mos, CCLQueue *cq, cl_mem_migration_flags flags, CCLEventWaitList *evt_wait_lst, CCLErr **err)
 Enqueues a command to indicate which device a set of memory objects should be associated with. More...
 
CCLEventccl_memobj_enqueue_unmap (CCLMemObj *mo, CCLQueue *cq, void *mapped_ptr, CCLEventWaitList *evt_wait_lst, CCLErr **err)
 Enqueues a command to unmap a previously mapped region of a memory object. More...
 
cl_uint ccl_memobj_get_opencl_version (CCLMemObj *mo, CCLErr **err)
 Get the OpenCL version of the platform associated with this memory object. More...
 
cl_bool ccl_memobj_set_destructor_callback (CCLMemObj *mo, ccl_memobj_destructor_callback pfn_notify, void *user_data, CCLErr **err)
 Wrapper for OpenCL clSetMemObjectDestructorCallback() function. More...
 
- Public Member Functions inherited from ccl_wrapper
CCLWrapperInfoccl_wrapper_get_info (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get information about any wrapped OpenCL object. More...
 
size_t ccl_wrapper_get_info_size (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get information size. More...
 
void * ccl_wrapper_get_info_value (CCLWrapper *wrapper1, CCLWrapper *wrapper2, cl_uint param_name, size_t min_size, CCLInfo info_type, cl_bool use_cache, CCLErr **err)
 Get pointer to information value. More...
 
cl_bool ccl_wrapper_memcheck ()
 Debug function which checks if memory allocated by wrappers has been properly freed. More...
 
void ccl_wrapper_ref (CCLWrapper *wrapper)
 Increase the reference count of the wrapper object. More...
 
int ccl_wrapper_ref_count (CCLWrapper *wrapper)
 Returns the wrapper object reference count. More...
 
void * ccl_wrapper_unwrap (CCLWrapper *wrapper)
 Get the wrapped OpenCL object. More...
 

Detailed Description

Base class for memory object wrappers, i.e., CCLBuffer and CCLImage.

Definition at line 45 of file _ccl_memobj_wrapper.h.