24 #ifndef __ARM_COMPUTE_CLLUT_H__ 25 #define __ARM_COMPUTE_CLLUT_H__ 62 void map(
bool blocking =
true);
77 const cl::Buffer &
cl_buffer()
const override;
78 void clear()
override;
82 uint8_t *do_map(cl::CommandQueue &q,
bool blocking)
override;
83 void do_unmap(cl::CommandQueue &q)
override;
size_t size_in_bytes() const override
Returns the total size in bytes of the LUT.
void map(cl::CommandQueue &q, bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
size_t num_elements() const override
Returns the total number of elements in the LUT.
DataType type() const override
Returns the type of the LUT.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
void clear() override
Clears the LUT by setting every element to zero.
uint32_t index_offset() const override
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...
Basic interface to allocate LUTs'.
ILutAllocator * allocator()
Return a pointer to the lut's allocator.
const cl::Buffer & cl_buffer() const override
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...
Basic implementation of a CL memory LUT allocator.
Basic implementation of the OpenCL lut interface.
DataType
Available data types.
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
Interface for OpenCL LUT.