ASL
0.1.7
Advanced Simulation Library
|
Go to the documentation of this file.
27 #include "../aclStdIncludes.h"
28 #include "../aclElementBase.h"
29 #include "../aclUtilities.h"
30 #include <aslUtilities.h>
31 #include "../aclHardware.h"
50 shared_ptr<void>
map();
70 if (m->getTypeID() != typeToTypeID<T>())
73 " for an element with type " +
74 TYPE[m->getTypeID()]);
75 return std::shared_ptr<T> (m->map(),(T*)m->map().get());
virtual cl::Buffer & getBuffer()
Class interface for Buffer Memory Objects.
const std::vector< std::string > TYPE
MemBlock(unsigned int size, TypeID typeID, CommandQueue queue_)
std::shared_ptr< cl::CommandQueue > CommandQueue
MemBlock(unsigned int size, TypeID typeID, char *initArray, CommandQueue queue_)
std::shared_ptr< MemBlock > ElementData
virtual void swapBuffers(MemBlock &a)
void swapBuffers(std::shared_ptr< Array< T > >a, std::shared_ptr< Array< T > > b)
void errorMessage(cl_int status, const char *errorMessage)
Prints errorMessage and exits depending on the status.
std::shared_ptr< T > map(ElementData m)
Advanced Computational Language.
shared_ptr< cl::Buffer > buffer