|
CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The Internal Distribution API. More...
Namespaces | |
| namespace | coreflow |
| The internal representation of a vx_array. | |
Functions | |
| coreflow::Distribution::Distribution (vx_context context, vx_reference scope) | |
| Construct a new Distribution object. | |
| static vx_distribution | coreflow::Distribution::createDistribution (vx_context context, vx_size numBins, vx_int32 offset, vx_uint32 range) |
| Create a new distribution. | |
| vx_size | coreflow::Distribution::dims () const |
| Get the number of dimensions in the distribution. | |
| vx_uint32 | coreflow::Distribution::range () const |
| Get the range of the distribution. | |
| vx_size | coreflow::Distribution::bins () const |
| Get the number of bins in the distribution. | |
| vx_uint32 | coreflow::Distribution::window () const |
| Get the window size of the distribution. | |
| vx_int32 | coreflow::Distribution::offset () const |
| Get the offset of the distribution. | |
| vx_uint32 | coreflow::Distribution::size () const |
| Get the size of the distribution in bytes. | |
| vx_status | coreflow::Distribution::access (void **ptr, vx_enum usage) |
| Access the distribution data. | |
| vx_status | coreflow::Distribution::commit (const void *ptr) |
| Commit the distribution with the given data. | |
| vx_status | coreflow::Distribution::copy (void *user_ptr, vx_enum usage, vx_enum mem_type) |
| Copy the distribution data to/from user memory. | |
| vx_status | coreflow::Distribution::map (vx_map_id *map_id, void **ptr, vx_enum usage, vx_enum mem_type, vx_bitfield flags) |
| Map the distribution to a memory map. | |
| vx_status | coreflow::Distribution::unmap (vx_map_id map_id) |
| Unmap the distribution from the memory map. | |
| coreflow::Distribution::~Distribution () | |
| Destroy the Distribution object. | |
| void | coreflow::Distribution::destruct () override final |
| Destroys a distribution. | |
The Internal Distribution API.
#include <vx_distribution.h>
Access the distribution data.
| ptr | The pointer to the data to access |
| usage | The usage of the memory (read/write) |
| vx_size coreflow::Distribution::bins | ( | ) | const |
#include <vx_distribution.h>
Get the number of bins in the distribution.
| vx_status coreflow::Distribution::commit | ( | const void * | ptr | ) |
#include <vx_distribution.h>
Commit the distribution with the given data.
| ptr | The pointer to the data to commit |
#include <vx_distribution.h>
Copy the distribution data to/from user memory.
| user_ptr | The pointer to the user memory |
| usage | The usage of the memory (read/write) |
| mem_type | The type of memory (host, opencl, etc.) |
|
static |
#include <vx_distribution.h>
Create a new distribution.
| context | The context associated with this distribution |
| numBins | The number of bins in the distribution |
| offset | The offset of the distribution |
| range | The range of the distribution |
|
finaloverridevirtual |
| vx_size coreflow::Distribution::dims | ( | ) | const |
#include <vx_distribution.h>
Get the number of dimensions in the distribution.
| coreflow::Distribution::Distribution | ( | vx_context | context, |
| vx_reference | scope ) |
#include <vx_distribution.h>
Construct a new Distribution object.
| context | The context associated with this obj |
| scope | The parent ref of this obj |
| vx_status coreflow::Distribution::map | ( | vx_map_id * | map_id, |
| void ** | ptr, | ||
| vx_enum | usage, | ||
| vx_enum | mem_type, | ||
| vx_bitfield | flags ) |
#include <vx_distribution.h>
Map the distribution to a memory map.
| map_id | The map id to use |
| ptr | The pointer to the mapped memory |
| usage | The usage of the memory (read/write) |
| mem_type | The type of memory (host, opencl, etc.) |
| flags | Additional flags for mapping |
| vx_int32 coreflow::Distribution::offset | ( | ) | const |
| vx_uint32 coreflow::Distribution::range | ( | ) | const |
| vx_uint32 coreflow::Distribution::size | ( | ) | const |
#include <vx_distribution.h>
Get the size of the distribution in bytes.
#include <vx_distribution.h>
Unmap the distribution from the memory map.
| map_id | The map id to unmap |
| vx_uint32 coreflow::Distribution::window | ( | ) | const |
#include <vx_distribution.h>
Get the window size of the distribution.
| coreflow::Distribution::~Distribution | ( | ) |
#include <vx_distribution.h>
Destroy the Distribution object.