46#include <initializer_list>
56 cout <<
"Test of \"copy\" function..." << flush;
74 cout <<
"Test of Kernel with double..." << flush;
85 using namespace elementOperators;
106 cout <<
"Test of KernelSIMD..." << flush;
114 vector<cl_float> expected({8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8});
120 using namespace elementOperators;
138 cout <<
"Test of KernelSIMDUA..." << flush;
146 vector<cl_float> expected({8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8});
154 using namespace elementOperators;
173 cout <<
"Test of kernel with PrivateVariable..." << flush;
188 using namespace elementOperators;
208 cout <<
"Test of kernel with PrivateArray..." << flush;
226 using namespace elementOperators;
244 cout <<
"Test of Variable functionality..." << flush;
269 cout <<
"Test of VariableReference functionality..." << flush;
296 cout <<
"Test of select function..." << flush;
308 using namespace elementOperators;
330 cout <<
"Test of Subvector..." << flush;
331 cl_float init[] = {16, 2, 77, 29, 23, 16, 2, 77, 29, 23};
350 cout <<
"Test of Swap functionality..." << flush;
372 cout <<
"Test of LocalArray and syncCopy with barrier()..." << flush;
377 unsigned int groupsNumber = 5;
398 using namespace elementOperators;
403 k.
addExpression(barrier(
"CLK_LOCAL_MEM_FENCE | CLK_GLOBAL_MEM_FENCE"));
void addExpression(Element expression_)
ACL Kernel configuration class.
void setGroupsNumber(unsigned int n)
Element operatorAssignment(Element e1, Element e2)
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
const KernelConfiguration KERNEL_SIMD
const KernelConfiguration KERNEL_SIMDUA
Advanced Computational Language.
void copy(MemBlock &source, T *destination)
const std::vector< TypeID > TYPE_SELECT
contains trasnlation of types necessery for use in the function select
void swapBuffers(std::shared_ptr< Array< T > >a, std::shared_ptr< Array< T > > b)
std::shared_ptr< ElementBase > Element
bool testPrivateVariable()
bool testVariableReference()
const acl::KernelConfiguration & kConf(acl::KERNEL_BASIC)