You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NumbaWarning: [1mThe TBB threading layer requires TBB version 2021 update 1 or later i.e., TBB_INTERFACE_VERSION >= 12010. Found TBB_INTERFACE_VERSION = 11102. The TBB threading layer is disabled.[0m warnings.warn(problem)
#7531
Closed
aa694849243 opened this issue
Nov 3, 2021
· 5 comments
@aa694849243 thank you for reporting this. I would recommend setting up a new conda environment and re-installing Numba. You can also try to include the packages tbb and tbb-devel.
What is strange about the warning you receive, is that the tbb package appears to be present in the correct version.
This issue is marked as stale as it has had no activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with any updates and confirm that this issue still needs to be addressed.
Closing this issue as no new information has been provided. It is assumed that the above resolved the reported issue, if this is not the case please reopen the issue with new information. Many thanks.
NumbaWarning: The TBB threading layer requires TBB version 2021 update 6 or later i.e., TBB_INTERFACE_VERSION >= 12060. Found TBB_INTERFACE_VERSION = 12050. The TBB threading layer is disabled.
The problem was that I have two different versions of libtbb:
~/.local/lib/libtbb.so ← want this
/usr/lib/x86_64-linux-gnu/libtbb.so ← actually loading this
I am not sure whether it would be safe to simply delete one of them or change the order in which libraries are discovered, so I simply hardcoded the path:
Note that this is just a dirty hack to make the warning go away instead of a proper fix. Note that if the library can not be found at all, for example because the path has been misspelled, the exception will be silently discarded!
If the library lives somewhere else, the path has to be changed. I found it with the command find / -name libtbb.so 2>/dev/null. You can check the version with:
The problem was that I have two different versions of libtbb:
* `~/.local/lib/libtbb.so` ← want this
* `/usr/lib/x86_64-linux-gnu/libtbb.so` ← actually loading this
That is exactly my case! It seems that numba has trouble recognizing a pip installed version of tbb whenever there is a system-wide tbb version as well. This is especially puzzling because numba -s is able to detect and load the pip installed tbb but then fails to use it. There are several github threads on this direction but I'm a newbie so I have no clue what is the best approach. People seem to report that numba has a better time locating the right tbb whenever you work with conda and virtual environments but I haven't tried it myself.
In the meantime, I simply exported the appropriate LD_LIBRARY_PATH and the warning went away (without changing any code lines)
Reporting a bug
visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
I'm getting warning when I run above code, I download tbb by
conda install tbb
,but the problem still exists.The output of
numba -s
The text was updated successfully, but these errors were encountered: