-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Ensure Distributed workers inherit threads spec properly #49942
Conversation
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.
We typically don't need the @static
VERSION checks for stdlibs, right? So we can just use the 1.9 version here instead of keeping the old compat version too?
Happy to drop it. I followed the pattern I used when fixing this for Pkg.jl. I don't know if the convention is different? |
Yeah, I guess the main difference is Pkg.jl lives in its own repo, so maybe it's used a little more independently? vs. Distributed only lives in JuliaLang/julia, so it's more like base/ code? Probably fine to leave in, but my main point is that I don't think we need it because since it lives here, it's always matching "tip" of JuilaLang/julia. |
My bad, yeah we don't need the version check. That should be removed from Pkg |
Removed from here. |
(cherry picked from commit aea56a9)
(cherry picked from commit aea56a9)
Now that there are threadpools, we cannot simply use
Base.JLOptions().nthreads
to get the threads spec for Distributed workers.