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

#include <aclSubvector.h>

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

Public Member Functions

 Subvector (shared_ptr< Array< T > > vector_, unsigned int size_, unsigned int offset_)
 
virtual cl::BuffergetBuffer ()
 
virtual string str (const KernelConfiguration &kernelConfig) const
 
virtual string getName () const
 
virtual string getTypeSignature (const KernelConfiguration &kernelConfig) const
 
virtual string getLocalDeclaration (const KernelConfiguration &kernelConfig) const
 
virtual void addToKernelSource (std::vector< Element > &arguments, std::vector< Element > &localDeclarations) const
 
virtual void setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const
 
- Public Member Functions inherited from acl::MemBlock
shared_ptr< void > map ()
 
- Public Member Functions inherited from acl::ElementBase
virtual string getAddressSpaceQualifier () const
 
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::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_)
 
- 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
 

Detailed Description

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

Examples
testKernel.cc.

Definition at line 39 of file aclSubvector.h.

Constructor & Destructor Documentation

◆ Subvector()

template<typename T >
acl::Subvector< T >::Subvector ( shared_ptr< Array< T > >  vector_,
unsigned int  size_,
unsigned int  offset_ 
)

Definition at line 66 of file aclSubvector.h.

Member Function Documentation

◆ addToKernelSource()

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

Definition at line 130 of file aclSubvector.h.

◆ getBuffer()

template<typename T >
cl::Buffer & acl::Subvector< T >::getBuffer ( )
virtual

if original buffer is moved within GPU memory

Reimplemented from acl::MemBlock.

Definition at line 90 of file aclSubvector.h.

◆ getLocalDeclaration()

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

Implements acl::ElementBase.

Definition at line 122 of file aclSubvector.h.

◆ getName()

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

Implements acl::ElementBase.

Definition at line 104 of file aclSubvector.h.

◆ getTypeSignature()

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

Implements acl::ElementBase.

Definition at line 116 of file aclSubvector.h.

◆ setAsArgument()

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

Implements acl::ElementBase.

Definition at line 137 of file aclSubvector.h.

◆ str()

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

Implements acl::ElementBase.

Definition at line 110 of file aclSubvector.h.


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