Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Saving and loading a graph's state?

nyue
Novice
648 Views

Hi,

 

Give a graph

tbb::flow::graph g

 

I wish to save out the state to disk and load it back.

 

  • What options/approaches are available for TBB's flow graph ?
  • Do we write our own or is there already something available ?
  • Are the methods to traverse a graph ?
  • Are there iterator that one can use to iterate through all the nodes ? What about edges ?

 

Cheers

 

0 Kudos
3 Replies
NoorjahanSk_Intel
Moderator
630 Views

Hi,

 

Thanks for posting in intel communities.

 

You can use Flow Graph Analyzer (FGA) to create or extract the information of the Flow graph. This package is part of Intel Advisor.

Please refer to the below link for more details:

https://www.intel.com/content/www/us/en/develop/documentation/advisor-user-guide/top/design-and-analyze-flow-graphs/launching-the-flow-graph-analyzer.html

 

The basic approach for creating a Flow graph is we create nodes and make edges between them. First, a graph object, g, is constructed. Next, we construct the nodes that represent the computations in our data flow graph and then we create edges between these nodes.

 

You can refer to available Nodes provided by OneTBB to create your own Flow Graph.

Please refer to the below link for more details:

https://spec.oneapi.io/versions/latest/elements/oneTBB/source/flow_graph.html#functional-nodes

 

You can traverse through a graph using edges between the nodes. Edges represent the dependencies or communication channels between nodes. You can iterate each node using generic parallel algorithms and use edges to communicate between all nodes.

 

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
NoorjahanSk_Intel
Moderator
600 Views

Hi,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Noorjahan.


0 Kudos
NoorjahanSk_Intel
Moderator
569 Views

Hi,

 

We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
Reply