27 #include "../aclElementBase.h" 28 #include "../aclUtilities.h" 33 template <
typename T>
class Constant:
public ElementBase
40 virtual string str(
const KernelConfiguration & kernelConfig)
const;
42 virtual string getTypeSignature(
const KernelConfiguration & kernelConfig)
const;
45 vector<Element> & localDeclarations)
const;
58 template <
typename T> std::string
Constant<T>::str(
const KernelConfiguration & kernelConfig)
const 65 vector<Element> & localDeclarations)
const 72 unsigned int argumentIndex)
const 91 #endif // ACLCONSTANT_H virtual string getName() const
Advanced Computational Language.
virtual void addToKernelSource(vector< Element > &arguments, vector< Element > &localDeclarations) const
virtual string str(const KernelConfiguration &kernelConfig) const
virtual string getTypeSignature(const KernelConfiguration &kernelConfig) const
virtual void setAsArgument(cl::Kernel &kernel, unsigned int argumentIndex) const
Class interface for cl_kernel.
virtual string getLocalDeclaration(const KernelConfiguration &kernelConfig) const