ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
acl::MemBlock Class Reference

#include <aclMemBlock.h>

Inheritance diagram for acl::MemBlock:
Collaboration diagram for acl::MemBlock:

Public Member Functions

virtual cl::BuffergetBuffer ()
shared_ptr< void > map ()
virtual cl::BuffergetBuffer ()
shared_ptr< void > map ()
Public Member Functions inherited from acl::ElementBase
virtual string str (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual string getName () const =0
virtual string getAddressSpaceQualifier () const
unsigned int getSize () const
CommandQueue getQueue () const
TypeID getTypeID () const
virtual string getTypeSignature (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual string getLocalDeclaration (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual void addToKernelSource (vector< shared_ptr< ElementBase > > &arguments, vector< shared_ptr< ElementBase > > &localDeclarations) const =0
 Adds ElementBase to the kernel source either as an argument or as a local declaration.
virtual void setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const =0
virtual ~ElementBase ()
virtual string str (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual string getName () const =0
virtual string getAddressSpaceQualifier () const
unsigned int getSize () const
CommandQueue getQueue () const
TypeID getTypeID () const
virtual string getTypeSignature (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual string getLocalDeclaration (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual void addToKernelSource (vector< shared_ptr< ElementBase > > &arguments, vector< shared_ptr< ElementBase > > &localDeclarations) const =0
 Adds ElementBase to the kernel source either as an argument or as a local declaration.
virtual void setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const =0
virtual ~ElementBase ()

Protected Member Functions

 MemBlock ()
 MemBlock (unsigned int size, TypeID typeID, CommandQueue queue_)
 MemBlock (unsigned int size, TypeID typeID, char *initArray, CommandQueue queue_)
virtual void swapBuffers (MemBlock &a)
 MemBlock ()
 MemBlock (unsigned int size, TypeID typeID, CommandQueue queue_)
 MemBlock (unsigned int size, TypeID typeID, char *initArray, CommandQueue queue_)
virtual void swapBuffers (MemBlock &a)
Protected Member Functions inherited from acl::ElementBase
 ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)
 ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)

Protected Attributes

shared_ptr< cl::Bufferbuffer
weak_ptr< void > region
Protected Attributes inherited from acl::ElementBase
unsigned int size
TypeID typeID
CommandQueue queue

Friends

void swapBuffers (MemBlock &a, MemBlock &b)
void swapBuffers (MemBlock &a, MemBlock &b)

Additional Inherited Members

Public Attributes inherited from acl::ElementBase
const bool isWritable

Detailed Description

Definition at line 39 of file aclMemBlock.h.

Constructor & Destructor Documentation

◆ MemBlock() [1/6]

acl::MemBlock::MemBlock ( )
protected

◆ MemBlock() [2/6]

acl::MemBlock::MemBlock ( unsigned int size,
TypeID typeID,
CommandQueue queue_ )
protected

◆ MemBlock() [3/6]

acl::MemBlock::MemBlock ( unsigned int size,
TypeID typeID,
char * initArray,
CommandQueue queue_ )
protected

◆ MemBlock() [4/6]

acl::MemBlock::MemBlock ( )
protected

◆ MemBlock() [5/6]

acl::MemBlock::MemBlock ( unsigned int size,
TypeID typeID,
CommandQueue queue_ )
protected

◆ MemBlock() [6/6]

acl::MemBlock::MemBlock ( unsigned int size,
TypeID typeID,
char * initArray,
CommandQueue queue_ )
protected

Member Function Documentation

◆ getBuffer() [1/2]

virtual cl::Buffer & acl::MemBlock::getBuffer ( )
virtual

Reimplemented in acl::Subvector< T >, and acl::Subvector< T >.

◆ getBuffer() [2/2]

virtual cl::Buffer & acl::MemBlock::getBuffer ( )
virtual

Reimplemented in acl::Subvector< T >, and acl::Subvector< T >.

◆ map() [1/2]

shared_ptr< void > acl::MemBlock::map ( )

◆ map() [2/2]

shared_ptr< void > acl::MemBlock::map ( )

◆ swapBuffers() [1/2]

virtual void acl::MemBlock::swapBuffers ( MemBlock & a)
protectedvirtual

◆ swapBuffers() [2/2]

virtual void acl::MemBlock::swapBuffers ( MemBlock & a)
protectedvirtual

◆ swapBuffers [1/2]

void swapBuffers ( MemBlock & a,
MemBlock & b )
friend

Definition at line 62 of file aclMemBlock.h.

◆ swapBuffers [2/2]

void swapBuffers ( MemBlock & a,
MemBlock & b )
friend

Definition at line 62 of file aclMemBlock.h.

Member Data Documentation

◆ buffer

shared_ptr< cl::Buffer > acl::MemBlock::buffer
protected

Definition at line 42 of file aclMemBlock.h.

◆ region

weak_ptr< void > acl::MemBlock::region
protected

Definition at line 43 of file aclMemBlock.h.


The documentation for this class was generated from the following files: