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

@everywhere using loads module twice on the workers #19187

Closed
amitmurthy opened this issue Nov 2, 2016 · 2 comments
Closed

@everywhere using loads module twice on the workers #19187

amitmurthy opened this issue Nov 2, 2016 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior modules parallelism Parallel or distributed computation
Milestone

Comments

@amitmurthy
Copy link
Contributor

M.jl

module M
  println("Loaded M on $(myid())")
end

julia -p 4


julia> push!(LOAD_PATH, ".")

julia> @everywhere using M
Loaded M on 1
	From worker 4:	Loaded M on 4
	From worker 3:	Loaded M on 3
	From worker 2:	Loaded M on 2
	From worker 5:	Loaded M on 5
WARNING: replacing module M
WARNING: replacing module M
	From worker 5:	Loaded M on 5
	From worker 2:	Loaded M on 2
WARNING: replacing module M
	From worker 4:	Loaded M on 4
WARNING: replacing module M
	From worker 3:	Loaded M on 3

Needs to be fixed on 0.5

On 0.6 #19073 is pending review.

@kshyatt kshyatt added parallelism Parallel or distributed computation modules labels Nov 2, 2016
@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label May 11, 2017
@JeffBezanson JeffBezanson added this to the 0.6.0 milestone May 11, 2017
@amitmurthy
Copy link
Contributor Author

Closed by #21718

@ghost
Copy link

ghost commented Apr 13, 2018

[joe@z1 julia]$ ./julia -p 3
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.4881 (2018-04-13 22:09 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit b6d81e3 (0 days old master)
|__/                   |  x86_64-redhat-linux

julia> using Distributed

julia> @everywhere using Colors
┌ Warning: Replacing module `Colors`
└ @ Base loading.jl:894
┌ Warning: Replacing module `Colors`
└ @ Base loading.jl:894
┌ Warning: Replacing module `Colors`
└ @ Base loading.jl:894

The issue seem to be back

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

No branches or pull requests

3 participants