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
13
votes
2 answers

Main differences between threading with shared memory and MPI?

although I have been playing with pthreads, OpenMP, intel TBB, and threading in general for a while I still don't understand what is the main difference between a message passing interface implementation like OpenMP and a classic threading library…
user2485710
  • 9,451
  • 13
  • 58
  • 102
13
votes
1 answer

Check if OpenCV is compiled with TBB

How can I check if the OpenCV libraries installed on my Linux machine are compiled against TBB libraries or not?
Xyand
  • 4,470
  • 4
  • 36
  • 63
12
votes
3 answers

Intel TBB will work on AMD processors?

Possible Duplicate: AMD multi-core programming Is Intel TBB processor dependent? Will it work on amd or on ARM (under meeGo for example?)
Rella
  • 65,003
  • 109
  • 363
  • 636
12
votes
2 answers

How do you install Intel TBB on OS X?

How do you properly install the open source version of Intel Thread Building Blocks (TBB) on OS X 10.6? The open source version doesn't seem to have a proper install script. http://www.threadingbuildingblocks.org/ver.php?fid=154
Chad Brewbaker
  • 2,523
  • 2
  • 19
  • 26
12
votes
1 answer

Multithreading in LLVM

I need to generate LLVM code that will serve a lot of threads/tasks (hundreds of thousands). These threads should be lightweight like Intel TBB's tasks, golang gorutines or other. Of course they can be implemented with external C++ libraries like…
Wojciech Danilo
  • 11,573
  • 17
  • 66
  • 132
11
votes
7 answers

How do I build OpenCV with TBB?

I'm trying and failing to make opencv_traincascade use multiple threads. The only documentation I can find says to "build OpenCV with TBB". I'm not sure if I'm failing to successfully build OpenCV with TBB, or whether there's some flag I need to set…
theotherphil
  • 667
  • 2
  • 10
  • 16
11
votes
2 answers

How do i write tasks? (parallel code)

I am impressed with intel thread building blocks. I like how i should write task and not thread code and i like how it works under the hood with my limited understanding (task are in a pool, there wont be 100 threads on 4cores, a task is not…
user34537
10
votes
2 answers

Intel TBB for Android and iOS

Just wondering if there are any multi-threading libraries for Android and iOS. Also, any hack for Intel's TBB to making it run on Android and iOS??
Swaroop
  • 141
  • 1
  • 6
10
votes
5 answers

Using multiple cores to process large, sequential file in c++

I have a large file (bigger then RAM, can't read whole at once) and i need to process it row by row (in c++). I want to utilize multiple cores, preferably with Intel TBB or Microsoft PPL. I would rather avoid preprocessing this file (like splitting…
Piotr
  • 833
  • 5
  • 12
9
votes
1 answer

TBB Concurrent Hash map

I am implementing tbb's concurrent hash map to compare the performance of it against a suite of other concurrent hash tables. However the performance I get out of it is horrendous, I just can't believe it is that slow compared to other concurrent…
Steven Feldman
  • 833
  • 1
  • 15
  • 28
9
votes
2 answers

Using C++11 thread_local with other parallel libraries

I have a simple question, can C++11 thread_local be used with other parallel models. For example, can I use it within a function while using OpenMP or Intel TBB to parallel the tasks. Most such parallel programming models hide hardware threads…
Yan Zhou
  • 2,709
  • 2
  • 22
  • 37
8
votes
5 answers

Homegrown workqueue vs Intel TBB

We are considering which parallel framework for C/C++ to use. We have some very special conditions and are not 100% sure, that e.g. TBB can add something "more". There are N running threads and one synchronized workqueue (using pthread mutex). Our…
Cartesius00
  • 23,584
  • 43
  • 124
  • 195
8
votes
1 answer

does including require linking against tbb?

In my project on a Ubuntu 20 platform (with g++ 9.3.0), I use the following line #include to support parallel processing via standard library functions. I don't include anything from TBB, the parallel execution library from Intel. But…
alle_meije
  • 2,424
  • 1
  • 19
  • 40
8
votes
1 answer

Why can't I have two accessors for the same element in tbb hash map?

In the below code, if I do not release a1 the code seems to be stuck in an infinite loop inside the map.find function. What if I need to search for an element in two different parts of the application? #include #include…
Jack
  • 131
  • 1
  • 8
8
votes
4 answers

Custom iterator works with std::sort but not with tbb::parallel_sort?

I am trying to use tbb::parallel_sort to sort 2 arrays at the same time. Intel's documentation here says https://software.intel.com/en-us/node/506167 The requirements on the iterator and sequence are the same as for std::sort.. This doesn't seem to…
We're All Mad Here
  • 1,544
  • 3
  • 18
  • 46
1
2
3
51 52