24 #ifndef ACLLOCALARRAY_H 25 #define ACLLOCALARRAY_H 27 #include "../aclElementBase.h" 28 #include "../../aslUtilities.h" 29 #include "../aclUtilities.h" 45 static const string prefix;
46 static unsigned int id;
50 virtual string getName()
const;
51 virtual string getAddressSpaceQualifier()
const;
54 virtual void addToKernelSource(vector<Element> & arguments,
55 vector<Element> & localDeclarations)
const;
56 virtual void setAsArgument(
cl::Kernel & kernel,
unsigned int argumentIndex)
const;
76 return name +
"[" +
INDEX +
"]";
107 vector<Element> & localDeclarations)
const 114 unsigned int argumentIndex)
const 121 #endif // ACLLOCALARRAY_H
Advanced Simulation Library.
Advanced Computational Language.
std::string numToStr(T i)
Converts numbers or another type to string.
virtual string getTypeSignature(const KernelConfiguration &kernelConfig) const
unsigned int paddingElements(unsigned int size, const KernelConfiguration &kernelConfig)
Adds padding in elements based on vector width.
virtual string getLocalDeclaration(const KernelConfiguration &kernelConfig) const
virtual void setAsArgument(cl::Kernel &kernel, unsigned int argumentIndex) const
virtual void addToKernelSource(vector< Element > &arguments, vector< Element > &localDeclarations) const
virtual string getName() const
ACL Kernel configuration class.
virtual string getAddressSpaceQualifier() const
constexpr const TypeID typeToTypeID()
Class interface for cl_kernel.
virtual string str(const KernelConfiguration &kernelConfig) const