◆ addDependency()
virtual void exatn::runtime::TensorGraph::addDependency |
( |
VertexIdType |
dependent, |
|
|
VertexIdType |
dependee |
|
) |
| |
|
pure virtual |
Adds a directed edge between dependent and dependee DAG nodes: <dependent> depends on <dependee> (dependent –> dependee).
Implemented in exatn::runtime::DirectedBoostGraph.
◆ addOperation()
virtual VertexIdType exatn::runtime::TensorGraph::addOperation |
( |
std::shared_ptr< TensorOperation > |
op | ) |
|
|
pure virtual |
◆ clone()
virtual std::shared_ptr<TensorGraph> exatn::runtime::TensorGraph::clone |
( |
| ) |
|
|
pure virtual |
◆ computeShortestPath()
virtual void exatn::runtime::TensorGraph::computeShortestPath |
( |
VertexIdType |
startIndex, |
|
|
std::vector< double > & |
distances, |
|
|
std::vector< VertexIdType > & |
paths |
|
) |
| |
|
pure virtual |
◆ dependencyExists()
virtual bool exatn::runtime::TensorGraph::dependencyExists |
( |
VertexIdType |
vertex_id1, |
|
|
VertexIdType |
vertex_id2 |
|
) |
| |
|
pure virtual |
◆ extractDependencyFreeNode()
bool exatn::runtime::TensorGraph::extractDependencyFreeNode |
( |
VertexIdType * |
node_id | ) |
|
|
inline |
Extracts a dependency-free node from the list. Returns FALSE if no such node exists.
◆ extractExecutingNode()
bool exatn::runtime::TensorGraph::extractExecutingNode |
( |
VertexIdType * |
node_id | ) |
|
|
inline |
Extracts an executed DAG node from the list of executing nodes.
◆ getFrontNode()
VertexIdType exatn::runtime::TensorGraph::getFrontNode |
( |
| ) |
const |
|
inline |
Returns the current front node id.
◆ getNeighborList()
virtual std::vector<VertexIdType> exatn::runtime::TensorGraph::getNeighborList |
( |
VertexIdType |
vertex_id | ) |
|
|
pure virtual |
◆ getNodeDegree()
virtual std::size_t exatn::runtime::TensorGraph::getNodeDegree |
( |
VertexIdType |
vertex_id | ) |
|
|
pure virtual |
◆ getNodeProperties()
virtual TensorOpNode& exatn::runtime::TensorGraph::getNodeProperties |
( |
VertexIdType |
vertex_id | ) |
|
|
pure virtual |
◆ getNumDependencies()
virtual std::size_t exatn::runtime::TensorGraph::getNumDependencies |
( |
| ) |
|
|
pure virtual |
◆ getNumNodes()
virtual std::size_t exatn::runtime::TensorGraph::getNumNodes |
( |
| ) |
|
|
pure virtual |
◆ getTensorUpdateCount()
std::size_t exatn::runtime::TensorGraph::getTensorUpdateCount |
( |
const Tensor & |
tensor | ) |
|
|
inline |
Returns the current outstanding update count on the tensor in the DAG.
◆ hasUnexecutedNodes()
bool exatn::runtime::TensorGraph::hasUnexecutedNodes |
( |
| ) |
|
|
inline |
Affirms that the DAG has unexecuted nodes.
◆ nodeExecuted()
bool exatn::runtime::TensorGraph::nodeExecuted |
( |
VertexIdType |
vertex_id, |
|
|
int * |
error_code = nullptr |
|
) |
| |
|
inline |
Returns TRUE if the DAG node has been executed to completion, error_code will return the error code (if executed).
◆ nodeExecuting()
bool exatn::runtime::TensorGraph::nodeExecuting |
( |
VertexIdType |
vertex_id | ) |
|
|
inline |
Returns TRUE if the DAG node is currently being executed.
◆ printIt()
virtual void exatn::runtime::TensorGraph::printIt |
( |
| ) |
|
|
pure virtual |
◆ progressFrontNode()
bool exatn::runtime::TensorGraph::progressFrontNode |
( |
VertexIdType |
node_executed | ) |
|
|
inline |
Given just executed DAG node, moves forward the DAG front node if appropriate.
◆ registerDependencyFreeNode()
void exatn::runtime::TensorGraph::registerDependencyFreeNode |
( |
VertexIdType |
node_id | ) |
|
|
inline |
Registers a DAG node without dependencies.
◆ registerExecutingNode()
void exatn::runtime::TensorGraph::registerExecutingNode |
( |
VertexIdType |
node_id | ) |
|
|
inline |
Registers a DAG node as being executed.
◆ setNodeExecuted()
void exatn::runtime::TensorGraph::setNodeExecuted |
( |
VertexIdType |
vertex_id, |
|
|
int |
error_code = 0 |
|
) |
| |
|
inline |
Marks the DAG node as executed to completion.
◆ setNodeExecuting()
void exatn::runtime::TensorGraph::setNodeExecuting |
( |
VertexIdType |
vertex_id | ) |
|
|
inline |
Marks the DAG node as being currently executed.
◆ setNodeIdle()
void exatn::runtime::TensorGraph::setNodeIdle |
( |
VertexIdType |
vertex_id | ) |
|
|
inline |
Marks the DAG node as idle.
The documentation for this class was generated from the following file: