Clover Git
OpenCL 1.1 software implementation
Public Member Functions | Private Attributes

Coal::KernelEvent Class Reference

Executing a compiled kernel. More...

#include <events.h>

Inheritance diagram for Coal::KernelEvent:
Collaboration diagram for Coal::KernelEvent:

List of all members.

Public Member Functions

 KernelEvent (CommandQueue *parent, Kernel *kernel, cl_uint work_dim, const size_t *global_work_offset, const size_t *global_work_size, const size_t *local_work_size, cl_uint num_events_in_wait_list, const Event **event_wait_list, cl_int *errcode_ret)
 ~KernelEvent ()
cl_uint work_dim () const
 Number of working dimensions.
size_t global_work_offset (cl_uint dim) const
 Global work offset for the dim dimension.
size_t global_work_size (cl_uint dim) const
 Global work size for the dim dimension.
size_t local_work_size (cl_uint dim) const
 Number of work-items per work-group for the dim dimension.
Kernelkernel () const
 Coal::Kernel object to run
DeviceKerneldeviceKernel () const
 Coal::DeviceKernel for the kernel and device of this event
virtual Type type () const
 Say the event is a Coal::Event::NDRangeKernel one.

Private Attributes

cl_uint p_work_dim
size_t p_global_work_offset [MAX_WORK_DIMS]
size_t p_global_work_size [MAX_WORK_DIMS]
size_t p_local_work_size [MAX_WORK_DIMS]
size_t p_max_work_item_sizes [MAX_WORK_DIMS]
Kernelp_kernel
DeviceKernelp_dev_kernel

Detailed Description

Executing a compiled kernel.

Definition at line 590 of file events.h.


Constructor & Destructor Documentation

KernelEvent::KernelEvent ( CommandQueue parent,
Kernel kernel,
cl_uint  work_dim,
const size_t *  global_work_offset,
const size_t *  global_work_size,
const size_t *  local_work_size,
cl_uint  num_events_in_wait_list,
const Event **  event_wait_list,
cl_int *  errcode_ret 
)
KernelEvent::~KernelEvent ( )

Definition at line 819 of file events.cpp.


Member Function Documentation

DeviceKernel * KernelEvent::deviceKernel ( ) const

Coal::DeviceKernel for the kernel and device of this event

Definition at line 849 of file events.cpp.

References p_dev_kernel.

Referenced by Coal::CPUKernelEvent::takeInstance().

size_t KernelEvent::global_work_offset ( cl_uint  dim) const

Global work offset for the dim dimension.

Definition at line 829 of file events.cpp.

References p_global_work_offset.

Referenced by Coal::CPUKernelWorkGroup::CPUKernelWorkGroup(), and Coal::CPUKernelWorkGroup::getGlobalOffset().

size_t KernelEvent::global_work_size ( cl_uint  dim) const

Global work size for the dim dimension.

Definition at line 834 of file events.cpp.

References p_global_work_size.

Referenced by Coal::CPUKernelWorkGroup::getGlobalSize(), and Coal::CPUKernelWorkGroup::getNumGroups().

Kernel * KernelEvent::kernel ( ) const

Coal::Kernel object to run

Definition at line 844 of file events.cpp.

References p_kernel.

Referenced by Coal::CPUDevice::initEventDeviceData().

size_t KernelEvent::local_work_size ( cl_uint  dim) const

Number of work-items per work-group for the dim dimension.

Definition at line 839 of file events.cpp.

References p_local_work_size.

Referenced by Coal::CPUKernelWorkGroup::getLocalSize(), and Coal::CPUKernelWorkGroup::getNumGroups().

Event::Type KernelEvent::type ( ) const [virtual]

Say the event is a Coal::Event::NDRangeKernel one.

Implements Coal::Event.

Reimplemented in Coal::TaskEvent.

Definition at line 854 of file events.cpp.

References Coal::Event::NDRangeKernel.

cl_uint KernelEvent::work_dim ( ) const

Number of working dimensions.

Definition at line 824 of file events.cpp.

References p_work_dim.

Referenced by Coal::CPUKernelEvent::CPUKernelEvent(), KernelEvent(), and Coal::CPUKernelEvent::takeInstance().


Member Data Documentation

Definition at line 620 of file events.h.

Referenced by deviceKernel(), and KernelEvent().

size_t Coal::KernelEvent::p_global_work_offset[MAX_WORK_DIMS] [private]

Definition at line 615 of file events.h.

Referenced by global_work_offset(), and KernelEvent().

size_t Coal::KernelEvent::p_global_work_size[MAX_WORK_DIMS] [private]

Definition at line 615 of file events.h.

Referenced by global_work_size(), and KernelEvent().

Definition at line 619 of file events.h.

Referenced by kernel().

size_t Coal::KernelEvent::p_local_work_size[MAX_WORK_DIMS] [private]

Definition at line 615 of file events.h.

Referenced by KernelEvent(), and local_work_size().

size_t Coal::KernelEvent::p_max_work_item_sizes[MAX_WORK_DIMS] [private]

Definition at line 615 of file events.h.

Referenced by KernelEvent().

cl_uint Coal::KernelEvent::p_work_dim [private]

Definition at line 614 of file events.h.

Referenced by work_dim().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines