36#include <initializer_list>
43 cout <<
"Test of \"KernelMerger\" functionality..." <<
flush;
59 using namespace elementOperators;
75 bool status((acl::map<float>(vec0).
get()[9] == 2) &&
76 (acl::map<float>(vec1).
get()[3] == 1) &&
77 (acl::map<float>(vec2).
get()[7] == 4));
86 bool allTestsPassed(
true);
90 return allTestsPassed ? EXIT_SUCCESS : EXIT_FAILURE;
std::string getKernelSource()
void addKernel(SPKernel k)
ABDFileIn & get(ABDFileIn &f, AbstractData &a, std::shared_ptr< double > d)
reads data. It is assumed that the class has the propper size
Element operatorAssignment(Element e1, Element e2)
void errorMessage(cl_int status, const char *errorMessage)
Prints errorMessage and exits depending on the status.
Advanced Computational Language.
std::shared_ptr< MemBlock > ElementData
std::shared_ptr< Kernel > SPKernel
std::shared_ptr< ElementBase > Element