24 #ifndef ACLVARIABLEREFERENCE_H 25 #define ACLVARIABLEREFERENCE_H 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;
83 vector<Element> & localDeclarations)
const 90 status = kernel.
setArg(argumentIndex, value);
97 #endif // ACLVARIABLE_H virtual string getName() const
virtual string getLocalDeclaration(const KernelConfiguration &kernelConfig) const
Advanced Simulation Library.
Advanced Computational Language.
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 void setAsArgument(cl::Kernel &kernel, unsigned int argumentIndex) const
virtual string str(const KernelConfiguration &kernelConfig) const
ACL Kernel configuration class.
constexpr const TypeID typeToTypeID()
Class interface for cl_kernel.
virtual void addToKernelSource(vector< Element > &arguments, vector< Element > &localDeclarations) const
cl_int setArg(cl_uint index, const T &value)