TBB interaction in python binding

12 hours ago 1
ARTICLE AD BOX

I have a C++ library exposed as a python module which internally uses oneTBB.

When compiling the library, I install the dependencies with it, including the oneTBB shared library.

When I try to use the python module, if I import my module before numpy, everything works fine, but if I first import numpy and then my module, it crashes (double free pointer). I guess the issue is some interaction between numpy TBB usage and the TBB version that comes with my library.

If I remove TBB from my library package or LD_PRELOAD system TBB, everything works fine, no matter the order in which I import.

I need some advice on how to proceed with this. According to TBB documentation, it shouldn't be compiled as a static library, but I am out of ideas.

Read Entire Article