Skip to content

Commit

Permalink
Merge pull request #72 from JuliaParallel/amitm/expt
Browse files Browse the repository at this point in the history
Fix distribute function
  • Loading branch information
amitmurthy committed Jul 7, 2016
2 parents ec9ab98 + 28707f5 commit 1a31742
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DistributedArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ end

if VERSION < v"0.5.0-"
typealias Future RemoteRef
typealias RemoteChannel RemoteRef
end

importall Base
Expand Down Expand Up @@ -491,7 +492,7 @@ function distribute(A::AbstractArray;
dist = defaultdist(size(A), procs))

owner = myid()
rr = Future()
rr = RemoteChannel()
put!(rr, A)
d = DArray(size(A), procs, dist) do I
remotecall_fetch(() -> fetch(rr)[I...], owner)
Expand Down

0 comments on commit 1a31742

Please sign in to comment.