This package defines a @spmd macro which runs code on multiple processes. It is similar to Distributed.@everywhere, except:
- it only runs code on the worker processes by default, and
- it returns a
SPMDResultobject which captures theFutures returned from each process.
julia> using Distributed; addprocs(3)
3-element Vector{Int64}:
2
3
4
julia> using SPMD
julia> @spmd myid()+10
3-element SPMDResult:
2> 12
3> 13
4> 14