tbb Questions

3

Solved

I am currently trying to represent a 2D array using tbb::concurrent_vector<T>. This 2d array will be accessed by a lot of different threads and thats why I want it to handle parallel accesses...

4

Solved

Given some interval [a, b] of indices (64-bit unsigned integers), I would like to quickly obtain an array that contains all of these indices ordered according to a uniformly distributed hash functi...
Paramnesia asked 21/4, 2023 at 21:57

3

Solved

I am using CMake to build a cross platform project. For the moment I am trying to run it on Linux. I have recently added a project for running tests, but it will not run because it cannot find one ...
Power asked 22/11, 2019 at 15:24

3

Since c++17 std library support parallel algorithm, I thought it would be the go-to option for us, but after comparing with tbb and openmp, I changed my mind, I found the std library is much slower...
Counselor asked 12/10, 2020 at 22:43

3

Solved

I have tbb downloaded and placed in my repository directory: > tree deps/tbb/ -d deps/tbb/ ├── bin ├── cmake │   └── templates ├── include │   ├── serial │   │   └── tbb │   └── tbb │   ├── com...
Saberhagen asked 22/9, 2021 at 10:24

1

Solved

We've been using TBB for years and I see when upgrading, we're taken to a oneAPI TBB page now instead. Does oneAPI TBB replace the traditional TBB? Are both versions being maintained or is the stan...
Shredding asked 29/9, 2021 at 18:45

1

Solved

When I use oneDPL in my code, I face the following issue: /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/pstl/parallel_backend_tbb.h:70:10: error: no member named 'task' in namespace 'tb...
tbb
Honeybunch asked 10/6, 2021 at 14:32

2

Note: this is NOT a duplicate of this quesiton. Given a complex software parallelized with TBB, how do I completely switch off threading? I'm aware of the task_scheduler_init: int nthreads = tbb:...
Nurserymaid asked 14/1, 2020 at 15:14

1

Solved

In my project on a Ubuntu 20 platform (with g++ 9.3.0), I use the following line #include <execution> to support parallel processing via standard library functions. I don't include anything ...
Hindsight asked 20/4, 2021 at 9:56

2

Solved

I am currently using tbb's concurrent hash map to perform concurrent insertions into a hash map. Each key is a string and a value is a vector of integers. I would like to achieve the following: dur...
Athenian asked 6/5, 2014 at 17:51

1

Solved

Looking for sample code to use tbb::concurrent_hash_map<K,V> from Intel Threading Building Blocks (TBB). I can insert, but I cannot seem to read the values back. The official Intel document...
Commence asked 8/3, 2020 at 9:30

2

Solved

I have a very simple parallel_for loop tbb::parallel_for(tbb::blocked_range<int>(0, values.size()), [&](tbb::blocked_range<int> r) { for (int i = r.begin(); i < r.end(); ++...
Cephalopod asked 24/12, 2019 at 2:51

2

Solved

I would like to know how to install TBB from source and make it work on a Linux system. I have had some problems when it comes using it, problems that don't appear if I install TBB via the package ...
Varini asked 23/5, 2012 at 19:25

10

Solved

Intel's Threading Building Blocks (TBB) open source library looks really interesting. Even though there's even an O'Reilly Book about the subject I don't hear about a lot of people using it. ...
Spake asked 20/9, 2008 at 2:52

2

Solved

What does the tbb::scalable_allocator in Intel Threading Building Blocks actually do under the hood ? It can certainly be effective. I've just used it to take 25% off an apps' execution time (and ...
Gleason asked 18/3, 2009 at 10:58

1

Solved

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 applic...
Straighten asked 24/7, 2017 at 6:34

7

How can I statically link the intel's TBB libraries to my application? I know all the caveats such as unfair load distribution of the scheduler, but I don't need the scheduler, just the containers,...
Coprophilia asked 12/3, 2009 at 11:50

7

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 bui...
Gall asked 3/11, 2011 at 11:40

1

Solved

Has anyone tried clang's ThreadSanitizer with Intel Threading Building Blocks (TBB)? My experience so far was that you will get a lot of warnings, even for relatively simple examples. Unfortunatel...
Squeeze asked 2/10, 2013 at 0:38

1

I am doing object detection in images using OpenCv library in Java Eclipse. I am using Cascade Classifier Training for this using Haar features. For training the classifier I need to generate som...
Sitar asked 17/9, 2015 at 6:9

4

Can someone give me a TBB example how to: set the maximum count of active threads. execute tasks that are independent from each others and presented in the form of class, not static functions.
Phillane asked 15/5, 2012 at 19:6

3

I'm new with openCV and I tried followed some tutorials. Everything worked fine until I included: opencv2/imgproc/imgproc.hpp and used the filter2D function. I got the following error when I start ...
Cording asked 3/9, 2011 at 12:38

1

I read these threads: Getting Thread Building Blocks (Intel TBB) running on Linux with gcc unable to link Intel TBB library with libtbb in /usr/lib g++ can't find headers even when it's ...
Walleye asked 10/4, 2016 at 19:45

1

Solved

I'm new with Intel TBB library. As you can see my question is related to tbb::flow::graph. I need to implement logic like: User draws graph with some logic blocks. Every block(node) could have unl...
Sneaking asked 27/10, 2015 at 12:42

4

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 a...
Coussoule asked 23/9, 2015 at 8:58

© 2022 - 2024 — McMap. All rights reserved.