The Gaudi Framework  master (594c33fa)
concurrency::PrecedenceRulesGraph Class Reference

#include </builds/gaudi/Gaudi/GaudiHive/src/PRGraph/PrecedenceRulesGraph.h>

Inheritance diagram for concurrency::PrecedenceRulesGraph:
Collaboration diagram for concurrency::PrecedenceRulesGraph:

Public Member Functions

 PrecedenceRulesGraph (const std::string &name, SmartIF< ISvcLocator > svc)
 Constructor. More...
 
StatusCode initialize ()
 Initialize graph. More...
 
void accept (IGraphVisitor &visitor) const
 An entry point to visit all graph nodes. More...
 
StatusCode addDataNode (const DataObjID &dataPath)
 Add DataNode that represents DataObject. More...
 
DataNodegetDataNode (const DataObjID &dataPath) const
 Get DataNode by DataObject path using graph index. More...
 
void registerIODataObjects (const Gaudi::Algorithm *algo)
 Register algorithm in the Data Dependency index. More...
 
StatusCode buildDataDependenciesRealm ()
 Build data dependency realm WITH data object nodes participating. More...
 
void addHeadNode (const std::string &headName, concurrency::Concurrent, concurrency::PromptDecision, concurrency::ModeOr, concurrency::AllPass, concurrency::Inverted)
 Add a node, which has no parents. More...
 
DecisionNodegetHeadNode () const
 Get head node. More...
 
StatusCode addAlgorithmNode (Gaudi::Algorithm *daughterAlgo, const std::string &parentName)
 Add algorithm node. More...
 
AlgorithmNodegetAlgorithmNode (const std::string &algoName) const
 Get the AlgorithmNode from by algorithm name using graph index. More...
 
StatusCode addDecisionHubNode (Gaudi::Algorithm *daughterAlgo, const std::string &parentName, concurrency::Concurrent, concurrency::PromptDecision, concurrency::ModeOr, concurrency::AllPass, concurrency::Inverted)
 Add a node, which aggregates decisions of direct daughter nodes. More...
 
unsigned int getControlFlowNodeCounter () const
 Get total number of control flow graph nodes. More...
 
void rankAlgorithms (IGraphVisitor &ranker) const
 Rank Algorithm nodes by the number of data outputs. More...
 
const std::stringname () const override
 Retrieve name of the service. More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator. More...
 
void printState (std::stringstream &output, EventSlot &slot, const unsigned int &recursionLevel) const
 Print a string representing the control flow state. More...
 
void enableAnalysis ()
 BGL-based facilities. More...
 
PRVertexDesc node (const std::string &) const
 
std::string dumpDataFlow () const
 Print out all data origins and destinations, as reflected in the EF graph. More...
 
std::string dumpControlFlow () const
 Print out control flow of Algorithms and Sequences. More...
 
void dumpPrecRules (const boost::filesystem::path &, const EventSlot &slot)
 dump to file the precedence rules More...
 
void dumpPrecTrace (const boost::filesystem::path &, const EventSlot &slot)
 dump to file the precedence trace More...
 
void addEdgeToPrecTrace (const AlgorithmNode *u, const AlgorithmNode *v)
 set cause-effect connection between two algorithms in the precedence trace More...
 
void dumpControlFlow (std::ostringstream &, ControlFlowNode *, const int &) const
 
- Public Member Functions inherited from CommonMessaging< IPrecedenceRulesGraph >
MSG::Level msgLevel () const
 get the cached level (originally extracted from the embedded MsgStream) More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 

Private Attributes

DecisionNodem_headNode = nullptr
 the head node of the control flow graph More...
 
std::unordered_map< std::string, std::unique_ptr< AlgorithmNode > > m_algoNameToAlgoNodeMap
 Index: map of algorithm's name to AlgorithmNode. More...
 
std::unordered_map< std::string, std::unique_ptr< DecisionNode > > m_decisionNameToDecisionHubMap
 Index: map of decision's name to DecisionHub. More...
 
std::unordered_map< DataObjID, std::unique_ptr< DataNode >, DataObjID_Hasherm_dataPathToDataNodeMap
 Index: map of data path to DataNode. More...
 
std::unordered_map< std::string, DataObjIDCollm_algoNameToAlgoInputsMap
 Indexes: maps of algorithm's name to algorithm's inputs/outputs. More...
 
std::unordered_map< std::string, DataObjIDCollm_algoNameToAlgoOutputsMap
 
unsigned int m_nodeCounter = 0
 Total number of nodes in the graph. More...
 
unsigned int m_algoCounter = 0
 Total number of algorithm nodes in the graph. More...
 
SmartIF< ISvcLocatorm_svcLocator
 Service locator (needed to access the MessageSvc) More...
 
const std::string m_name
 
precedence::PrecTrace m_precTrace
 facilities for algorithm precedence tracing More...
 
std::map< std::string, precedence::AlgoTraceVertexm_prec_trace_map
 
bool m_enableAnalysis { false }
 
precedence::PRGraph m_PRGraph
 BGL-based graph of precedence rules. More...
 
bool m_conditionsRealmEnabled { false }
 Enable conditions realm of precedence rules. More...
 

Additional Inherited Members

- Public Types inherited from CommonMessaging< IPrecedenceRulesGraph >
using base_class = CommonMessaging
 
- Protected Member Functions inherited from CommonMessaging< IPrecedenceRulesGraph >
MSG::Level setUpMessaging () const
 Set up local caches. More...
 
MSG::Level resetMessaging ()
 Reinitialize internal states. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 

Detailed Description

Definition at line 618 of file PrecedenceRulesGraph.h.

Constructor & Destructor Documentation

◆ PrecedenceRulesGraph()

concurrency::PrecedenceRulesGraph::PrecedenceRulesGraph ( const std::string name,
SmartIF< ISvcLocator svc 
)
inline

Constructor.

Definition at line 621 of file PrecedenceRulesGraph.h.

621  : m_svcLocator( svc ), m_name( name ) {
622  // make sure that CommonMessaging is initialized
623  setUpMessaging();
624  }

Member Function Documentation

◆ accept()

void concurrency::PrecedenceRulesGraph::accept ( IGraphVisitor visitor) const

An entry point to visit all graph nodes.

Definition at line 538 of file PrecedenceRulesGraph.cpp.

538  {
539  // iterate through Algorithm nodes
540  for ( auto& pr : m_algoNameToAlgoNodeMap ) pr.second->accept( visitor );
541 
542  // iterate through DecisionHub nodes
543  for ( auto& pr : m_decisionNameToDecisionHubMap ) pr.second->accept( visitor );
544 
545  // iterate through Data [and Conditions] nodes
546  for ( auto& pr : m_dataPathToDataNodeMap ) pr.second->accept( visitor );
547  }

◆ addAlgorithmNode()

StatusCode concurrency::PrecedenceRulesGraph::addAlgorithmNode ( Gaudi::Algorithm daughterAlgo,
const std::string parentName 
)

Add algorithm node.

Create new, or fetch existent, AlgorithmNode

Attach AlgorithmNode to its parent DecisionNode

Definition at line 372 of file PrecedenceRulesGraph.cpp.

372  {
373 
375 
377 
378  auto& algoName = algo->name();
379 
380  concurrency::AlgorithmNode* algoNode;
381 
382  auto itA = m_algoNameToAlgoNodeMap.find( algoName );
383  if ( itA != m_algoNameToAlgoNodeMap.end() ) {
384  algoNode = itA->second.get();
385  } else {
386  auto r = m_algoNameToAlgoNodeMap.emplace(
387  algoName, std::make_unique<concurrency::AlgorithmNode>( *this, algo, m_nodeCounter, m_algoCounter ) );
388  algoNode = r.first->second.get();
389 
390  // Mirror AlgorithmNode in the BGL-based graph
391  if ( m_enableAnalysis ) { boost::add_vertex( AlgoProps( algo, m_nodeCounter, m_algoCounter ), m_PRGraph ); }
392  ++m_nodeCounter;
393  ++m_algoCounter;
394  ON_VERBOSE verbose() << "AlgorithmNode '" << algoName << "' added @ " << algoNode << endmsg;
395 
396  registerIODataObjects( algo );
397  }
398 
400  auto itP = m_decisionNameToDecisionHubMap.find( parentName );
401  if ( itP != m_decisionNameToDecisionHubMap.end() ) {
402  auto parentNode = itP->second.get();
403 
404  parentNode->addDaughterNode( algoNode );
405  algoNode->addParentNode( parentNode );
406 
407  // Mirror algorithm to CF parent relationship in the BGL-based graph
408  if ( m_enableAnalysis ) boost::add_edge( node( algo->name() ), node( parentName ), m_PRGraph );
409 
410  ON_VERBOSE verbose() << "Attached AlgorithmNode '" << algo->name() << "' to parent DecisionNode '" << parentName
411  << "'" << endmsg;
412  } else {
413  sc = StatusCode::FAILURE;
414  error() << "Parent DecisionNode '" << parentName << "' was not found" << endmsg;
415  }
416 
417  return sc;
418  }

◆ addDataNode()

StatusCode concurrency::PrecedenceRulesGraph::addDataNode ( const DataObjID dataPath)

Add DataNode that represents DataObject.

Definition at line 421 of file PrecedenceRulesGraph.cpp.

421  {
422 
423  auto itD = m_dataPathToDataNodeMap.find( dataPath );
424  if ( itD != m_dataPathToDataNodeMap.end() ) return StatusCode::SUCCESS;
425 
427  if ( !m_conditionsRealmEnabled ) {
428  dataNode = std::make_unique<concurrency::DataNode>( *this, dataPath );
429  ON_VERBOSE verbose() << " DataNode " << dataPath << " added @ " << dataNode.get() << endmsg;
430  // Mirror the action above in the BGL-based graph
431  if ( m_enableAnalysis ) boost::add_vertex( DataProps( dataPath ), m_PRGraph );
432  } else {
433  SmartIF<ICondSvc> condSvc{ serviceLocator()->service( "CondSvc", false ) };
434  if ( condSvc->isRegistered( dataPath ) ) {
435  dataNode = std::make_unique<concurrency::ConditionNode>( *this, dataPath, condSvc );
436  ON_VERBOSE verbose() << " ConditionNode " << dataPath << " added @ " << dataNode.get() << endmsg;
437  // Mirror the action above in the BGL-based graph
438  if ( m_enableAnalysis ) boost::add_vertex( CondDataProps( dataPath ), m_PRGraph );
439  } else {
440  dataNode = std::make_unique<concurrency::DataNode>( *this, dataPath );
441  ON_VERBOSE verbose() << " DataNode " << dataPath << " added @ " << dataNode.get() << endmsg;
442  // Mirror the action above in the BGL-based graph
443  if ( m_enableAnalysis ) boost::add_vertex( DataProps( dataPath ), m_PRGraph );
444  }
445  }
446  m_dataPathToDataNodeMap.emplace( dataPath, std::move( dataNode ) );
447  return StatusCode::SUCCESS;
448  }

◆ addDecisionHubNode()

StatusCode concurrency::PrecedenceRulesGraph::addDecisionHubNode ( Gaudi::Algorithm daughterAlgo,
const std::string parentName,
concurrency::Concurrent  modeConcurrent,
concurrency::PromptDecision  modePromptDecision,
concurrency::ModeOr  modeOR,
concurrency::AllPass  allPass,
concurrency::Inverted  isInverted 
)

Add a node, which aggregates decisions of direct daughter nodes.

Create new, or fetch existent, DecisionNode

Attach DecisionNode to its parent DecisionNode

Definition at line 451 of file PrecedenceRulesGraph.cpp.

453  {
454 
456 
458 
459  auto& decisionHubName = decisionHubAlgo->name();
460 
461  auto itA = m_decisionNameToDecisionHubMap.find( decisionHubName );
462  concurrency::DecisionNode* decisionHubNode;
463  if ( itA != m_decisionNameToDecisionHubMap.end() ) {
464  decisionHubNode = itA->second.get();
465  } else {
466  auto r = m_decisionNameToDecisionHubMap.emplace(
467  decisionHubName,
468  std::make_unique<concurrency::DecisionNode>( *this, m_nodeCounter, decisionHubName, modeConcurrent,
469  modePromptDecision, modeOR, allPass, isInverted ) );
470  decisionHubNode = r.first->second.get();
471  // Mirror DecisionNode in the BGL-based graph
472  if ( m_enableAnalysis ) {
473  boost::add_vertex( DecisionHubProps( decisionHubName, m_nodeCounter, modeConcurrent, modePromptDecision, modeOR,
474  allPass, isInverted ),
475  m_PRGraph );
476  }
477 
478  ++m_nodeCounter;
479 
480  ON_VERBOSE verbose() << "DecisionNode '" << decisionHubName << "' added @ " << decisionHubNode << endmsg;
481  }
482 
484  auto itP = m_decisionNameToDecisionHubMap.find( parentName );
485  if ( itP != m_decisionNameToDecisionHubMap.end() ) {
486  auto parentNode = itP->second.get();
487  parentNode->addDaughterNode( decisionHubNode );
488  decisionHubNode->addParentNode( parentNode );
489 
490  // Mirror DecisionNode-to-DecisionNode relationship in the BGL-based graph
491  if ( m_enableAnalysis ) boost::add_edge( node( decisionHubName ), node( parentName ), m_PRGraph );
492 
493  ON_VERBOSE verbose() << "Attached DecisionNode '" << decisionHubName << "' to parent DecisionNode '" << parentName
494  << "'" << endmsg;
495  } else {
496  sc = StatusCode::FAILURE;
497  error() << "Parent DecisionNode '" << parentName << "' was not found" << endmsg;
498  }
499 
500  return sc;
501  }

◆ addEdgeToPrecTrace()

void concurrency::PrecedenceRulesGraph::addEdgeToPrecTrace ( const AlgorithmNode u,
const AlgorithmNode v 
)

set cause-effect connection between two algorithms in the precedence trace

Definition at line 721 of file PrecedenceRulesGraph.cpp.

721  {
722 
723  std::string u_name = u == nullptr ? "ENTRY" : u->name();
724  std::string v_name = v->name();
725 
727 
728  if ( !u ) {
729  auto itT = m_prec_trace_map.find( "ENTRY" );
730  if ( itT != m_prec_trace_map.end() ) {
731  source = itT->second;
732  } else {
733  source = boost::add_vertex( precedence::AlgoTraceProps( "ENTRY" ), m_precTrace );
734  m_prec_trace_map["ENTRY"] = source;
735  }
736  } else {
737  auto itS = m_prec_trace_map.find( u_name );
738  if ( itS != m_prec_trace_map.end() ) {
739  source = itS->second;
740  } else {
741 
742  source =
743  boost::add_vertex( precedence::AlgoTraceProps( u_name, u->getAlgoIndex(), u->getRank() ), m_precTrace );
744  m_prec_trace_map[u_name] = source;
745  }
746  }
747 
749 
750  auto itP = m_prec_trace_map.find( v_name );
751  if ( itP != m_prec_trace_map.end() ) {
752  target = itP->second;
753  } else {
754 
755  target = boost::add_vertex( precedence::AlgoTraceProps( v_name, v->getAlgoIndex(), v->getRank() ), m_precTrace );
756  m_prec_trace_map[v_name] = target;
757  }
758 
759  boost::add_edge( source, target, m_precTrace );
760 
761  ON_DEBUG debug() << u_name << "-->" << v_name << " precedence trait added" << endmsg;
762  }

◆ addHeadNode()

void concurrency::PrecedenceRulesGraph::addHeadNode ( const std::string headName,
concurrency::Concurrent  modeConcurrent,
concurrency::PromptDecision  modePromptDecision,
concurrency::ModeOr  modeOR,
concurrency::AllPass  allPass,
concurrency::Inverted  isInverted 
)

Add a node, which has no parents.

Definition at line 504 of file PrecedenceRulesGraph.cpp.

506  {
507 
508  auto itH = m_decisionNameToDecisionHubMap.find( headName );
509  if ( itH != m_decisionNameToDecisionHubMap.end() ) {
510  m_headNode = itH->second.get();
511  } else {
512  auto r = m_decisionNameToDecisionHubMap.emplace(
513  headName, std::make_unique<concurrency::DecisionNode>( *this, m_nodeCounter, headName, modeConcurrent,
514  modePromptDecision, modeOR, allPass, isInverted ) );
515  m_headNode = r.first->second.get();
516 
517  // Mirror the action above in the BGL-based graph
518  if ( m_enableAnalysis ) {
519  boost::add_vertex( DecisionHubProps( headName, m_nodeCounter, modeConcurrent, modePromptDecision, modeOR,
520  allPass, isInverted ),
521  m_PRGraph );
522  }
523 
524  ++m_nodeCounter;
525  }
526  }

◆ buildDataDependenciesRealm()

StatusCode concurrency::PrecedenceRulesGraph::buildDataDependenciesRealm ( )

Build data dependency realm WITH data object nodes participating.

Definition at line 318 of file PrecedenceRulesGraph.cpp.

318  {
319 
320  StatusCode global_sc = StatusCode::SUCCESS;
321 
322  // Production of DataNodes by AlgorithmNodes (DataNodes are created here)
323  std::vector<decltype( m_algoNameToAlgoNodeMap )::value_type*> sortedAlgs;
324  for ( auto& algo : m_algoNameToAlgoNodeMap ) { sortedAlgs.push_back( &algo ); }
325  std::sort( sortedAlgs.begin(), sortedAlgs.end(),
326  []( const auto* a, const auto* b ) { return a->first < b->first; } );
327  for ( auto* algo : sortedAlgs ) {
328 
329  auto& outputs = m_algoNameToAlgoOutputsMap[algo->first];
330  for ( auto output : outputs ) {
331  const auto sc = addDataNode( output );
332  if ( !sc.isSuccess() ) {
333  error() << "Extra producer (" << algo->first << ") for DataObject @ " << output
334  << " has been detected: this is not allowed." << endmsg;
335  global_sc = sc;
336  }
337  auto dataNode = getDataNode( output );
338  dataNode->addProducerNode( algo->second.get() );
339  algo->second->addOutputDataNode( dataNode );
340 
341  // Mirror the action above in the BGL-based graph
342  if ( m_enableAnalysis ) boost::add_edge( node( algo->second->name() ), node( output.fullKey() ), m_PRGraph );
343  }
344  }
345 
346  // Consumption of DataNodes by AlgorithmNodes
347  sortedAlgs.clear();
348  for ( auto& algo : m_algoNameToAlgoNodeMap ) { sortedAlgs.push_back( &algo ); }
349  std::sort( sortedAlgs.begin(), sortedAlgs.end(),
350  []( const auto* a, const auto* b ) { return a->first < b->first; } );
351  for ( auto* algo : sortedAlgs ) {
352 
353  for ( auto input : m_algoNameToAlgoInputsMap[algo->first] ) {
354 
355  auto itP = m_dataPathToDataNodeMap.find( input );
356 
357  DataNode* dataNode = ( itP != m_dataPathToDataNodeMap.end() ? getDataNode( input ) : nullptr );
358  if ( dataNode ) {
359  dataNode->addConsumerNode( algo->second.get() );
360  algo->second->addInputDataNode( dataNode );
361 
362  // Mirror the action above in the BGL-based graph
363  if ( m_enableAnalysis ) boost::add_edge( node( input.fullKey() ), node( algo->second->name() ), m_PRGraph );
364  }
365  }
366  }
367 
368  return global_sc;
369  }

◆ dumpControlFlow() [1/2]

std::string concurrency::PrecedenceRulesGraph::dumpControlFlow ( ) const

Print out control flow of Algorithms and Sequences.

Definition at line 560 of file PrecedenceRulesGraph.cpp.

560  {
561  std::ostringstream ost;
562  dumpControlFlow( ost, m_headNode, 0 );
563  return ost.str();
564  }

◆ dumpControlFlow() [2/2]

void concurrency::PrecedenceRulesGraph::dumpControlFlow ( std::ostringstream ost,
ControlFlowNode node,
const int &  indent 
) const

Definition at line 566 of file PrecedenceRulesGraph.cpp.

567  {
568  ost << std::string( indent * 2, ' ' );
569  DecisionNode* dn = dynamic_cast<DecisionNode*>( node );
570  AlgorithmNode* an = dynamic_cast<AlgorithmNode*>( node );
571  if ( dn != 0 ) {
572  if ( node != m_headNode ) {
573  ost << node->name() << " [Seq] ";
574  ost << ( ( dn->m_modeConcurrent ) ? " [Concurrent] " : " [Sequential] " );
575  ost << ( ( dn->m_modePromptDecision ) ? " [Prompt] " : "" );
576  ost << ( ( dn->m_modeOR ) ? " [OR] " : "" );
577  ost << ( ( dn->m_allPass ) ? " [PASS] " : "" );
578  ost << "\n";
579  }
580  for ( const auto& i : dn->getDaughters() ) dumpControlFlow( ost, i, indent + 1 );
581  } else if ( an != 0 ) {
582  ost << node->name() << " [Alg] ";
583  if ( an != 0 ) {
584  auto ar = an->getAlgorithm();
585  ost << " [n= " << ar->cardinality() << "]";
586  ost << ( ( !ar->isClonable() ) ? " [unclonable] " : "" );
587  }
588  ost << "\n";
589  }
590  }

◆ dumpDataFlow()

std::string concurrency::PrecedenceRulesGraph::dumpDataFlow ( ) const

Print out all data origins and destinations, as reflected in the EF graph.

Definition at line 593 of file PrecedenceRulesGraph.cpp.

593  {
594 
595  const char idt[] = " ";
596  std::ostringstream ost;
597 
598  ost << "\n" << idt << "====================================\n";
599  ost << idt << "Data origins and destinations:\n";
600  ost << idt << "====================================\n";
601 
603  vec.reserve( m_dataPathToDataNodeMap.size() );
604  for ( auto& pair : m_dataPathToDataNodeMap ) { vec.push_back( &pair.first ); }
605  std::sort( vec.begin(), vec.end(),
606  []( const DataObjID* a, const DataObjID* b ) { return a->fullKey() < b->fullKey(); } );
607 
608  for ( const DataObjID* id : vec ) {
609  const DataNode& node = *m_dataPathToDataNodeMap.find( *id )->second;
610 
611  for ( auto algoNode : node.getProducers() ) ost << idt << " " << algoNode->name() << "\n";
612 
613  ost << idt << " V\n";
614  ost << idt << " o " << id << "\n";
615  ost << idt << " V\n";
616 
617  for ( auto algoNode : node.getConsumers() ) ost << idt << " " << algoNode->name() << "\n";
618 
619  ost << idt << "====================================\n";
620  }
621 
622  return ost.str();
623  }

◆ dumpPrecRules()

void concurrency::PrecedenceRulesGraph::dumpPrecRules ( const boost::filesystem::path &  fileName,
const EventSlot slot 
)

dump to file the precedence rules

Definition at line 627 of file PrecedenceRulesGraph.cpp.

627  {
628  std::ofstream myfile;
629  myfile.open( fileName.c_str(), std::ios::app );
630 
631  // Declare properties to dump
632  boost::dynamic_properties dp;
633 
634  dp.property( "Entity",
635  boost::make_transform_value_property_map(
636  []( const VariantVertexProps& v ) {
637  return std::visit( []( const auto& w ) { return boost::lexical_cast<std::string>( w ); }, v );
638  },
639  boost::get( boost::vertex_bundle, m_PRGraph ) ) );
640 
641  auto add_prop = [&]( auto name, auto&& vis ) {
642  dp.property( name, boost::make_transform_value_property_map(
643  [vis = std::forward<decltype( vis )>( vis )]( const VariantVertexProps& v ) {
644  return std::visit( vis, v );
645  },
646  boost::get( boost::vertex_bundle, m_PRGraph ) ) );
647  };
648 
649  add_prop( "Name", precedence::VertexName() );
650  add_prop( "Mode", precedence::GroupMode() );
651  add_prop( "Logic", precedence::GroupLogic() );
652  add_prop( "Decision Negation", precedence::DecisionNegation() );
653  add_prop( "Negative Decision Inversion", precedence::AllPass() );
654  add_prop( "Exit Policy", precedence::GroupExit() );
655  add_prop( "Operations", precedence::Operations() );
656  add_prop( "CF Decision", precedence::CFDecision( slot ) );
657  add_prop( "State", precedence::EntityState( slot, serviceLocator(), m_conditionsRealmEnabled ) );
658  add_prop( "Start Time (Epoch ns)", precedence::StartTime( slot, serviceLocator() ) );
659  add_prop( "End Time (Epoch ns)", precedence::EndTime( slot, serviceLocator() ) );
660  add_prop( "Runtime (ns)", precedence::Duration( slot, serviceLocator() ) );
661 
662  boost::write_graphml( myfile, m_PRGraph, dp );
663 
664  myfile.close();
665  }

◆ dumpPrecTrace()

void concurrency::PrecedenceRulesGraph::dumpPrecTrace ( const boost::filesystem::path &  fileName,
const EventSlot slot 
)

dump to file the precedence trace

Definition at line 668 of file PrecedenceRulesGraph.cpp.

