Open
Description
Here's the code to reproduce (Julia 1.1.0):
using Distributed
addprocs(2)
f = (;x)->2x
pmap(1:2) do i
f(x=i)
end
This will give an error like:
ERROR: On worker 2:
UndefVarError: ##7#8 not defined
As far as I can tell reading the docs, this should work. Also note that it does work if the function has no keyword arguments.
f = x->2x
pmap(1:2) do i
f(i)
end
2-element Array{Int64,1}:
2
4