42 cout <<
"Test of \"Simple kernel\" function..." << flush;
51 using namespace elementOperators;
74 cout <<
"Test of advanced operations..." << flush;
91 vector<cl_int> expected0({10, 10, 10, 10, 10, 10, -4, -4, -4, -4, -4});
92 vector<cl_int> expected1({12, 12, 12, 12, 12, 12, -4, -4, -4, -4, -4});
The class represents several Element.
Updatable value. This class stores value and its TimeStamp.
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.
VectorOfElements generateVEConstant(T a)
Generates VectorOfElements with 1 Element acl::Constant with value a.
VectorOfElements generateVEVariableSP(std::shared_ptr< T > a)
Generates VectorOfElements with 1 Element acl::VariableReference with reference on a.
VectorOfElements generateVEIndex(unsigned int size=0)
Advanced Computational Language.
void copy(MemBlock &source, T *destination)
Advanced Simulation Library.
bool testAdvancedOperations()