What is the difference between concurrent_hash_map and concurrent_unordered_map?
Lingua Inglese What is the difference between concurrent_hash_map and concurrent_unordered_map?
View ArticleConcurrent set in TBB?
Lingua Inglese Is there a concurrent_set in TBB which is equivalent to std::set http://www.cplusplus.com/reference/set/set/? I need concurrent write to the set also concurrent read? std::set supports...
View Articleparallel_pipeline implementation
Lingua Inglese hi ,i am implementing parallel_pipeline function in one code and sometimes according to my condition pipeline stops but sometimes it doesn't . i am unable to find the reason .Please help...
View Articlestall in parallel_for
Lingua Inglese Hello,I am using TBB 4.1 update 3 (Linux) on a workstation with 4 Intel Xeon sockets (X7560, total 32 cores, 64 threads, using Intel compiler 12.0.4) and testing with 4 MPI...
View ArticleSpinning
Lingua Inglese Although this is directly related to "Additions to atomic" I decided to spin it off into a thread of its own (please forgive the word play).
View Article! area_in_need() spinlocking and hogging 100% CPU
Lingua Inglese I have a process running 100% on 24 cores! Dumping the process reveals 23 TBB threads are spinlocking within area_in_need! arena* arena_in_need () { spin_mutex::scoped_lock...
View Articleassigning a priority to a task/algorithm
Lingua Inglese Hi, I was wondering how this could be done: We have different parts of the software that have different priorities. For instance lets imagine we have a user thread and a low-level...
View Article__TBB_ASSERT( my_global_top_priority >= a.my_top_priority, NULL );
Lingua Inglese __TBB_ASSERT( my_global_top_priority >= a.my_top_priority, NULL ); I get this assert when doing a parallel_for: tbb::task_group_context context(tbb::task_group_context::isolated);...
View ArticleHow am I supposed to test Parallel amplifier?
Lingua Inglese Am I the only one having issue with this software? I ran a "test", 2 minutes of our software monitoring "lock and waits".. It produced an output of about 50 MB.. Now, I'm waiting for the...
View Articleexception handling and coredumps
Lingua Inglese Hi, I was wondering if there is a good way to catch exceptions and generate a coredump from within TBB threads.. We need to be able to have corecump at the exact point of the exception...
View ArticleTBB 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