Question about Using Parallel Methods in a Serial Pipeline Filter

Question about Using Parallel Methods in a Serial Pipeline Filter

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??

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today