I want to have a dynamical structure in a tbb flow graph: depending on the node internal computation, I want to run or not the children of the node.
I have identified several ways to do so, based on previously answered questions:
- TBB flow graph conditional execution
- how to abort execution of a node and its children in tbb flowgraph
On this basis, I have two questions:
- why not using a solution based on
make_edge
andremove_edge
? According to Intel's documentation we can manipulate edges at runtime. I would say that the main con is that a node have to know about other nodes/the graph itself, which does not look appealing to me. - what is the best practice considering all the possibilities? (I would intuitively go for the solution based on
multifunction_nodes
, but cannot argument thoroughly in this way).
Aucun commentaire:
Enregistrer un commentaire