-
Notifications
You must be signed in to change notification settings - Fork 11
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
remove order dependency between "using" and "addprocs" #17
Comments
This seems a bit too magical. |
At least the worker should not terminate abruptly, it should give a clean error message. The module PTools was not even required on the workers. The closure had some references - not obvious looking at the code - which caused the problem. It took me a while to figure it out. The contra argument for auto-loading modules, of course, is that typically the visualization packages are only required on process id 1. |
It should certainly not crash. |
How about an additional keyword argument to
The packages loaded are the ones listed in If you loaded scripts using |
Julia users link regarding the same issue - https://groups.google.com/d/msg/julia-users/-Y1rc8gkrgo/r6w5f144BkMJ |
Perhaps using PTools
addprocs(1)
using PTools # currently this has no effect on the worker should cause (Discovered while testing JuliaLang/julia#8745 with the Images test, CC @vtjnash.) |
To fix the Images test, I added an @ everywhere before the import statement. With JuliaLang/julia#8745 changes to require, syncing modules during addprocs might be easier now. |
I got a module reload when I fixed it that way; I just pushed a different fix (to Images master, not tagged). But the fix uses a PR against JuliaLang/julia#8745 I'll be submitting shortly. |
@amitmurthy I think the level of magic in
|
Too high. It would be much clearer if just doing |
Related - #20 |
Status of this? |
The following sequence resulted in the worker segfaulting and terminating.
Flipping the order of
addprocs
andusing
results in proper execution.Suggest that we keep track of modules loaded in process 1, and load the same modules on all workers whenever we do an
addprocs
The text was updated successfully, but these errors were encountered: