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) ...
uint32_t range() const
Returns the range of the distribution.
CLDistribution1D object class.
cl::Buffer & cl_buffer() override
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...
Copyright (c) 2017-2021 Arm Limited.
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...
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
size_t num_bins() const
Returns the number of bins that the distribution has.
ICLDistribution1D interface class.
Wrapper to configure the Khronos OpenCL C++ header.
int32_t offset() const
Returns the offset of the distribution.