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-parallelized convolution of images with different depths

I want to use tbb (parallel_for pattern) for concurrently convolution a large amount of images - each processor's core convolves single image. However, image's depth varies: either monograyscale(1-channel), or stereograyscale(2-channel), or…
gorill
  • 1,623
  • 3
  • 20
  • 29
0
votes
1 answer

Compiling opencv 2.4.5 with TBB

I have TBB installed to /usr/local/tbb and now trying to compile opencv 2.4.5 with the installed version. But if i use ccmake, it will download another copy of TBB from the internet. I dont want this. What are the commandline options for cmake to…
extensa5620
  • 681
  • 2
  • 8
  • 22
0
votes
2 answers

Intel Thread Building Blocks Support for Windows Embedded Server 2012?

I want to know whether Intel Thread Building Blocks Support Windows Embedded Server 2012? In Release notes i have checked its written it supports Microsoft* Windows* Server 2012 .But when i am checking difference between Microsoft Windows Server…
Jasdeep Singh Arora
  • 543
  • 2
  • 11
  • 31
0
votes
3 answers

Intel TBB it's 2 time slower than std - tbb vs std

I have done a little comparison between 2 programs that are filling a given vector with pseudo-random integers from a mersenne twister, the point is that the TBB version it's terribly slow, the std version is performing the task in about 0.6s when…
user2485710
  • 9,451
  • 13
  • 58
  • 102
0
votes
2 answers

Can't wrap my head around parallel_for from tbb

#include #include #include #define N 1000000 int main() { tbb::concurrent_vector v(N); std::mt19937 mt; std::uniform_int_distribution dist(0,499); …
user2485710
  • 9,451
  • 13
  • 58
  • 102
0
votes
1 answer

parallel_pipeline not terminating

i am using parallel_pipeline function in my code.Sometimes when my condition is satisfied it stops the pipeline and sometimes it does not.When the flow control calls stop even after that it does not terminate instead it calls its next part and…
Jasdeep Singh Arora
  • 543
  • 2
  • 11
  • 31
0
votes
1 answer

run time exception raised in code

i am implementing one algorithm in which i have used thread library of CPP and Intel TBB Library for MultiCore.while i am calling function with the help of thread some times it executes perfectly and sometimes it gives run time exception.i am trying…
Jasdeep Singh Arora
  • 543
  • 2
  • 11
  • 31
0
votes
1 answer

Opencv with both TBB and IPP

I have build Opencv With TBB enabled. And used "detectMultiscale" and wrote a basic program to detect the face. I couldnt find any changes in processing time if there is a face in a frame. Also i noticed that the processing time has been reduced by…
2vision2
  • 4,933
  • 16
  • 83
  • 164
0
votes
2 answers

Parallelizing QuickHull: OpenMP gives small speedup whilst TBB gives negative speedup

I'm a beginner when it comes down to shared-memory programming using OpenMP and TBB. I'm implementing a parallel version of the QuickHull algorithm (http://en.wikipedia.org/wiki/QuickHull) to find the convex hull of a set of data points.…
Madsen
  • 396
  • 1
  • 2
  • 12
0
votes
2 answers

Building OpenCV 2.4.5 with TBB - missing tbb_debug.lib

I'm trying to compile OpenCV 2.4.5 with MSVC2010 Express under win64 LINK : fatal error LNK1104: cannot open file 'tbb_debug.lib' All my paths are set correctly in cmake. It appears that in my TBB lib dir, I have tbb_debug.dll, but not…
user2364719
  • 15
  • 1
  • 4
0
votes
2 answers

Intel TBB Code having different execution time in windows and linux

I am trying to parallelize my code which is designing FIR Filter.For that i have chosen parallel_reduce .when i am executing code on windows it takes 15s and the same code when i am executing on linux it takes almost 2.5secs.In windows i am…
Jasdeep Singh Arora
  • 543
  • 2
  • 11
  • 31
0
votes
1 answer

TBB concurrent_hash_map operator[] or similar access?

Is there a reason why you can't access the concurrent_hash_map using the square bracket operators? I've been doing this in order to ease the code readability (on keys that should be in the map): template Tval…
Carlos
  • 5,991
  • 6
  • 43
  • 82
0
votes
1 answer

How to specify loop step in Intel TBB's parallel_for loop?

I wanted to do something like this (pseudo code) utilizing intel TBB's library: some function( int index, Mat data, vector other ) { } int start = 0 int end = 100 int step = 5 parallel_for( start, end, step, some function ) However I'm not…
sub_o
  • 2,642
  • 5
  • 28
  • 41
0
votes
1 answer

parallel word count

I am trying to write a parallel version of wc. I am using TBB library, but unfortunately something is going wrong, and I don't know how to fix the errors. My code #include #include #include #include
user1877600
  • 627
  • 1
  • 9
  • 26
0
votes
1 answer

Intel TBB on Win CE for developing mobile applications?

i want to know whether we can use INTEL TBB for developing mobile applications on Window CE. i was searching for the material but unable to found any .Basically two things i want to know whether Window CE support for INTEL TBB is there or not . And…
Jasdeep Singh Arora
  • 543
  • 2
  • 11
  • 31