Search code examples
c++mingwtbb

Setting Up Intel TBB with Nuwen


I've recently become interested in learning more about parallel computing, concurrency, etc. My main language is C++, so obviously I decided to use that in my personal studies.

After some research (read: looking things up on Google), I decided that using Intel's TBB library would be the most ideal.

The one thing that's got me stuck so far, though, is setting it up to use on my computer. I have looked on the Internet for some sort of tutorial on setting TBB up with MinGW (in my case, specifically Nuwen) and haven't really found anything.

So, here's my question: how would I set up TBB to use with a Nuwen distro?


Solution

  • TBB doesn't provides binaries for mingw in a Windows package. So you should build it from source code. You need compiler and GNU make;

    Download source code(.zip) from https://github.com/01org/tbb/releases

    Unpack somethere (not sure, but in common: beware of spaces in the dir path)

    Open your console with compiler's environment, go to $archive_root/src and call gmake tbb tbbmalloc compiler=gcc. Also you could try to add stdver=c++11 in the build command if your complier supports this mode.

    You will find a library build in the $archive_root/build/windows_... directory