Default fields and functions all CuSP partitioners use; this is a class to inherit from.
More...
#include <BasePolicies.h>
|
| PartitioningScaffold (uint32_t hostID, uint32_t numHosts, uint64_t numNodes, uint64_t numEdges) |
| Constructor for Scaffold. More...
|
|
void | saveGIDToHost (std::vector< std::pair< uint64_t, uint64_t >> &gid2host) |
| Save a provided map from host to nodes a host has read into this object. More...
|
|
Default fields and functions all CuSP partitioners use; this is a class to inherit from.
galois::graphs::PartitioningScaffold::PartitioningScaffold |
( |
uint32_t |
hostID, |
|
|
uint32_t |
numHosts, |
|
|
uint64_t |
numNodes, |
|
|
uint64_t |
numEdges |
|
) |
| |
|
inline |
Constructor for Scaffold.
- Parameters
-
hostID | Host ID of caller |
numHosts | Total num hosts in execution |
numNodes | Total number of nodes in graph |
numEdges | Total number of edges in graph |
void galois::graphs::PartitioningScaffold::saveGIDToHost |
( |
std::vector< std::pair< uint64_t, uint64_t >> & |
gid2host | ) |
|
|
inline |
Save a provided map from host to nodes a host has read into this object.
- Parameters
-
gid2host | Map of hosts to read nodes to save |
std::vector<std::pair<uint64_t, uint64_t> > galois::graphs::PartitioningScaffold::_gid2host |
|
protected |
maps from host id to nodes that host as read from disk
uint32_t galois::graphs::PartitioningScaffold::_hostID |
|
protected |
host ID of owner of this object
uint64_t galois::graphs::PartitioningScaffold::_numEdges |
|
protected |
uint32_t galois::graphs::PartitioningScaffold::_numHosts |
|
protected |
uint64_t galois::graphs::PartitioningScaffold::_numNodes |
|
protected |
The documentation for this class was generated from the following file: