-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Last function in worker library included with the -L option is not correctly defined when a module is imported #21704
Comments
Also, this breakage seems to be identical whether the cluster is local (-p) or remote (--machinefile). |
Dup of #15996 |
@yuyichao: Given that you're closing as a dup of a closed issue with no follow-up discussion, could you suggest a work-around or some other helpful feedback on this problem? I don't really understand the issue myself but since you've encountered it you may be able to explain it. |
There is no indication in that issue that it's fixed, just that it's been closed, which is not the same. So is the status that it is fixed on master but the fix cannot be backported to 0.5? |
It's closed as a dup of #15766 (comment) I don't think the fix can be backported #15766 (comment). |
Ok, thanks for the clarification. |
This is very helpful, thanks. From the linked dup issue I can see that the simple workaround for this problem is to insert |
BrokenFunction.zip
Loving Julia so far but I keep running into what looks like a bug using the -L option to load a worker library using parallel computing functionality in Julia 0.5.1. This seems to happen on both the Linux and Mac versions of Julia. It seems that if all of the following conditions are met (which they will be for any non-trivial worker library) then the last function definition in the worker library ("junk_function" in the attached example) goes bad in a way that seems to indicate internal badness within Julia somewhere:
The same worker library included directly from the main julia script using an include statement works fine. Removing the import of the module from the worker script causes junk_function to be correctly defined.
Steps to reproduce with the attached minimal example:
Version info:
The text was updated successfully, but these errors were encountered: