27 #include "../aclStdIncludes.h"
28 #include "../aclElementBase.h"
29 #include "../aclUtilities.h"
30 #include <aslUtilities.h>
31 #include "../aclHardware.h"
39 class MemBlock:
public ElementBase
42 shared_ptr<cl::Buffer>
buffer;
50 shared_ptr<void>
map();
55 inline void swapBuffers(MemBlock & a, MemBlock & b);
70 if (m->getTypeID() != typeToTypeID<T>())
73 " for an element with type " +
74 TYPE[m->getTypeID()]);
Advanced Computational Language.
shared_ptr< cl::Buffer > buffer
void errorMessage(cl_int status, const char *errorMessage)
Prints errorMessage and exits depending on the status.
std::shared_ptr< cl::CommandQueue > CommandQueue
const std::vector< std::string > TYPE
std::shared_ptr< MemBlock > ElementData
virtual void swapBuffers(MemBlock &a)
void swapBuffers(std::shared_ptr< Array< T > >a, std::shared_ptr< Array< T > > b)
std::shared_ptr< T > map(ElementData m)
Class interface for Buffer Memory Objects.
virtual cl::Buffer & getBuffer()