Open vchuravy opened 5 years ago
Is this related to https://github.com/JuliaLang/julia/issues/28781? It would be nice if it could fix that bug as well.
No that is orthogonal to this issue
I've sometimes wanted this. OTOH, a manual @everywhere using X
specifies that all workers use X
. But what if you don't want all workers knowing about X
? For example, if I have n
computational workers and 1 visualization worker, I don't really need/want to load Gtk.jl
on all the workers. (This might be particularly relevant if the workers are headless and using Gtk
throws an error without a display environment---I don't know if that's true, but just supposing.)
Discovered by @ararslan in his quest to get Nanosoldier back online.
In distributed mode
using X
should makeX
available on the worker nodes as a root module so thatremotecall(X.f)
works without a@everywhere X
.This correctly works:
If the user says
using X
beforeaddprocs
we no longer trigger the callback on a subsequentusing X
, thereby triggering https://github.com/JuliaLang/julia/pull/28857#issuecomment-415590074