|
| CLDistribution1D (size_t num_bins, int32_t offset, uint32_t range) |
| Constructor: Creates a 1D CLDistribution of a consecutive interval [offset, offset + range - 1] defined by a start offset and valid range, divided equally into num_bins parts. More...
|
|
| CLDistribution1D (const CLDistribution1D &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers). More...
|
|
CLDistribution1D & | operator= (const CLDistribution1D &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers). More...
|
|
void | map (bool blocking=true) |
| Enqueue a map operation of the allocated buffer. More...
|
|
void | unmap () |
| Enqueue an unmap operation of the allocated and mapped buffer. More...
|
|
cl::Buffer & | cl_buffer () override |
| Interface to be implemented by the child class to return a reference to the OpenCL buffer containing the distribution's data. More...
|
|
| ICLDistribution1D (size_t num_bins, int32_t offset, uint32_t range) |
| Constructor: Creates a 1D CLDistribution of a consecutive interval [offset, offset + range - 1] defined by a start offset and valid range, divided equally into num_bins parts. More...
|
|
| ICLDistribution1D (const ICLDistribution1D &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers). More...
|
|
const ICLDistribution1D & | operator= (const ICLDistribution1D &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers). More...
|
|
void | map (cl::CommandQueue &q, bool blocking=true) |
| Enqueue a map operation of the allocated buffer on the given queue. More...
|
|
void | unmap (cl::CommandQueue &q) |
| Enqueue an unmap operation of the allocated and mapped buffer on the given queue. More...
|
|
uint32_t * | buffer () const override |
| Returns a pointer to the start of the distribution. More...
|
|
| IDistribution1D (size_t num_bins, int32_t offset, uint32_t range) |
| Constructor: Creates a 1D Distribution of a consecutive interval [offset, offset + range - 1] defined by a start offset and valid range, divided equally into num_bins parts. More...
|
|
size_t | num_bins () const |
| Returns the number of bins that the distribution has. More...
|
|
int32_t | offset () const |
| Returns the offset of the distribution. More...
|
|
uint32_t | range () const |
| Returns the range of the distribution. More...
|
|
uint32_t | window () const |
| Returns the window of the distribution, which is the range divided by the number of bins. More...
|
|
void | set_range (uint32_t range) |
| Sets the range of the distribution. More...
|
|
size_t | size () const override |
| Returns the total size in bytes of the distribution. More...
|
|
size_t | dimensions () const override |
| Returns the dimensions of the distribution. More...
|
|
virtual | ~IDistribution ()=default |
| Default virtual destructor. More...
|
|
void | clear () const |
| Clears the distribution by setting every element to zero. More...
|
|
CLDistribution1D object class.
Definition at line 36 of file CLDistribution1D.h.