-
Notifications
You must be signed in to change notification settings - Fork 561
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
Support oneTBB 2021 #1234
Support oneTBB 2021 #1234
Conversation
Hi! Would you please submit a signed Contributor License Agreement as described here: Contributing to OpenSubdiv Thank you! |
@davidgyu would signing the PDF file with PGP and emailing it to you be sufficient? |
Filed as internal issue #OSD-359 |
A regular signature on the PDF emailed back to us would be best for our process. Thanks! |
@davidgyu I've just found a bit of free time and sent a signed PDF to you ([email protected]). It's signed both by hand & with GPG. |
Thank you @Logarithmus ! |
tbb::global_control tbb_global_control( | ||
tbb::global_control::max_allowed_parallelism, | ||
numThreads | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to TBB behavior made by tbb::global_control
only active wile the object is alive. So having this object as stack variable makes the whole function TbbEvaluator::SetNumThreads
to has no effects.
From the global_control::~global_control specification :
Destructs a control variable object and ends it’s impact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Isn't the old code here also effectively a no-op too here? This entire SetNumThreads()
method and references to it should be removed. A library like this has no business trying to control the number of threads used process wide. It should be a decision left to the library user instead.
Hey, I'm trying to build with your branch, but still unable to compile. Getting errors like these from msbuild:
and also
I'm trying with the following cmake options:
The libraries are there, but it's looking for tbb12, which I probably need to add to another path? |
So what about merging this? Sadly this missed 3.5.0 but I'd appreciate it if this went in somewhat soon. |
Thanks for your patience and apologies that this didn't make it into 3.5.0. |
I guess you could merge it but really, you might just as well delete the contents of the |
Yes, I agree with your earlier comment regarding SetNumThreads() |
It would be extremely nice if this could be merged just to keep this package and depending packages building. In any case, it seems to me like the discussion about whether the function can be further simplified could be deferred until later. |
As a OpenBSD package maintainer I came across this. It would be nice to have a proper fix upstream for TBB 2021 support. |
As noted above, we'd like to address the presence of SetNumThreads() in the API along with the other low level fixes. |
Thank you for the update! |
@jilliene
Closes #1211
I'm not sure my solution is right, I just did what oneTBB's migration guide said.