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

Event wrapper class. More...

Inheritance diagram for ccl_event:
Inheritance graph
Collaboration diagram for ccl_event:
Collaboration graph

Public Types

typedef void(* ccl_event_callback )(cl_event event, cl_int event_command_exec_status, void *user_data)
 Prototype for user event callback functions. More...
 
typedef void(* ccl_event_callback )(cl_event event, cl_int event_command_exec_status, void *user_data)
 Prototype for user event callback functions. More...
 

Public Member Functions

void ccl_event_destroy (CCLEvent *evt)
 Decrements the reference count of the event wrapper object. More...
 
cl_command_type ccl_event_get_command_type (CCLEvent *evt, CCLErr **err)
 Get the command type which fired the given event. More...
 
const char * ccl_event_get_final_name (CCLEvent *evt)
 Get the final event name for profiling purposes. More...
 
const char * ccl_event_get_name (CCLEvent *evt)
 Get the event name for profiling purposes. More...
 
cl_uint ccl_event_get_opencl_version (CCLEvent *evt, CCLErr **err)
 Get the OpenCL version of the platform associated with this event object. More...
 
CCLEventccl_event_new_wrap (cl_event event)
 Get the event wrapper for the given OpenCL event. More...
 
cl_bool ccl_event_set_callback (CCLEvent *evt, cl_int command_exec_callback_type, ccl_event_callback pfn_notify, void *user_data, CCLErr **err)
 Wrapper for OpenCL clSetEventCallback() function. More...
 
void ccl_event_set_name (CCLEvent *evt, const char *name)
 Set event name for profiling purposes. More...
 
CCLEventccl_user_event_new (CCLContext *ctx, CCLErr **err)
 Create a new user event. More...
 
cl_bool ccl_user_event_set_status (CCLEvent *evt, cl_int execution_status, CCLErr **err)
 Sets the execution status of a user event object. 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

Event wrapper class.

Examples:
ca.c, and canon.c.

Definition at line 40 of file ccl_event_wrapper.c.