You shouldn’t be mixing mpiexec
and Distributed
. As you have written your script now, every node starts a julia
process, and executes every element in your for loop serially. Instead (assuming that you want to use Distributed
), you need to invoke your script like normal, and call addprocs
to tell julia
about other nodes.
ClusterManagers.jl
might be useful: