I have a quick theoretical question. Can Intel oneTBB (Thread Building Blocks) co-exist with OpenMP (Open MultiProcessing) in one code base? Both are parallel runtimes for shared memory architectures. I have a parallel code with oneTBB. I introduced OpenMP parallel for
pragmas into it. The code compiles and runs, but I see no performance benefit from using OpenMP. I'm starting to think these runtimes are mutually exclusive.
Update: Please note, I don't want to choose one of the runtimes as in the question suggested (C++ Parallelization Libraries: OpenMP vs. Thread Building Blocks). I want to use both of them simultaneously. To do that I would like to find out, if it is at all possible by design or these libraries are mutually exclusive.