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
209 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
209 Views
Filter A -- Filter BorC -- Filter D
just entroduce one bool variable to choose B or C in the filter BorC
Denis_Bolshakov1
Beginner
209 Views
I will have up to 255 different filters on the second stage with different performance, and those filters should work simultaneously
Ilnar
Beginner
209 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.
Nav
New Contributor I
209 Views
Sorry...posted a comment and tried to delete it but there was no delete option.
Alexey-Kukanov
Employee
208 Views
Have a look at tbb::graph preview feature in the latest update.
Reply