Julia 1.0 Example of @distributed and pmap

Your issue is that @everywhere defines testrun on every process that is currently running, but processes that are added later do not have testrun defined. If you addprocs(3) before you define testrun (or start julia with julia -p3), then it should work.

2 Likes