44#include <initializer_list>
52 cout <<
"Test of If-Else..." << flush;
54 using namespace elementOperators;
61 vector<cl_float> expected({8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8});
92 cout <<
"Test of Parser..." << flush;
94 using namespace elementOperators;
101 vector<cl_float> expected({35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35});
105 string statement(
"a + c0 + c1 + vec");
107 parser->addElementNamePair(
a,
"a");
108 parser->addElementNamePair(
c0,
"c0");
109 parser->addElementNamePair(
c1,
"c1");
111 parser->setStatement(statement);
129 cout <<
"Test of Atomic Sum..." << flush;
131 using namespace elementOperators;
136 vector<cl_int> expected({8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8});
If-Else conditional structure.
void addExpression(Element expression_)
ACL Kernel configuration class.
std::vector< std::string > extensions
SPDataWrapperACLData generateDataContainerACL_SP(const Block &b, unsigned int n=1)
generates pointer to ACL Data field with n components
void errorMessage(cl_int status, const char *errorMessage)
Prints errorMessage and exits depending on the status.
const KernelConfiguration KERNEL_BASIC
Advanced Computational Language.
void copy(MemBlock &source, T *destination)
std::shared_ptr< ElementBase > Element
const acl::KernelConfiguration & kConf(acl::KERNEL_BASIC)