Skip to content

simonbyrne/SPMD.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPMD.jl

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 SPMDResult object which captures the Futures 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages