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

#include <aclLocalArray.h>

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

Public Member Functions

 LocalArray (unsigned int size_)
 
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::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 ()
 

Additional Inherited Members

- Public Attributes inherited from acl::ElementBase
const bool isWritable
 
- Protected Member Functions inherited from acl::ElementBase
 ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)
 
- Protected Attributes inherited from acl::ElementBase
unsigned int size
 
TypeID typeID
 
CommandQueue queue
 

Detailed Description

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

This Element appears in the Kernel source code as a local array. It is not passed to the Kernel as an argument.

Examples
testKernel.cc.

Definition at line 41 of file aclLocalArray.h.

Constructor & Destructor Documentation

◆ LocalArray()

template<typename T >
acl::LocalArray< T >::LocalArray ( unsigned int  size_)
explicit

Definition at line 60 of file aclLocalArray.h.

Member Function Documentation

◆ addToKernelSource()

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

Definition at line 106 of file aclLocalArray.h.

◆ getAddressSpaceQualifier()

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

Reimplemented from acl::ElementBase.

Definition at line 93 of file aclLocalArray.h.

◆ getLocalDeclaration()

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

Implements acl::ElementBase.

Definition at line 99 of file aclLocalArray.h.

◆ getName()

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

Implements acl::ElementBase.

Definition at line 81 of file aclLocalArray.h.

◆ getTypeSignature()

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

Implements acl::ElementBase.

Definition at line 87 of file aclLocalArray.h.

◆ setAsArgument()

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

Implements acl::ElementBase.

Definition at line 113 of file aclLocalArray.h.

◆ str()

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

Implements acl::ElementBase.

Definition at line 68 of file aclLocalArray.h.


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