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

Coal::BufferEvent Class Reference

Buffer-related event. More...

#include <events.h>

Inheritance diagram for Coal::BufferEvent:
Collaboration diagram for Coal::BufferEvent:

List of all members.

Public Member Functions

 BufferEvent (CommandQueue *parent, MemObject *buffer, cl_uint num_events_in_wait_list, const Event **event_wait_list, cl_int *errcode_ret)
MemObjectbuffer () 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

MemObjectp_buffer

Detailed Description

Buffer-related event.

Definition at line 53 of file events.h.


Constructor & Destructor Documentation

BufferEvent::BufferEvent ( CommandQueue parent,
MemObject buffer,
cl_uint  num_events_in_wait_list,
const Event **  event_wait_list,
cl_int *  errcode_ret 
)

Member Function Documentation

MemObject * BufferEvent::buffer ( ) const
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.

Returns:
true if the buffer is aligned or not a 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().


Member Data Documentation

Definition at line 80 of file events.h.

Referenced by buffer().


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