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_queue Struct Reference

Command queue wrapper class. More...

Inheritance diagram for ccl_queue:
Inheritance graph
Collaboration diagram for ccl_queue:
Collaboration graph

Public Member Functions

CCLEventccl_enqueue_barrier (CCLQueue *cq, CCLEventWaitList *evt_wait_lst, CCLErr **err)
 Enqueues a barrier command on the given command queue. More...
 
CCLEventccl_enqueue_marker (CCLQueue *cq, CCLEventWaitList *evt_wait_lst, CCLErr **err)
 Enqueues a marker command on the given command queue. More...
 
void ccl_queue_destroy (CCLQueue *cq)
 Decrements the reference count of the command queue wrapper object. More...
 
cl_bool ccl_queue_finish (CCLQueue *cq, CCLErr **err)
 Blocks until all previously queued OpenCL commands in a command-queue are issued to the associated device and have completed. More...
 
cl_bool ccl_queue_flush (CCLQueue *cq, CCLErr **err)
 Issues all previously queued commands in a command queue to the associated device. More...
 
void ccl_queue_gc (CCLQueue *cq)
 Release all events associated with the command queue. More...
 
CCLContextccl_queue_get_context (CCLQueue *cq, CCLErr **err)
 Get the context associated with the given command queue wrapper object. More...
 
CCLDeviceccl_queue_get_device (CCLQueue *cq, CCLErr **err)
 Get the device associated with the given command queue wrapper object. More...
 
CCLQueueccl_queue_new (CCLContext *ctx, CCLDevice *dev, cl_command_queue_properties properties, CCLErr **err)
 Create a new command queue wrapper object. More...
 
CCLQueueccl_queue_new_full (CCLContext *ctx, CCLDevice *dev, const cl_queue_properties *prop_full, CCLErr **err)
 Create a new command queue wrapper object. More...
 
CCLQueueccl_queue_new_wrap (cl_command_queue command_queue)
 Get the command queue wrapper for the given OpenCL command queue. 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

Command queue wrapper class.

Examples:
ca.c, canon.c, image_fill.c, and image_filter.c.

Definition at line 38 of file ccl_queue_wrapper.c.