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

Question about Using Parallel Methods in a Serial Pipeline Filter

timminn
Beginner
233 Views

If a pipeline filterpasses trueas the serial parameterin its constructor, then the number of concurrent tokens to processed in the filter is limited to be one.

But does this serial flag has any limits if we are trying to use the parallel_for, parallel_while, or self-defined parallel task in the overrided operator() method??

0 Kudos
1 Reply
Alexey-Kukanov
Employee
233 Views

No it does not; pipeline is agnostic to how tokens are processed by filters, and if parallelism is possible there, it makes perfect sense to use it and increase throughput of the serial filter.

0 Kudos
Reply