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

No linear pipeline

Denis_Bolshakov1
Beginner
496 Views
Hello TBB team and experts,

I am developing a stream application that will be able to process input stream data from few channels,

I know that pipeline allows to develop such applications by efficient way, but I could not find a solution to resolve my issue.

Could you tell me how can I organize pipeline that presented on attached image.

Pipeline
0 Kudos
5 Replies
Ilnar
Beginner
496 Views
Filter A -- Filter BorC -- Filter D
just entroduce one bool variable to choose B or C in the filter BorC
0 Kudos
Denis_Bolshakov1
Beginner
496 Views
I will have up to 255 different filters on the second stage with different performance, and those filters should work simultaneously
0 Kudos
Ilnar
Beginner
496 Views
ok, try the another way:
filter A -- filter B -- filter C -- filter D
and specifya filter for the second stage (B, C, ...), filters not equal to specified one will done immediately.
filters of the second stage could be added as parallel or serial_out_of_order; first and last ones are up to you,thethread_bound_filter could be used.
0 Kudos
Nav
New Contributor I
496 Views
Sorry...posted a comment and tried to delete it but there was no delete option.
0 Kudos
Alexey-Kukanov
Employee
495 Views
Have a look at tbb::graph preview feature in the latest update.
0 Kudos
Reply