ASL  0.1.7
Advanced Simulation Library
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
acl::Array< T > Class Template Reference

Global array. More...

#include <acl.h>

Inheritance diagram for acl::Array< T >:
Inheritance graph
[legend]
Collaboration diagram for acl::Array< T >:
Collaboration graph
[legend]

Public Member Functions

 Array (unsigned int size, CommandQueue queue_=hardware.defaultQueue)
 
 Array (unsigned int size, T *initArray, CommandQueue queue_=hardware.defaultQueue)
 
virtual string str (const KernelConfiguration &kernelConfig) const
 
virtual string getName () const
 
virtual string getAddressSpaceQualifier () const
 
virtual string getTypeSignature (const KernelConfiguration &kernelConfig) const
 
virtual string getLocalDeclaration (const KernelConfiguration &kernelConfig) const
 
virtual void addToKernelSource (vector< Element > &arguments, vector< Element > &localDeclarations) const
 
virtual void setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const
 
- Public Member Functions inherited from acl::MemBlock
virtual cl::BuffergetBuffer ()
 
shared_ptr< void > map ()
 
- Public Member Functions inherited from acl::ElementBase
unsigned int getSize () const
 
CommandQueue getQueue () const
 
TypeID getTypeID () const
 
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. More...
 
virtual ~ElementBase ()
 

Protected Attributes

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

Static Protected Attributes

static const string prefix
 
static unsigned int id
 

Additional Inherited Members

- Public Attributes inherited from acl::ElementBase
const bool isWritable
 
- Protected Member Functions inherited from acl::MemBlock
 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_)
 

Detailed Description

template<typename T>
class acl::Array< T >

Global array.

Examples
testKernel.cc, testKernelMerger.cc, and testOperators.cc.

Definition at line 47 of file acl.h.

Constructor & Destructor Documentation

◆ Array() [1/2]

template<typename T >
acl::Array< T >::Array ( unsigned int  size,
CommandQueue  queue_ = hardware.defaultQueue 
)
explicit

Definition at line 63 of file aclArray.h.

◆ Array() [2/2]

template<typename T >
acl::Array< T >::Array ( unsigned int  size,
T *  initArray,
CommandQueue  queue_ = hardware.defaultQueue 
)

Definition at line 71 of file aclArray.h.

Member Function Documentation

◆ addToKernelSource()

template<typename T >
void acl::Array< T >::addToKernelSource ( vector< Element > &  arguments,
vector< Element > &  localDeclarations 
) const
virtual

Definition at line 119 of file aclArray.h.

◆ getAddressSpaceQualifier()

template<typename T >
string acl::Array< T >::getAddressSpaceQualifier ( ) const
virtual

Reimplemented from acl::ElementBase.

Definition at line 105 of file aclArray.h.

◆ getLocalDeclaration()

template<typename T >
string acl::Array< T >::getLocalDeclaration ( const KernelConfiguration kernelConfig) const
virtual

Implements acl::ElementBase.

Definition at line 111 of file aclArray.h.

◆ getName()

template<typename T >
string acl::Array< T >::getName ( ) const
virtual

Implements acl::ElementBase.

Definition at line 80 of file aclArray.h.

◆ getTypeSignature()

template<typename T >
string acl::Array< T >::getTypeSignature ( const KernelConfiguration kernelConfig) const
virtual

Implements acl::ElementBase.

Definition at line 99 of file aclArray.h.

◆ setAsArgument()

template<typename T >
void acl::Array< T >::setAsArgument ( cl::Kernel kernel,
unsigned int  argumentIndex 
) const
virtual

Implements acl::ElementBase.

Definition at line 125 of file aclArray.h.

◆ str()

template<typename T >
string acl::Array< T >::str ( const KernelConfiguration kernelConfig) const
virtual

Implements acl::ElementBase.

Definition at line 86 of file aclArray.h.

Member Data Documentation

◆ id

template<typename T >
unsigned int acl::Array< T >::id
staticprotected

Definition at line 41 of file aclArray.h.

◆ name

template<typename T >
string acl::Array< T >::name
protected

Definition at line 39 of file aclArray.h.

◆ prefix

template<typename T >
const string acl::Array< T >::prefix
staticprotected

Definition at line 40 of file aclArray.h.


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