PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
5.51k stars 1.14k forks source link

oneTBB: port dispatcher, thread limits and add build option #2466

Closed brechtvl closed 2 weeks ago

brechtvl commented 1 year ago

Description of Change(s)

After the various simple changes submitted as separate pull requests, this actually does the bulk of the work of adding TBB 2021 support. It is optional, older TBB version should still work exactly the same.


The impact of the thread limits changes in complex applications like DCCs is not easy to understand. One would hope that such applications do not use the USD API or environment variables to set thread limits.

If there are multiple parts of the application using and configuring TBB thread limits, here are some potential differences when using oneTBB. This is from my understanding of the docs and code, not testing in practice.

Fixes Issue(s)

Part of #1471, adding oneTBB support.

sunyab commented 1 year ago

Filed as internal issue #USD-8384

loqs commented 4 months ago

@brechtvl I noticed this pull request now has merge conflicts.

brechtvl commented 1 week ago

This merge left out the build system changes. But I guess that was intentional, and there are more changes coming before it's considered ready.

spiffmon commented 1 week ago

That's right - we're landing the last few changes now, @brechtvl - thanks so much for your giant contributions, here!