vendredi 26 février 2016

Dynamic structure of TBB flow graph

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:

On this basis, I have two questions:

  • why not using a solution based on make_edge and remove_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