-
Book Overview & Buying
-
Table Of Contents
OpenCL Programming by Example
By :
Let's understand the cl_event object in more detail. Every object in OpenCL has a mechanism to get information about itself. A user can query its associated context, its command queue, its status of execution or the type of the command it is associated with. Similar to clGetContextInfo, clGetDevicenfo, and so on. The function is defined as follows:
cl_int clGetEventInfo (cl_event event,cl_event_info param_name,size_t param_value_size,void *param_value,size_t *param_value_size_ret);
This function returns the information as requested in param_name for the event object. The following bullet list describes the objects used in the preceding code:
event: It specifies the cl_event object being queried.
param_name: It specifies the information to query and is of type cl_event_info. The following table lists out the different enumerations of cl_event_info, which can be queried and returned in param_value.
The param_value, param_value_size, and param_value_size_ret objects...
Change the font size
Change margin width
Change background colour