Clover Git
OpenCL 1.1 software implementation
|
Buffer-related event. More...
#include <events.h>
Public Member Functions | |
BufferEvent (CommandQueue *parent, MemObject *buffer, cl_uint num_events_in_wait_list, const Event **event_wait_list, cl_int *errcode_ret) | |
MemObject * | buffer () const |
Buffer on which to operate. | |
Static Public Member Functions | |
static bool | isSubBufferAligned (const MemObject *buffer, const DeviceInterface *device) |
Check that a buffer is correctly aligned for a device. | |
Private Attributes | |
MemObject * | p_buffer |
BufferEvent::BufferEvent | ( | CommandQueue * | parent, |
MemObject * | buffer, | ||
cl_uint | num_events_in_wait_list, | ||
const Event ** | event_wait_list, | ||
cl_int * | errcode_ret | ||
) |
Definition at line 49 of file events.cpp.
References Coal::MemObject::allocate(), Coal::CommandQueue::info(), isSubBufferAligned(), and Coal::Object::parent().
MemObject * BufferEvent::buffer | ( | ) | const |
Buffer on which to operate.
Definition at line 100 of file events.cpp.
References p_buffer.
Referenced by Coal::CPUDevice::initEventDeviceData(), Coal::ReadWriteCopyBufferRectEvent::source(), Coal::CopyBufferEvent::source(), and worker().
bool BufferEvent::isSubBufferAligned | ( | const MemObject * | buffer, |
const DeviceInterface * | device | ||
) | [static] |
Check that a buffer is correctly aligned for a device.
OpenCL supports sub-buffers of buffers (Coal::SubBuffer
). They have to be aligned on a certain device-dependent boundary.
This function checks that buffer
is correctly aligned for device
. If buffer
is not a Coal::SubBuffer
, this function returns true.
Coal::SubBuffer
Definition at line 105 of file events.cpp.
References Coal::DeviceInterface::info(), Coal::MemObject::SubBuffer, and Coal::MemObject::type().
Referenced by BufferEvent(), Coal::CopyBufferEvent::CopyBufferEvent(), Coal::CopyBufferRectEvent::CopyBufferRectEvent(), and Coal::KernelEvent::KernelEvent().
MemObject* Coal::BufferEvent::p_buffer [private] |