cf4ocl (C Framework for OpenCL)
v2.1.0
Object-oriented framework for developing and benchmarking OpenCL projects in C/C++
|
Command queue wrapper class. More...
Public Member Functions | |
CCLEvent * | ccl_enqueue_barrier (CCLQueue *cq, CCLEventWaitList *evt_wait_lst, CCLErr **err) |
Enqueues a barrier command on the given command queue. More... | |
CCLEvent * | ccl_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... | |
CCLContext * | ccl_queue_get_context (CCLQueue *cq, CCLErr **err) |
Get the context associated with the given command queue wrapper object. More... | |
CCLDevice * | ccl_queue_get_device (CCLQueue *cq, CCLErr **err) |
Get the device associated with the given command queue wrapper object. More... | |
CCLQueue * | ccl_queue_new (CCLContext *ctx, CCLDevice *dev, cl_command_queue_properties properties, CCLErr **err) |
Create a new command queue wrapper object. More... | |
CCLQueue * | ccl_queue_new_full (CCLContext *ctx, CCLDevice *dev, const cl_queue_properties *prop_full, CCLErr **err) |
Create a new command queue wrapper object. More... | |
CCLQueue * | ccl_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 | |
CCLWrapperInfo * | ccl_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... | |
Command queue wrapper class.
Definition at line 38 of file ccl_queue_wrapper.c.