oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

ITTNotify usage must be configurable

Open ilya-lavrenov opened this issue 3 years ago • 8 comments

When static library build is used, ITT notify symbols may conflict with other ITT notify symbols from end application / target library. TBB must provide a way to switch ITT off

ilya-lavrenov avatar Nov 13 '21 19:11 ilya-lavrenov

oneTBB does not officially support static build due to potential issues with symbol conflicts, correctness and performance. However, you can try to disable __TBB_USE_ITT_NOTIFY macro (src/tbb/CMakeLists.txt#L65) to disable ITT instrumentation (pay attention that the instrumentation is used by profiling tools for better analysis.)

alexey-katranov avatar Nov 17 '21 14:11 alexey-katranov

Yes, I did this, but it require TBB modifications while it would be nice to have an explicit cmake option

pay attention that the instrumentation is used by profiling tools for better analysis

In production build where all performance issues are investigated / fixed - it's not needed.

ilya-lavrenov avatar Nov 17 '21 14:11 ilya-lavrenov

Yes, I did this, but it require TBB modifications while it would be nice to have an explicit cmake option

The problem with any additional option is that it significantly increases the number of configurations to test (this is kind of a combinatorial problem). If you are interested, we can come up with some untested option, but from time to time it can break.

In production build where all performance issues are investigated / fixed - it's not needed.

ITT instrumentation is invented for production builds that our users can have additional information when profiling their applications. So, you do not need a special build to profile your oneTBB based application.

alexey-katranov avatar Dec 02 '21 05:12 alexey-katranov

@ilya-lavrenov is it fine for you if make -DTBB_USE_ITT_NOTIFY option for CMake but leave it untested?

isaevil avatar Oct 05 '22 13:10 isaevil

@ilya-lavrenov is it fine for you if make -DTBB_USE_ITT_NOTIFY option for CMake but leave it untested?

Yes, sure

ilya-lavrenov avatar Oct 05 '22 20:10 ilya-lavrenov

What is current status of this? is WIP or not?

ilya-lavrenov avatar Jul 28 '23 11:07 ilya-lavrenov