#include <src/PRGraph/Visitors/Rankers.h>
Definition at line 31 of file Rankers.h.
◆ visit() [1/5]
virtual bool concurrency::IGraphVisitor::visit |
|
inline |
◆ visit() [2/5]
virtual bool concurrency::IGraphVisitor::visit |
|
inline |
◆ visit() [3/5]
virtual bool concurrency::IGraphVisitor::visit |
|
inline |
◆ visit() [4/5]
virtual bool concurrency::IGraphVisitor::visit |
|
inline |
◆ visit() [5/5]
Reimplemented from concurrency::IGraphVisitor.
Definition at line 74 of file Rankers.cpp.
77 myfile.
open(
"InputExecutionPlan.graphml", std::ios::in );
83 boost::dynamic_properties dp;
84 dp.property(
"name",
get( &AlgoTraceProps::m_name, execPlan ) );
85 dp.property(
"index",
get( &AlgoTraceProps::m_index, execPlan ) );
86 dp.property(
"dataRank",
get( &AlgoTraceProps::m_rank, execPlan ) );
87 dp.property(
"runtime",
get( &AlgoTraceProps::m_runtime, execPlan ) );
89 boost::read_graphml( myfile, execPlan, dp );
91 typedef boost::graph_traits<precedence::PrecTrace>::vertex_iterator itV;
94 for ( vp = boost::vertices( execPlan ); vp.first != vp.second; ++vp.first ) {
96 auto index =
get( &AlgoTraceProps::m_name, execPlan );
97 if ( index[v] == node.getNodeName() ) {
98 auto index_runtime =
get( &AlgoTraceProps::m_runtime, execPlan );
99 float rank = index_runtime[v];
100 node.setRank( rank );
boost::graph_traits< PrecTrace >::vertex_descriptor AlgoTraceVertex
auto get(const Handle &handle, const Algo &, const EventContext &) -> decltype(details::deref(handle.get()))
boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, AlgoTraceProps > PrecTrace
The documentation for this class was generated from the following files: