Clover Git
OpenCL 1.1 software implementation
|
Executing a compiled kernel. More...
#include <events.h>
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. | |
Kernel * | kernel () const |
Coal::Kernel object to run | |
DeviceKernel * | deviceKernel () 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] |
Kernel * | p_kernel |
DeviceKernel * | p_dev_kernel |
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 | ||
) |
Definition at line 624 of file events.cpp.
References Coal::Kernel::arg(), Coal::Kernel::argsSpecified(), Coal::Kernel::Arg::Buffer, Coal::Image3D::depth(), Coal::Kernel::deviceDependentKernel(), Coal::DeviceKernel::guessWorkGroupSize(), Coal::Image2D::height(), Coal::Kernel::Arg::Image2D, Coal::Kernel::Arg::Image3D, Coal::DeviceInterface::info(), Coal::Kernel::info(), Coal::CommandQueue::info(), Coal::BufferEvent::isSubBufferAligned(), Coal::Kernel::Arg::kind(), Coal::Kernel::numArgs(), p_dev_kernel, p_global_work_offset, p_global_work_size, p_local_work_size, p_max_work_item_sizes, Coal::Kernel::Arg::value(), Coal::Image2D::width(), and work_dim().
KernelEvent::~KernelEvent | ( | ) |
Definition at line 819 of file events.cpp.
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().
DeviceKernel* Coal::KernelEvent::p_dev_kernel [private] |
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().
Kernel* Coal::KernelEvent::p_kernel [private] |
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().