Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distribute no longer works on ranges #190

Open
JeffBezanson opened this issue Oct 24, 2018 · 0 comments
Open

distribute no longer works on ranges #190

JeffBezanson opened this issue Oct 24, 2018 · 0 comments

Comments

@JeffBezanson
Copy link
Contributor

I believe this used to work, but now gives

julia> distribute(1:100)
MethodError: no method matching UnitRange{Int64}(::Array{Int64,1})
Closest candidates are:
  UnitRange{Int64}(::Any, !Matched::Any) where T<:Real at range.jl:255
  UnitRange{Int64}(!Matched::UnitRange{T<:Real}) where T<:Real at range.jl:846
  UnitRange{Int64}(!Matched::UnitRange) where T<:Real at range.jl:847
  ...

Stacktrace:
 [1] empty_localpart(::Type, ::Int64, ::Type) at /home/jeff/.julia/packages/DistributedArrays/XV7NS/src/darray.jl:66
 [2] macro expansion at ./task.jl:264 [inlined]
 [3] macro expansion at /home/jeff/.julia/packages/DistributedArrays/XV7NS/src/darray.jl:84 [inlined]
 [4] macro expansion at ./task.jl:244 [inlined]
 [5] DArray(::Tuple{Int64,Int64}, ::Function, ::Tuple{Int64}, ::Array{Int64,1}, ::Array{Tuple{UnitRange{Int64}},1}, ::Array{Array{Int64,1},1}) at /home/jeff/.julia/packages/DistributedArrays/XV7NS/src/darray.jl:82
 [6] DArray(::Function, ::Tuple{Int64}, ::Array{Int64,1}, ::Array{Int64,1}) at /home/jeff/.julia/packages/DistributedArrays/XV7NS/src/darray.jl:169
 [7] #distribute#61(::Array{Int64,1}, ::Array{Int64,1}, ::Function, ::UnitRange{Int64}) at /home/jeff/.julia/packages/DistributedArrays/XV7NS/src/darray.jl:501
 [8] distribute(::UnitRange{Int64}) at /home/jeff/.julia/packages/DistributedArrays/XV7NS/src/darray.jl:494
 [9] top-level scope at In[18]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant