24 #ifndef __ARM_COMPUTE_CLLUTALLOCATOR_H__ 25 #define __ARM_COMPUTE_CLLUTALLOCATOR_H__ 50 const cl::Buffer &
cl_data()
const;
60 uint8_t *
map(cl::CommandQueue &q,
bool blocking);
69 void unmap(cl::CommandQueue &q, uint8_t *mapping);
73 void allocate()
override;
78 uint8_t *lock()
override;
80 void unlock()
override;
const CLLutAllocator & operator=(const CLLutAllocator &)=delete
Prevent instances of this class from being copy assigned (As this class contains pointers).
Basic interface to allocate LUTs'.
~CLLutAllocator()=default
Default destructor.
CLLutAllocator()
Default constructor.
uint8_t * map(cl::CommandQueue &q, bool blocking)
Enqueue a map operation of the allocated buffer on the given queue.
const cl::Buffer & cl_data() const
Interface to be implemented by the child class to return the pointer to the CL data.
uint8_t * data()
Interface to be implemented by the child class to return the pointer to the mapped data...
Basic implementation of a CL memory LUT allocator.
void unmap(cl::CommandQueue &q, uint8_t *mapping)
Enqueue an unmap operation of the allocated buffer on the given queue.