24 #ifndef ARM_COMPUTE_CLLUTALLOCATOR_H 25 #define ARM_COMPUTE_CLLUTALLOCATOR_H 56 const cl::Buffer &
cl_data()
const;
66 uint8_t *
map(cl::CommandQueue &q,
bool blocking);
75 void unmap(cl::CommandQueue &q, uint8_t *mapping);
79 void allocate()
override;
84 uint8_t *lock()
override;
86 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.
const cl::Buffer & cl_data() const
Interface to be implemented by the child class to return the pointer to the CL data.
Copyright (c) 2017-2021 Arm Limited.
CLLutAllocator()
Default constructor.
uint8_t * data()
Interface to be implemented by the child class to return the pointer to the mapped data...
uint8_t * map(cl::CommandQueue &q, bool blocking)
Enqueue a map operation of the allocated buffer on the given queue.
Wrapper to configure the Khronos OpenCL C++ header.
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.