Intel® Threading Building Blocks

How to refactor ipp_resize_mt example to a flow graph?


I'm new to flow graphs. I like the idea behind it but I already broke up in refactoring a resize filter to be a node of a flow graph. Could you please give me some hints?

Next I also want to use the flow graph to build a histogram on each tile and at after the last tile was processed calculate the final histogram. So how do I detect the last tile?

Thanks in advance

Performance of Parallel Pipeline - How to Improve?

Hello there!

I've parallelized a list chasing toy benchmark using TBB parallel_pipeline and got a surprising result. The program was parallelized using a pipeline of two stages where both stages does the same computation, furthermore the communication between the stages is just a pointer and the second stage is parallel.

error #137: expression must be a modifiable lvalue


I have "expression must be a modifiable lvalue" error in compile time. I've tried to compile both icpc and g++ but nothing changed. I'm trying to learn TBB and try to write findMinFloat "finding mininmum element of float array" with parallel_reduce.  My code block is at the below. I have the error while overloading operator() but I do not have while writing a regular function such as foo(). What can be my problem ? 

capping the number of threads used by tbb::flow::graph

Is it possible to impose a maximum on the number of threads spun up by tbb as the graph is generated and edges are made?

Right now, tbb creates a number of threads equal to task_scheduler_init::default_num_threads(), pretty much regardless of the complexity of my graph. Setting max_threads via tbb::task_scheduler_init() appears to have no effect on the number of threads started.

question about task scheduler

hi guys, i'm a newbie of TBB, and i'm intrested in a question, that is, how the task scheduler and the algorithms, such as parallel_for, parallel_invoke, parallel_reduce etc, work together? I mean, the task scheduler must be the heart of TBB runtime, and then, for different algorithms, the scheduler is designed well to suit them, so what's the key points of scheduler's desgin, and how does the scheduler suits these algorithms?

S’abonner à Intel® Threading Building Blocks