Questions tagged [tbb]

Intel Threading Building Blocks (also known as TBB) is an open-source portable C++ template library for writing software programs that take advantage of multi-core processors.

From Wikipedia:

Intel Threading Building Blocks (also known as TBB) is a C++ template library developed by Intel Corporation for writing software programs that take advantage of multi-core processors. The library consists of data structures and algorithms that allow a programmer to avoid some complications arising from the use of native threading packages such as POSIX threads, Windows threads, or the portable Boost Threads in which individual threads of execution are created, synchronized, and terminated manually.

Instead the library abstracts access to the multiple processors by allowing the operations to be treated as "tasks", which are allocated to individual cores dynamically.

Threading Building Blocks Homepage

Intel® Threading Building Blocks Tutorial

770 questions
0
votes
1 answer

TBB: initialize concurrent_hash_map

I am trying to initialize a 2D concurrent_hash_map, a container available in the Intel TBB library. Compilation passes and there is no error at runtime. However, not all initialized values are available in the container leading to incorrect…
Logan
  • 161
  • 2
  • 10
0
votes
1 answer

tbb worker model

Suppose there are some worker objects which contains some internal resource such as socket. Those worker objects are created at the program startup and destroyed at program exit. The main thread will pass an object ID to one of the worker object.…
Michael D
  • 1,449
  • 5
  • 18
  • 31
0
votes
1 answer

Running TBB code on windows 7 using code blocks

i have installed TBB setup for windows 7 and want to execute code in it.i don't have visual studio setup and i have code blocks IDE. i want to execute my TBB code in it.Pls Help to configure Code Blocks. I have done Linker settings i.e i have…
Jasdeep Singh Arora
  • 543
  • 2
  • 11
  • 31
0
votes
1 answer

How to terminate and stop the task in TBB?

I am facing one issue in which i have two tasks running, one is parent task and one is child task and child task is running one infinite loop and in which some condition is satisfied i want to terminate the child execution manually . How i can do in…
Amit
  • 33
  • 2
0
votes
1 answer

TBB parallel_for with less number of threads

I have written a multi-view face detection code using opencv face detector. I am running five detectors (trained for different pose angles) over an image and taking their weights to detect faces in an image. I have made the code parallel using TBB…
uiqbal
  • 111
  • 2
0
votes
1 answer

Undefined symbol "tbb internal Allocate" when loading shared library

some people using my shared library have problems loading it. I already told them to install "gcc-libs" as stated here. I also told them to compile the shared library themselves, but without luck. Are there other solutions to this problem? This is a…
user1182183
0
votes
1 answer

levenshtein algorithm parallel

I've implemented the algorithm using parallel_for. But mostly I use synchronized sections, so I have no profit. Maybe there is a better option? tbb::parallel_for (tbb::blocked_range(1, m * n), apply_transform(d, j, this, m, n)); void…
Alex A. Renoire
  • 361
  • 1
  • 2
  • 19
0
votes
3 answers

Higher core load Intel TBB

I am using Intel TBB parallel_for to speed up a for loop doing some calculations: tbb::parallel_for(tbb::blocked_range(0,ListSize,1000),Calc); Calc is an object of the class doCalc class DoCalc { vectorFileList; public: void…
marc
  • 205
  • 5
  • 11
0
votes
1 answer

QtCreator and TBB under Windows

I have compiled TBB from source using Mingw following the comment #5 in this post: http://software.intel.com/en-us/forums/topic/291331. That went ok. When I try to use the new TBB library in a QtCreator project, I end with this errors (ignore the…
Adri C.S.
  • 2,909
  • 5
  • 36
  • 63
0
votes
1 answer

Intel TBB tasks for serving network connections - good model?

I'm developing a backend for a networking product, that serves a dozen of clients (N = 10-100). Each connection requires 2 periodic tasks, the heartbeat, and downloading of telemetry via SSH, each at H Hz. There are also extra events of different…
Tosha
  • 998
  • 1
  • 10
  • 22
0
votes
1 answer

tbb - concurrent_vector address to memory?

I'm trying to get a reference to the memory of a concurrent_vector in TBB (Threaded Building Blocks) in a way similar to std::vector. So an std::vector would be accessed like: &stdVector[0]. But the equivalent for a concurrent_vector doesn't work:…
user1043761
  • 696
  • 6
  • 22
0
votes
1 answer

tbb GettingStarted example is not compiling

I have sources the tbbvars.csh file. I have opened the example directory as I was guided (/GettingStarted/sub_string_finder), and run make. Unfortunately I got the following error: sub_string_finder.cpp:32:30: error: tbb/parallel_for.h: No such file…
0
votes
1 answer

Creating a thread in via TBB library

I have a code like this: #include #include #include bool MyThread(int something) { std::cout << "This is a thread function\n" << std::endl; for (int i = 0; i < 10000; i++) …
Nabijon
  • 821
  • 2
  • 13
  • 17
0
votes
1 answer

Visual C++ express 2010 The procedure entry point ??1task_group_context@tbb@@QAE@XZ could not be located in the dynamic link library tbb.dll

Can someone help me out with this error? I tried researching on the internet and tried the different methods to resolve the problem (eg: uninstalling other versions of visual c++, adding codes, etc), but none of them seem to work :( What I have…
B.rabbit
  • 69
  • 1
  • 11
0
votes
1 answer

tbb.dll is missing from your computer

I have followed every step in this video. Basically added all additional dependencies to Visual Studio 2010. Added tbb.lib to linker input options too. The program builds but it does not run. I get System Error : "The program can't start because…
Shishir Pandey
  • 832
  • 1
  • 12
  • 23