DistributedArrays.jl
DistributedArrays.jl copied to clipboard
[WIP/DNM]make similar produce the right chunktype
Defaulting to Array breaks a mat * vec of DArray{CuArray}
Could you please fix similar to give the right distribution while you are at it :)
This doesn't work:
julia> dd=drand((10,10),workers(),[2,1]);
julia> ds=similar(dd);
julia> ds.indices
1x2 Array{Tuple{UnitRange{Int64},UnitRange{Int64}},2}:
(1:10, 1:5) (1:10, 6:10)
julia> dd.indices
2x1 Array{Tuple{UnitRange{Int64},UnitRange{Int64}},2}:
(1:5, 1:10)
(6:10, 1:10)
Which breaks copy, and may other constructs.
Thank you!
This has become a pile of various changes I needed for a project, I will separate them out as well as cleaning them up.
Closing because its old.
Not that old :) and I would keep it open as a reminder to myself that this work needs to get cleaned up and finished or migrated over to Dagger.