668  {
669  std::ofstream myfile;
670  myfile.open( fileName.c_str(), std::ios::app );
671 
672  // Fill runtimes (as this could not be done on the fly during trace assembling)
673  SmartIF<ITimelineSvc> timelineSvc = m_svcLocator->service<ITimelineSvc>( "TimelineSvc", false );
674  if ( !timelineSvc.isValid() ) {
675  warning() << "Failed to get the TimelineSvc, timing will not be added to "
676  << "the task precedence trace dump" << endmsg;
677  } else {
678 
679  std::vector<long long int> start_times;
680 
681  for ( auto vp = vertices( m_precTrace ); vp.first != vp.second; ++vp.first ) {
682  TimelineEvent te{};
683  te.algorithm = m_precTrace[*vp.first].m_name;
684  te.slot = slot.eventContext->slot();
685  te.event = slot.eventContext->evt();
686  timelineSvc->getTimelineEvent( te );
687 
688  long int runtime{ std::chrono::duration_cast<std::chrono::microseconds>( te.end - te.start ).count() };
689  m_precTrace[*vp.first].m_runtime = runtime;
690 
691  long long int start{
692  std::chrono::duration_cast<std::chrono::nanoseconds>( te.start.time_since_epoch() ).count() };
693  m_precTrace[*vp.first].m_start = start;
694  if ( start != 0 ) start_times.push_back( start );
695  }
696 
697  auto min = std::min_element( start_times.begin(), start_times.end() );
698 
699  for ( auto vp = vertices( m_precTrace ); vp.first != vp.second; ++vp.first ) {
700 
701  auto& oldValue = m_precTrace[*vp.first].m_start;
702 
703  if ( oldValue != 0 ) oldValue = oldValue - *min;
704  }
705  }
706 
707  // Declare properties to dump
708  boost::dynamic_properties dp;
709  using boost::get;
711  dp.property( "Name", get( &AlgoTraceProps::m_name, m_precTrace ) );
712  dp.property( "Rank", get( &AlgoTraceProps::m_rank, m_precTrace ) );
713  dp.property( "Run Time (us)", get( &AlgoTraceProps::m_runtime, m_precTrace ) );
714  dp.property( "Start Time (ns)", get( &AlgoTraceProps::m_start, m_precTrace ) );
715 
716  boost::write_graphml( myfile, m_precTrace, dp );
717 
718  myfile.close();
719  }

◆ enableAnalysis()

void concurrency::PrecedenceRulesGraph::enableAnalysis ( )
inline

BGL-based facilities.

Definition at line 671 of file PrecedenceRulesGraph.h.

671 { m_enableAnalysis = true; };

◆ getAlgorithmNode()

AlgorithmNode* concurrency::PrecedenceRulesGraph::getAlgorithmNode ( const std::string algoName) const
inline

Get the AlgorithmNode from by algorithm name using graph index.

Definition at line 649 of file PrecedenceRulesGraph.h.

649  {
650  return m_algoNameToAlgoNodeMap.at( algoName ).get();
651  }

◆ getControlFlowNodeCounter()

unsigned int concurrency::PrecedenceRulesGraph::getControlFlowNodeCounter ( ) const
inline

Get total number of control flow graph nodes.

Definition at line 657 of file PrecedenceRulesGraph.h.

657 { return m_nodeCounter; }

◆ getDataNode()

DataNode* concurrency::PrecedenceRulesGraph::getDataNode ( const DataObjID dataPath) const
inline

Get DataNode by DataObject path using graph index.

Definition at line 635 of file PrecedenceRulesGraph.h.

635 { return m_dataPathToDataNodeMap.at( dataPath ).get(); }

◆ getHeadNode()

DecisionNode* concurrency::PrecedenceRulesGraph::getHeadNode ( ) const
inline

Get head node.

Definition at line 645 of file PrecedenceRulesGraph.h.

645 { return m_headNode; };

◆ initialize()

StatusCode concurrency::PrecedenceRulesGraph::initialize ( )

Initialize graph.

Definition at line 220 of file PrecedenceRulesGraph.cpp.

220  {
221  if ( serviceLocator()->existsService( "CondSvc" ) ) {
222  SmartIF<ICondSvc> condSvc{ serviceLocator()->service( "CondSvc" ) };
223  if ( condSvc.isValid() ) {
224  info() << "CondSvc found. DF precedence rules will be augmented with 'Conditions'" << endmsg;
226  }
227  }
228 
229  // Detach condition algorithms from the CF realm
230  if ( m_conditionsRealmEnabled ) {
231  SmartIF<ICondSvc> condSvc{ serviceLocator()->service( "CondSvc", false ) };
232  auto& condAlgs = condSvc->condAlgs();
233  for ( const auto algo : condAlgs ) {
234  auto itA = m_algoNameToAlgoNodeMap.find( algo->name() );
235  if ( itA != m_algoNameToAlgoNodeMap.end() ) {
236  concurrency::AlgorithmNode* algoNode = itA->second.get();
237  debug() << "Detaching condition algorithm '" << algo->name() << "' from the CF realm.." << endmsg;
238  for ( auto parent : algoNode->getParentDecisionHubs() ) {
239  parent->m_children.erase( std::remove( parent->m_children.begin(), parent->m_children.end(), algoNode ),
240  parent->m_children.end() );
241  // clean up also auxiliary BGL-based graph of precedence rules
242  if ( m_enableAnalysis ) boost::remove_edge( node( algoNode->name() ), node( parent->name() ), m_PRGraph );
243  }
244  algoNode->m_parents.clear();
245 
246  } else {
247  warning() << "Algorithm '" << algo->name() << "' is not registered in the graph" << endmsg;
248  }
249  }
250  }
251 
253 
254  if ( !sc.isSuccess() ) error() << "Could not build the data dependency realm." << endmsg;
255 
256  return sc;
257  }

◆ name()

const std::string& concurrency::PrecedenceRulesGraph::name ( ) const
inlineoverride

Retrieve name of the service.

Definition at line 663 of file PrecedenceRulesGraph.h.

663 { return m_name; }

◆ node()

PRVertexDesc concurrency::PrecedenceRulesGraph::node ( const std::string name) const

Definition at line 529 of file PrecedenceRulesGraph.cpp.

529  {
530  auto vp = vertices( m_PRGraph );
531  auto i = std::find_if( vp.first, vp.second, [&]( const PRVertexDesc& v ) {
532  return std::visit( precedence::VertexName(), m_PRGraph[v] ) == name;
533  } );
534  return i != vp.second ? *i : PRVertexDesc{};
535  }

