Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2421 Discussions

Question about Using Parallel Methods in a Serial Pipeline Filter

timminn
Beginner
127 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_K_Intel3
Employee
127 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.

Reply