DistributedArrays.jl icon indicating copy to clipboard operation
DistributedArrays.jl copied to clipboard

[WIP/DNM]make similar produce the right chunktype

Open vchuravy opened this issue 7 years ago • 4 comments

Defaulting to Array breaks a mat * vec of DArray{CuArray}

vchuravy avatar Sep 25 '18 18:09 vchuravy

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!

raminammour avatar Sep 28 '18 10:09 raminammour

This has become a pile of various changes I needed for a project, I will separate them out as well as cleaning them up.

vchuravy avatar Oct 15 '18 14:10 vchuravy

Closing because its old.

ViralBShah avatar May 19 '20 22:05 ViralBShah

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.

vchuravy avatar May 20 '20 01:05 vchuravy