Skip to content
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

Merged
merged 1 commit into from
May 24, 2023

Conversation

kpamnany
Copy link
Contributor

Now that there are threadpools, we cannot simply use Base.JLOptions().nthreads to get the threads spec for Distributed workers.

@kpamnany kpamnany requested review from vtjnash and fredrikekre May 23, 2023 20:20
Copy link
Member

@quinnj quinnj left a 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?

@kpamnany
Copy link
Contributor Author

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?

@quinnj
Copy link
Member

quinnj commented May 23, 2023

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.

@IanButterworth
Copy link
Member

My bad, yeah we don't need the version check. That should be removed from Pkg

@kpamnany
Copy link
Contributor Author

Removed from here.

@IanButterworth IanButterworth added the backport 1.9 Change should be backported to release-1.9 label May 24, 2023
@IanButterworth IanButterworth merged commit aea56a9 into master May 24, 2023
@IanButterworth IanButterworth deleted the kp/proc-threads branch May 24, 2023 15:01
@KristofferC KristofferC mentioned this pull request Jun 6, 2023
36 tasks
KristofferC pushed a commit that referenced this pull request Jun 27, 2023
KristofferC pushed a commit that referenced this pull request Jun 27, 2023
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants