Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Disabling exception handling in TBB 2.2


I have some code that's using the commercial TBB 2.2 release and another developer on my team was running some tuning tests on it and noticed a huge number of cpu clocks in tbb::captured_exception::~captured_exception(). From my research this looks like how TBB handles exceptions that were thrown that weren't tbb exceptions. The trouble is that none of this code even uses exceptions, so I don't know where that's coming from.

Ideally, I'd just turn off exceptions since I don't need them, I tried setting __TBB_EXCEPTIONS and TBB_USE_CAPTURED_EXCEPTIONS to 0, but then I can't get my code to compile.

Any other hints?


0 Kudos
0 Replies