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

How to reschedule a concurrent task?

Short explanation in bold. I have a tbb::task that can be summed up like that: class UpdateTask : public tbb::task { public: tbb::task* execute() { // some work... if( can_continue() ) { // make sure this…
Klaim
  • 67,274
  • 36
  • 133
  • 188
0
votes
1 answer

parallel execution in TBB freezes

So here's the problem. I have a piece of code that when execute in only one thread, it works perfectly. But once this code is called with TBB, it froze (or I just don't have the patience to wait it finishes!). The code is too long, but imagine…
widgg
  • 1,358
  • 2
  • 16
  • 35
0
votes
1 answer

TBB ThreadingBuildingBlocks strange behaviour

My Question: Why is my program freezing if i use "read only" const_accessors? It seems to be locking up, from the API description it seems to be ok to have one accessors and multiple const_accessors, (writer, reader). Maybe somebody can tell me a…
Oliver
  • 928
  • 9
  • 25
0
votes
2 answers

error when compile opencv in qt applying tbb

I Have the following issue when compiling opencv project in qt applying tbb dyld: Library not loaded: libtbb.dylib Referenced from: /usr/local/lib/libopencv_core.2.4.dylib Reason: image not found The program has unexpectedly finished. Can any…
hugle
  • 145
  • 1
  • 5
0
votes
2 answers

TBB for a workload that keeps changing?

I'm sorry I don't seem to get intel's TBB it seems great & supported but I can't wrap my head around how to use it since I guess I'm not used to thinking of parallelism in terms of tasks but instead saw it as threads. My current workload has a job…
Lostsoul
  • 25,013
  • 48
  • 144
  • 239
0
votes
0 answers

C++ Compile and Build Command for Geany with TBB

I would like to know what are the C++ Compile and Build Commands for Geany with TBB using g++ compiler. I've been struggling with Geany for days and I couldn't make it work. Note: Within my C++ code I have included the necessary headers and verified…
Chicodelarose
  • 827
  • 7
  • 22
0
votes
1 answer

tbb_debug.dll Missing - MSER Sample OpenCV 2.3.1

I am trying to use the MSER sample found in the samples directory of OpenCV 2.3.1. At the moment the DLL missing error keeps popping up. This is the first time I am testing the MSER code and doubt that there is any dependency on TBB (Thread Building…
user349026
0
votes
1 answer

Why this tbb program cannot compile?

I install the threading building blocks(http://threadingbuildingblocks.org/ver.php?fid=174) in centos in directory /home/is_admin/tbb40_233oss/ This is my code: #include "tbb/concurrent_queue.h" #include using namespace std; using…
Treper
  • 3,539
  • 2
  • 26
  • 48
0
votes
1 answer

tbb concurrent containers performance

I have this program that is using vector and unordered_map now when I am building them I am reading from a serial file so practically I can't parallelize the building process but when I use them further in my program I can read from them in parallel…
aTm
  • 79
  • 2
  • 10
0
votes
2 answers

parallel task in tbb

I have the following function that I want to run as parallel tasks: void WuManberFinder::find() so I wrote the following: void WuManberFinder::Parallel_find() { tbb::task_group g; for(auto i = 0; i != tbb::tbb_thread::hardware_concurrency();…
aTm
  • 79
  • 2
  • 10
-1
votes
1 answer

Intel TBB, exececute a member function with a parallel for

I have a class similar to this one: struct orden { long long time; double price; const char* time1; orden(const char* t, double p) : time1(t),price(p){}; void convertToMs() { time = dateToMs2(time1); } }; The what I'm doing is to read a file…
david.t_92
  • 1,971
  • 1
  • 11
  • 15
-1
votes
1 answer

intel tbb compilation and testing

I am compiling intel tbb community version tbb2017_20161128oss. While compiling it runs few test cases. in one of the test case it gives me the warning ./test_global_control.exe TBB Warning: The number of workers is currently limited to 0. The…
-1
votes
2 answers

C++ numerical mystery

I wrote a class for seprate some task into two sub-tasks. e.g. make the additions of two vectors of same size. I designed it as a like binary function, I mean one of the input pointers is also the output. I also supposed the input and output had the…
John_Sharp1318
  • 939
  • 8
  • 19
-1
votes
1 answer

What are the recommendations for building OpenCV 3.0 in presense of respectable number of 3d party components?

When I desided to build opencv library I have found out that there are number of compiler options available that does nearly the same - speed up algorithms. For example: TBB, IPP, CUDA, pthreads, Eigen2/Eigen3, OpenCL and others. Are there any…
Vladimir Protsenko
  • 1,046
  • 2
  • 14
  • 21
-1
votes
1 answer

TBB lambda vs self written body object

I was experimenting with the below piece of code to compare the performance of serial and parallel for (both non-lambda and lambda). #include #include #include #include #include #define MAX…
sjsam
  • 21,411
  • 5
  • 55
  • 102
1 2 3
51
52