24 #ifndef __ARM_COMPUTE_CLDISTRIBUTION1D_H__ 25 #define __ARM_COMPUTE_CLDISTRIBUTION1D_H__ 57 void map(
bool blocking =
true);
72 uint32_t *do_map(cl::CommandQueue &q,
bool blocking)
override;
73 void do_unmap(cl::CommandQueue &q)
override;
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
CLDistribution1D & operator=(const CLDistribution1D &)=delete
Prevent instances of this class from being copied (As this class contains pointers).
CLDistribution1D object class.
int32_t offset() const
Returns the offset of the distribution.
void map(cl::CommandQueue &q, bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
CLDistribution1D(size_t num_bins, int32_t offset, uint32_t range)
Constructor: Creates a 1D CLDistribution of a consecutive interval [offset, offset + range - 1] defin...
size_t num_bins() const
Returns the number of bins that the distribution has.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
uint32_t range() const
Returns the range of the distribution.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
ICLDistribution1D interface class.
cl::Buffer & cl_buffer() override
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...