Question

We would like to use Intel Threading Building Blocks from plain C, not C++. Do they have also C API?

Was it helpful?

Solution

Threaded Building Blocks is a C++ API that makes heavy use of templates, constructors, destructors, and other C++ only features. Intel does not provide a C version. Given the C++ feature set used, I find it hard to imagine anyone else has tackled a port to pure C.

OTHER TIPS

It's specifically designed to address a perceived problem with C++. I don't think it exists for any other languages.

As Ashelly and jeffamaphone mentioned, TBB only supports C++ because most of the parallel constructors are based on C++ template and C++11 lambda.

However, if you still want to use a parallel library for pure C, you may try either OpenMP and Cilk Plus. Note that OpenMP is represented as C/C++ #pragma and some C-style APIs. Cilk Plus is basically based on C++, however, it supports mostly important features in C as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top