◆ printState()

void concurrency::PrecedenceRulesGraph::printState ( std::stringstream output,
EventSlot slot,
const unsigned int &  recursionLevel 
) const

Print a string representing the control flow state.

Definition at line 260 of file PrecedenceRulesGraph.cpp.

261  {
262  if ( slot.parentSlot ) {
263  // Start at sub-slot entry point
264  m_decisionNameToDecisionHubMap.at( slot.entryPoint )->printState( output, slot, recursionLevel );
265  } else {
266  // Start at the head node for whole-event slots
267  m_headNode->printState( output, slot, recursionLevel );
268  }
269 
270  // Find detached conditions algs in interesting states
271  if ( m_conditionsRealmEnabled ) {
272  bool firstPrint = true;
273  SmartIF<ICondSvc> condSvc{ serviceLocator()->service( "CondSvc", false ) };
274  auto& condAlgs = condSvc->condAlgs();
275  for ( const auto algo : condAlgs ) {
276  auto itA = m_algoNameToAlgoNodeMap.find( algo->name() );
277  if ( itA != m_algoNameToAlgoNodeMap.end() ) {
278 
279  concurrency::AlgorithmNode* algoNode = itA->second.get();
280 
281  // Ignore boring states (reduces verbosity)
282  auto& thisState = slot.algsStates[algoNode->getAlgoIndex()];
283  if ( thisState == AlgsExecutionStates::State::INITIAL ||
284  thisState == AlgsExecutionStates::State::EVTACCEPTED )
285  continue;
286 
287  // Make output
288  if ( firstPrint ) {
289  firstPrint = false;
290  output << std::endl << "Detached algorithms:" << std::endl;
291  }
292  algoNode->printState( output, slot, recursionLevel );
293  }
294  }
295  }
296  }

◆ rankAlgorithms()

void concurrency::PrecedenceRulesGraph::rankAlgorithms ( IGraphVisitor ranker) const

Rank Algorithm nodes by the number of data outputs.

Definition at line 550 of file PrecedenceRulesGraph.cpp.

550  {
551 
552  info() << "Starting ranking by data outputs .. " << endmsg;
553  for ( auto& pair : m_algoNameToAlgoNodeMap ) {
554  ON_DEBUG debug() << " Ranking " << pair.first << "... " << endmsg;
555  pair.second->accept( ranker );
556  ON_DEBUG debug() << " ... rank of " << pair.first << ": " << pair.second->getRank() << endmsg;
557  }
558  }

◆ registerIODataObjects()

void concurrency::PrecedenceRulesGraph::registerIODataObjects ( const Gaudi::Algorithm algo)

Register algorithm in the Data Dependency index.

Definition at line 299 of file PrecedenceRulesGraph.cpp.

299  {
300 
301  const std::string& algoName = algo->name();
302 
303  m_algoNameToAlgoInputsMap[algoName] = algo->inputDataObjs();
304  m_algoNameToAlgoOutputsMap[algoName] = algo->outputDataObjs();
305 
306  ON_VERBOSE {
307  verbose() << " Inputs of " << algoName << ": ";
308  for ( auto tag : algo->inputDataObjs() ) verbose() << tag << " | ";
309  verbose() << endmsg;
310 
311  verbose() << " Outputs of " << algoName << ": ";
312  for ( auto tag : algo->outputDataObjs() ) verbose() << tag << " | ";
313  verbose() << endmsg;
314  }
315  }

◆ serviceLocator()

SmartIF<ISvcLocator>& concurrency::PrecedenceRulesGraph::serviceLocator ( ) const
inlineoverride

Retrieve pointer to service locator.

Definition at line 665 of file PrecedenceRulesGraph.h.

665 { return m_svcLocator; }

Member Data Documentation

◆ m_algoCounter

unsigned int concurrency::PrecedenceRulesGraph::m_algoCounter = 0
private

Total number of algorithm nodes in the graph.

Definition at line 703 of file PrecedenceRulesGraph.h.

◆ m_algoNameToAlgoInputsMap

std::unordered_map<std::string, DataObjIDColl> concurrency::PrecedenceRulesGraph::m_algoNameToAlgoInputsMap
private

Indexes: maps of algorithm's name to algorithm's inputs/outputs.

Definition at line 697 of file PrecedenceRulesGraph.h.

◆ m_algoNameToAlgoNodeMap

std::unordered_map<std::string, std::unique_ptr<AlgorithmNode> > concurrency::PrecedenceRulesGraph::m_algoNameToAlgoNodeMap
private

Index: map of algorithm's name to AlgorithmNode.

Definition at line 691 of file PrecedenceRulesGraph.h.

◆ m_algoNameToAlgoOutputsMap

std::unordered_map<std::string, DataObjIDColl> concurrency::PrecedenceRulesGraph::m_algoNameToAlgoOutputsMap
private

Definition at line 698 of file PrecedenceRulesGraph.h.

◆ m_conditionsRealmEnabled

bool concurrency::PrecedenceRulesGraph::m_conditionsRealmEnabled { false }
private

Enable conditions realm of precedence rules.

Definition at line 717 of file PrecedenceRulesGraph.h.

◆ m_dataPathToDataNodeMap

std::unordered_map<DataObjID, std::unique_ptr<DataNode>, DataObjID_Hasher> concurrency::PrecedenceRulesGraph::m_dataPathToDataNodeMap
private

Index: map of data path to DataNode.

Definition at line 695 of file PrecedenceRulesGraph.h.

◆ m_decisionNameToDecisionHubMap

std::unordered_map<std::string, std::unique_ptr<DecisionNode> > concurrency::PrecedenceRulesGraph::m_decisionNameToDecisionHubMap
private

Index: map of decision's name to DecisionHub.

Definition at line 693 of file PrecedenceRulesGraph.h.

◆ m_enableAnalysis

bool concurrency::PrecedenceRulesGraph::m_enableAnalysis { false }
private

Definition at line 712 of file PrecedenceRulesGraph.h.

◆ m_headNode

DecisionNode* concurrency::PrecedenceRulesGraph::m_headNode = nullptr
private

the head node of the control flow graph

Definition at line 689 of file PrecedenceRulesGraph.h.

◆ m_name

const std::string concurrency::PrecedenceRulesGraph::m_name
private

Definition at line 707 of file PrecedenceRulesGraph.h.

