Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Saving and loading a graph's state?

nyue
Novice
156 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
138 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.

 

NoorjahanSk_Intel
Moderator
108 Views

Hi,


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


Thanks & Regards,

Noorjahan.


NoorjahanSk_Intel
Moderator
77 Views

Hi,


I have not heard back from you, so I will close this inquiry now. If you need further assistance, please post a new question.


Thanks & Regards,

Noorjahan.


Reply