I use Julia 1.0.2 on Atom. I’m trying to parallel my loop and there is a problem which I don’t understand. Parallel loops work great without functions inside. Also program work great on 1 worker with functions. And completely failed with functions. My test example:
As result I get LoadError: On worker 2:
UndefVarError: #fparall not defined:
It work on 1 worker or works in parallel without function. How should I define it?
I found similar problem here Julia 1.0 Example of @distributed and pmap but solution didn’t work.