◆ m_nodeCounter

unsigned int concurrency::PrecedenceRulesGraph::m_nodeCounter = 0
private

Total number of nodes in the graph.

Definition at line 701 of file PrecedenceRulesGraph.h.

◆ m_prec_trace_map

std::map<std::string, precedence::AlgoTraceVertex> concurrency::PrecedenceRulesGraph::m_prec_trace_map
private

Definition at line 711 of file PrecedenceRulesGraph.h.

◆ m_precTrace

precedence::PrecTrace concurrency::PrecedenceRulesGraph::m_precTrace
private

facilities for algorithm precedence tracing

Definition at line 710 of file PrecedenceRulesGraph.h.

◆ m_PRGraph

precedence::PRGraph concurrency::PrecedenceRulesGraph::m_PRGraph
private

BGL-based graph of precedence rules.

Definition at line 714 of file PrecedenceRulesGraph.h.

◆ m_svcLocator

SmartIF<ISvcLocator> concurrency::PrecedenceRulesGraph::m_svcLocator
mutableprivate

Service locator (needed to access the MessageSvc)

Definition at line 706 of file PrecedenceRulesGraph.h.


The documentation for this class was generated from the following files:
EventSlot::eventContext
std::unique_ptr< EventContext > eventContext
Cache for the eventContext.
Definition: EventSlot.h:83
concurrency::AlgorithmNode::m_parents
std::vector< DecisionNode * > m_parents
Control flow parents of an AlgorithmNode (DecisionNodes)
Definition: PrecedenceRulesGraph.h:530
ConditionsStallTest.condSvc
condSvc
Definition: ConditionsStallTest.py:77
std::string
STL class.
concurrency::PrecedenceRulesGraph::addDataNode
StatusCode addDataNode(const DataObjID &dataPath)
Add DataNode that represents DataObject.
Definition: PrecedenceRulesGraph.cpp:421
std::move
T move(T... args)
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:528
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:314
std::vector::reserve
T reserve(T... args)
std::vector
STL class.
std::map::find
T find(T... args)
concurrency::PrecedenceRulesGraph::m_name
const std::string m_name
Definition: PrecedenceRulesGraph.h:707
fmt::runtime
const T & runtime(const T &v)
Definition: MessageSvcSink.cpp:28
GaudiPartProp.decorators.get
get
decorate the vector of properties
Definition: decorators.py:283
concurrency::ControlFlowNode::name
const std::string & name() const
Get node name.
Definition: PrecedenceRulesGraph.h:427
precedence::StartTime
Definition: PrecedenceRulesGraph.h:256
concurrency::PrecedenceRulesGraph::m_decisionNameToDecisionHubMap
std::unordered_map< std::string, std::unique_ptr< DecisionNode > > m_decisionNameToDecisionHubMap
Index: map of decision's name to DecisionHub.
Definition: PrecedenceRulesGraph.h:693
std::unique_ptr::get
T get(T... args)
concurrency::PrecedenceRulesGraph::m_enableAnalysis
bool m_enableAnalysis
Definition: PrecedenceRulesGraph.h:712
ON_DEBUG
#define ON_DEBUG
Definition: PrecedenceRulesGraph.cpp:20
precedence::Duration
Definition: PrecedenceRulesGraph.h:335
precedence::Operations
Definition: PrecedenceRulesGraph.h:373
precedence::EndTime
Definition: PrecedenceRulesGraph.h:296
concurrency::DecisionNode::addParentNode
void addParentNode(DecisionNode *node)
Add a parent node.
Definition: PrecedenceRulesGraph.cpp:41
gaudirun.output
output
Definition: gaudirun.py:521
concurrency::AlgorithmNode::getParentDecisionHubs
const std::vector< DecisionNode * > & getParentDecisionHubs() const
Get all parent decision hubs.
Definition: PrecedenceRulesGraph.h:499
IOTest.start
start
Definition: IOTest.py:110
std::sort
T sort(T... args)
concurrency::AlgorithmNode::printState
void printState(std::stringstream &output, EventSlot &slot, const unsigned int &recursionLevel) const override
Print a string representing the control flow state.
Definition: PrecedenceRulesGraph.cpp:77
precedence::AlgoTraceVertex
boost::graph_traits< PrecTrace >::vertex_descriptor AlgoTraceVertex
Definition: PrecedenceRulesGraph.h:63
concurrency::AlgorithmNode::getAlgoIndex
unsigned int getAlgoIndex() const
Get algorithm index.
Definition: PrecedenceRulesGraph.h:518
concurrency::AlgorithmNode
Definition: PrecedenceRulesGraph.h:482
precedence::CFDecision
Definition: PrecedenceRulesGraph.h:179
EventSlot::entryPoint
std::string entryPoint
Event Views bookkeeping (TODO: optimize view bookkeeping)
Definition: EventSlot.h:94
std::vector::push_back
T push_back(T... args)
concurrency::PrecedenceRulesGraph::m_headNode
DecisionNode * m_headNode
the head node of the control flow graph
Definition: PrecedenceRulesGraph.h:689
TimelineEvent
Definition: ITimelineSvc.h:23
concurrency::DecisionNode::printState
void printState(std::stringstream &output, EventSlot &slot, const unsigned int &recursionLevel) const override
Print a string representing the control flow state.
Definition: PrecedenceRulesGraph.cpp:53
compareOutputFiles.target
target
Definition: compareOutputFiles.py:489
precedence::VariantVertexProps
std::variant< AlgoProps, DecisionHubProps, DataProps, CondDataProps > VariantVertexProps
Definition: PrecedenceRulesGraph.h:388
SmartIF::isValid
bool isValid() const
Allow for check if smart pointer is valid.
Definition: SmartIF.h:72
CommonMessaging< IPrecedenceRulesGraph >::setUpMessaging
MSG::Level setUpMessaging() const
Set up local caches.
Definition: CommonMessaging.h:174
StatusCode
Definition: StatusCode.h:65
ITimelineSvc
Definition: ITimelineSvc.h:37
concurrency::PrecedenceRulesGraph::m_dataPathToDataNodeMap
std::unordered_map< DataObjID, std::unique_ptr< DataNode >, DataObjID_Hasher > m_dataPathToDataNodeMap
Index: map of data path to DataNode.
Definition: PrecedenceRulesGraph.h:695
EventSlot::parentSlot
EventSlot * parentSlot
Pointer to parent slot (null for top level)
Definition: EventSlot.h:96
std::forward
T forward(T... args)
std::ofstream
STL class.
std::min_element
T min_element(T... args)
EventContext::slot
ContextID_t slot() const
Definition: EventContext.h:51
precedence::GroupMode
Definition: PrecedenceRulesGraph.h:133
concurrency::PrecedenceRulesGraph::name
const std::string & name() const override
Retrieve name of the service.
Definition: PrecedenceRulesGraph.h:663
concurrency::PrecedenceRulesGraph::m_prec_trace_map
std::map< std::string, precedence::AlgoTraceVertex > m_prec_trace_map
Definition: PrecedenceRulesGraph.h:711
concurrency::PrecedenceRulesGraph::m_nodeCounter
unsigned int m_nodeCounter
Total number of nodes in the graph.
Definition: PrecedenceRulesGraph.h:701
event_timeout_check.app
app
Definition: event_timeout_check.py:41
concurrency::PrecedenceRulesGraph::getDataNode
DataNode * getDataNode(const DataObjID &dataPath) const
Get DataNode by DataObject path using graph index.
Definition: PrecedenceRulesGraph.h:635
std::ofstream::close
T close(T... args)
GaudiPython.Bindings.nullptr
nullptr
Definition: Bindings.py:87
precedence::DecisionNegation
Definition: PrecedenceRulesGraph.h:161
std::ofstream::open
T open(T... args)
SmartIF< ICondSvc >
precedence::VertexName
Definition: PrecedenceRulesGraph.h:125
genconfuser.verbose
verbose
Definition: genconfuser.py:28
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
std::remove
T remove(T... args)
min
EventIDBase min(const EventIDBase &lhs, const EventIDBase &rhs)
Definition: EventIDBase.h:212
concurrency::PrecedenceRulesGraph::dumpControlFlow
std::string dumpControlFlow() const
Print out control flow of Algorithms and Sequences.
Definition: PrecedenceRulesGraph.cpp:560
precedence::AlgoTraceProps
Definition: PrecedenceRulesGraph.h:49
concurrency::PrecedenceRulesGraph::m_algoNameToAlgoNodeMap
std::unordered_map< std::string, std::unique_ptr< AlgorithmNode > > m_algoNameToAlgoNodeMap
Index: map of algorithm's name to AlgorithmNode.
Definition: PrecedenceRulesGraph.h:691
concurrency::PrecedenceRulesGraph::m_algoCounter
unsigned int m_algoCounter
Total number of algorithm nodes in the graph.
Definition: PrecedenceRulesGraph.h:703
DataObjID
Definition: DataObjID.h:47
concurrency::PrecedenceRulesGraph::m_conditionsRealmEnabled
bool m_conditionsRealmEnabled
Enable conditions realm of precedence rules.
Definition: PrecedenceRulesGraph.h:717
concurrency::DecisionNode
Definition: PrecedenceRulesGraph.h:437
concurrency::PrecedenceRulesGraph::m_precTrace
precedence::PrecTrace m_precTrace
facilities for algorithm precedence tracing
Definition: PrecedenceRulesGraph.h:710
std::ostringstream
STL class.
concurrency::PrecedenceRulesGraph::m_algoNameToAlgoInputsMap
std::unordered_map< std::string, DataObjIDColl > m_algoNameToAlgoInputsMap
Indexes: maps of algorithm's name to algorithm's inputs/outputs.
Definition: PrecedenceRulesGraph.h:697
concurrency::PrecedenceRulesGraph::m_PRGraph
precedence::PRGraph m_PRGraph
BGL-based graph of precedence rules.
Definition: PrecedenceRulesGraph.h:714
concurrency::PrecedenceRulesGraph::registerIODataObjects
void registerIODataObjects(const Gaudi::Algorithm *algo)
Register algorithm in the Data Dependency index.
Definition: PrecedenceRulesGraph.cpp:299
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
std::endl
T endl(T... args)
DataHandleHolderBase::outputDataObjs
const DataObjIDColl & outputDataObjs() const override
Definition: DataHandleHolderBase.h:84
precedence::GroupLogic
Definition: PrecedenceRulesGraph.h:143
std::vector::begin
T begin(T... args)
concurrency::PrecedenceRulesGraph::m_algoNameToAlgoOutputsMap
std::unordered_map< std::string, DataObjIDColl > m_algoNameToAlgoOutputsMap
Definition: PrecedenceRulesGraph.h:698
TimelineEvent::algorithm
std::string algorithm
Definition: ITimelineSvc.h:31
ON_VERBOSE
#define ON_VERBOSE
Definition: PrecedenceRulesGraph.cpp:21
concurrency::PrecedenceRulesGraph::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition: PrecedenceRulesGraph.h:665
Properties.v
v
Definition: Properties.py:122
std::ostringstream::str
T str(T... args)
DataHandleHolderBase::inputDataObjs
const DataObjIDColl & inputDataObjs() const override
Definition: DataHandleHolderBase.h:83
precedence::EntityState
Definition: PrecedenceRulesGraph.h:195
std::map::end
T end(T... args)
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
precedence::AllPass
Definition: PrecedenceRulesGraph.h:171
concurrency::PrecedenceRulesGraph::buildDataDependenciesRealm
StatusCode buildDataDependenciesRealm()
Build data dependency realm WITH data object nodes participating.
Definition: PrecedenceRulesGraph.cpp:318
concurrency::PrecedenceRulesGraph::node
PRVertexDesc node(const std::string &) const
Definition: PrecedenceRulesGraph.cpp:529
precedence::GroupExit
Definition: PrecedenceRulesGraph.h:151
concurrency::PrecedenceRulesGraph::m_svcLocator
SmartIF< ISvcLocator > m_svcLocator
Service locator (needed to access the MessageSvc)
Definition: PrecedenceRulesGraph.h:706
std::unique_ptr< concurrency::DataNode >
EventSlot::algsStates
AlgsExecutionStates algsStates
Vector of algorithms states.
Definition: EventSlot.h:85
EventContext::evt
ContextEvt_t evt() const
Definition: EventContext.h:50
precedence::PRVertexDesc
boost::graph_traits< PRGraph >::vertex_descriptor PRVertexDesc
Definition: PrecedenceRulesGraph.h:390
concurrency::AlgorithmNode::addParentNode
void addParentNode(DecisionNode *node)
Add a parent node.
Definition: PrecedenceRulesGraph.cpp:202