Skip to content

Commit

Permalink
bcast result of @master
Browse files Browse the repository at this point in the history
  • Loading branch information
AStupidBear committed Jun 23, 2020
1 parent 497f57d commit 14132a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ end

macro master(ex)
:(if myrank() == 0
$(esc(ex))
res = $(esc(ex))
bcast(res, 0)
else
bcast(nothing, 0)
end)
end

Expand Down

0 comments on commit 14132a9

Please sign in to comment.