-
-
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
Nested anonymous functions not propagating to workers #15451
Comments
The following work:
It appears that cc: @JeffBezanson |
Came across another (probably more common) case: pmap([rand(2) for i in 1:2]) do x
map(y->typeof(y), x)
end This generates a pretty long error report so I've put an example of running it here. edit: corrected code. |
The issue here is that nested functions now generate multiple top-level functions. So the immediate function you're trying to send refers to globals in I think the right solution is to look through the IR for the function when it's serialized, and send over all its dependencies. This could also potentially let us remove the |
Hi,
I think I've found a bug? Nested anonymous function aren't propagating to workers with
@everywhere
:Update:
I've found a more general example:
The text was updated successfully, but these errors were encountered: