Intel® Threading Building Blocks

TBB doesn't enable c++11 features with Clang on Linux

Ubuntu 15.04, Clang 3.6, TBB v 4.4, libstdc++

At least some c++ features are disabled. tbb_config.h incorrectly calculates the __TBB_CPP11_RVALUE_REF_PRESENT. In my case it's diabled. This causes also some other troubles. E.g. tbb::concurrent_bounded_queue::emplace is wrapped with both __TBB_CPP11_VARIADIC_TEMPLATES_PRESENT(value is correct) and the __TBB_CPP11_RVALUE_REF_PRESENT. Since __TBB_CPP11_RVALUE_REF_PRESENT = 0 the emplace  is disabled.

Seems to me the problem is in flag calculation. Here is it (tbb_config.h, line 164 )

Multi-Tasking CoSimulation

Hi there,

I am pretty new to TBB or any threading libraries, so forgive me if my question might seem quite naive to you guys. I am currently developing a model based co-simulation platform. Basically, I want to run all of the models concurrently in order to minimize run time.

Here's my idea,

1) I wrap each model with my own C++ API, and then export them as dynamic linked libraries. e.g. M1.dll, M2.dll. Each dll has the same set of API functions. e.g. Initialize(), DoStep(), Terminate() etc.

2) I then load these dlls into my CoSim platform during run time.

Get start


I am newbie with Linux(I have Ubuntu 14.04) and TBB. I want to write codes with TBB library and run on computer. I have no idea how should I start .

Can anyone help me with a step by step tutorial or something that help me?

TBB memory leaks even when entire program is commented out

Hi. I encountered TBB memory leaks in my program, so decided to try out a smaller program to check:

Tried this:
#include "tbb/parallel_for_each.h"
#include "tbb/task_scheduler_init.h"
#include <iostream>
#include <vector>

struct mytask {
mytask(size_t n)
void operator()() {
for (int i=0;i<1000000;++i) {} // Deliberately run slow
std::cerr << "[" << _n << "]";
size_t _n;

Trouble building TBB 4.4. because of -mrtm


I would like to understand how I can successfully build tbb 4.4 when I compile on a non-rtm supported cpu.

For example, using gcc 4.9.3 I can successfully compile tbb 4.4. on a machine with the following CPU:

Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz

However, when I use the same exact compiler binary on a machine with the following CPU:

Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz

I get the following errors:

Building on musl libc?

Hi all -

I wanted to package Intel-tbb for a Linux distro based on musl libc (instead of the normal glibc).

The compile fails because musl doesn't supply the mallinfo struct.

Has anybody been able to compile/use intel-tbb on a non-glibc Linux distro?

Thanks in advance!


Package Contents

Intel® Threading Building Blocks (Intel® TBB) includes dynamic shared library files, header files, and code examples for Windows*, Linux*, and OS X* operating systems that you can compile and run as described in this section.

Subscribe to Intel® Threading Building Blocks