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

flow_graph default arguments handling ?

nyue
Novice
399 Views

I am create a node with 3 distinct inputs (of different data types), two of the inputs are optional in which case I will provide default value.

 

What is the correct way for handling default arguments in flow_graph's node ?

 

Kind regards

 

0 Kudos
3 Replies
NoorjahanSk_Intel
Moderator
364 Views

Hi,


Thanks for posting in intel communities.


You can use join_node with distinct inputs for each port. You can create edges for these ports based on your use case.


Please refer to the below links for more details:

https://spec.oneapi.io/versions/latest/elements/oneTBB/source/flow_graph/join_node_cls.html

https://spec.oneapi.io/versions/latest/elements/oneTBB/source/flow_graph/join_node_policies.html



Thanks & Regards,

Noorjahan.


0 Kudos
NoorjahanSk_Intel
Moderator
341 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
321 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.


0 Kudos
Reply