New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TBB deprecated atomics #887
Comments
Thanks @frispete, we're aware of this and are working on a fix! It will involve switching all deprecated constructs to the standard. Some more info here: https://jira.aswf.io/browse/OVDB-139 |
linking #932 |
Looks like
which I think can just become
Should I make another issue for that or keep it as part of this? (See https://github.com/oneapi-src/oneTBB/tree/v2021.1.1/include/tbb which contains special mutexes like spin_mutex but no longer has |
@BenFrantzDale it can be kept as part of this - I've pinned #932 which will essentially solve all these issues (as intel removed support for all deprecated constructs in TBB 2021) |
@Idclip Do you have a sense how involved it is to do the atomics? It looks like they only show up in a handful of places. I'm itching to upgrade my tbb version and may be motivated to make these changes... |
I haven't looked too closely at this yet but this document seems to detail a very trivial replacement of most types. The only thing I saw to be different was that the memory semantics for tbb atomics were worded slightly differently to the standard (https://en.cppreference.com/w/cpp/atomic/memory_order). We don't use them in too many places as you pointed out, but we need to make sure they behave identically. |
^ This looks plausible 22ae4e5 |
Is this now fixed? |
@BenFrantzDale - not until this PR is merged (#1006). That's your PR with a few minor changes layered on top. |
I have just merged this PR into the master branch. We'll be doing an 8.1 release soon which will include this change. Closing out this issue. |
Despite the fact that this issue is closed, and has been for over two years, I'm still having problems compiling Blender 3.6.1 because of the TBB references in openVDB. That's from the most recently updated version, too. |
OpenVDB still depends on TBB, just not the old stuff. I don’t know the exact maximum allowed TBB version for OpenVDB, but I’d guess you just need a recent TBB. |
Just a heads up, TBB complains:
openvdp 7.1.0
TBB 2020.3
The text was updated successfully, but these errors were encountered: