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

Optimize myid and nprocs after moving Distributed to stdlib #25077

Closed
amitmurthy opened this issue Dec 14, 2017 · 0 comments · Fixed by #25139
Closed

Optimize myid and nprocs after moving Distributed to stdlib #25077

amitmurthy opened this issue Dec 14, 2017 · 0 comments · Fixed by #25139
Labels
parallelism Parallel or distributed computation

Comments

@amitmurthy
Copy link
Contributor

As @vchuravy noted in #24443 (review), invokelatest in the calls to myid and nprocs are probably best avoided here -

julia/base/loading.jl

Lines 279 to 280 in 95b6488

myid() = isdefined(Main, :Distributed) ? invokelatest(Main.Distributed.myid) : 1
nprocs() = isdefined(Main, :Distributed) ? invokelatest(Main.Distributed.nprocs) : 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parallelism Parallel or distributed computation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant