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
-2
votes
1 answer

"LNK2005 DLLMain already defined ..." conflict in Linker using MSVC

I have a C++ project which up to now had no problems compiling and linking but due to a recent computer crash I had to re-install everything including Visual Studio and all my VCPKG packages. (I am using VS 2022 Preview, and was before.) My project…
David A
  • 123
  • 5
-2
votes
1 answer

Differentiate continuos pass vs blocking style in intel tbb

what the advantages and disadvantages of Continuation-passing Style and Blocking Style in fork/join parallelism in Intel TBB?
user14812062
-2
votes
2 answers

error: C2061: syntax error: identifier 'concurrent_vector<`template-type-parameter-1',`template-type-parameter-2'>'

A code compiles/runs fine on Linux and macOS. On Windows 10, I'm compiling the code with Visual Studio 2017 toolchain, but I'm receiving this error: ...\deps\tbb-2020.3-win\tbb\include\tbb\concurrent_vector.h:680: error: C2061: syntax error:…
Megidd
  • 7,089
  • 6
  • 65
  • 142
-2
votes
1 answer

Atomic Variables Accessed Multiple Times From One Function

I have the following code: The header: class Counter { public: Conuter(const std::string& fileName); boost::uint16_t getCounter(); private: tbb::atomic counter; std::string counterFileName; }; The…
joshu
  • 463
  • 8
  • 18
-7
votes
4 answers

Fastest way to bring a range [from, to] of 64-bit integers into pseudo-random order, with same results across all platforms?

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 function, appearing random but actually being the same on…
xamid
  • 440
  • 11
  • 25
1 2 3
51
52