TBB and fibres
Is it possible to combine Intel TBB and fibres (lightweight, cooperatively scheduler threads) that use e.g., ucontext.h (getcontext, setcontext and swapcontext) ?My situation: a running task A makes a...
View ArticleHelp required in parallel_for loop
Hi ,I am new to TBB and working on parallelizing my existing code.I could easilt paralleize with OpenMP but we need to check the performance of our code in Both TBB and OpenMP after parallelization...
View ArticlePipeline filter: Style
Dear all,I have a simple pipeline that should be constructed invoking some class methods. This is done because I'm using those methods serially for debugging purposes, but the style I'm using is...
View ArticleSerial vs Parallel with hashmap & pipeline: discrepancy
Dear all,I'm porting another simple I/O intensive piece of code to TBB, but my two versions differ hugely in their results. The serial version uses a unordered_map of strings to ints, and the parallel...
View ArticlePerformance 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...
View ArticleStarting a pipeline with thread_bound_filter
Hello, I am trying to parallelize an algorithm that accepts a callback and looks like this:class Object; class MyCallback { public: virtual void NotifyAboutCompletion (Object* o) = 0; }; void Foo...
View ArticleExecution Time variations
Hello,I am a naive user. Recently I have been studying regarding Threading Building Blocks. I tried executing the Fibonacci program and the results were obtained in milliseconds. When I execute the...
View Articlepipeline never terminates
Hi,We have a problem here that is very very rare but problematic enough to raise some questions. When this happens, the pipeline never finishes but is not executing anything either.Here is the boiled...
View ArticleHow to run task in the main thread while the execution of parallel_while?
Hi,In the main thread, we start to run parallel tasks with tbb::parallel_while. Now we have a requirement to create one separate new task and run it in the main thread during the execution of...
View Articlecan concurrent_bounded_queue deadlock if producer and consumer have different...
I am debugging an issue in my code where I have a concurrent_bounded_queue two producers threads and one consumer thread. The consumer has default thread priority and the producers have low thread...
View Article