Communication error between local processes and remote processes

Ok, it seems that specifying

loc_proc = addprocs(4; restrict = false)

solves the issue.

As stated in the documentation

addprocs(np::Integer; restrict=true, kwargs...)

Launches workers using the in-built LocalManager which only launches workers on the local host. This can be used to take advantage of multiple cores. addprocs(4) will add 4 processes on the local machine. If restrict is true, binding is restricted to 127.0.0.1. Keyword args dir, exename, exeflags, topology, lazy and enable_threaded_blas have the same effect as documented for addprocs(machines).

1 Like