27 #include "../aclElementBase.h" 28 #include "../../aslUtilities.h" 29 #include "../aclUtilities.h" 41 static const string prefix;
42 static unsigned int id;
46 virtual string getName()
const;
49 virtual void addToKernelSource(vector<Element> & arguments,
50 vector<Element> & localDeclarations)
const;
51 virtual void setAsArgument(
cl::Kernel & kernel,
unsigned int argumentIndex)
const;
52 virtual const T getValue()
const;
53 void setValue(
const T & a);
84 vector<Element> & localDeclarations)
const 92 status = kernel.
setArg(argumentIndex, value);
111 #endif // ACLVARIABLE_H Advanced Simulation Library.
Advanced Computational Language.
virtual void setAsArgument(cl::Kernel &kernel, unsigned int argumentIndex) const
void errorMessage(cl_int status, const char *errorMessage)
Prints errorMessage and exits depending on the status.
std::string numToStr(T i)
Converts numbers or another type to string.
virtual string str(const KernelConfiguration &kernelConfig) const
virtual string getLocalDeclaration(const KernelConfiguration &kernelConfig) const
virtual void addToKernelSource(vector< Element > &arguments, vector< Element > &localDeclarations) const
ACL Kernel configuration class.
constexpr const TypeID typeToTypeID()
Class interface for cl_kernel.
virtual const T getValue() const
void setValue(const T &a)
virtual string getName() const
cl_int setArg(cl_uint index, const T &value)