master_slave DArray copy
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- julia
调研方向
首先,按照 issue 中的示例,使用 DArray、copy、similar 和 localpart 重现 master_slave 示例。检查 DArray copy 和 similar 的实现与测试,然后使用提供的 localindexes 和 sumabs2 检查验证行为。当 copy 和 similar 能够处理报告的分布,或明确记录预期行为时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hello,
First, thank you for a great package!
I have had an issue with copy of DArray when connected in master_slave topology.
julia> addprocs(2,topology=:master_slave)
2-element Array{Int64,1}:
2
3
julia> nprocs()
3
julia> using DistributedArrays
julia> dd=drand((11,21,2,13),workers(),[1,1,1,2]);
julia> @eval @everywhere println(localindexes($dd))
(1:0,1:0,1:0,1:0)
From worker 2: (1:11,1:21,1:2,1:7)
From worker 3: (1:11,1:21,1:2,8:13)
julia> ddc=copy(dd);
ERROR: On worker 2:
peer 3 is not connected to 2. Topology : master_slave
...
I have shortened the error output, surely you can reproduce it.
Is there a reason why this is an error?
Especially that this works...
julia> dd=drand((11,21,2,13),workers(),[1,1,1,2]);
julia> @everywhere using DistributedArrays
julia> @eval ddc2=DArray(I->copy(localpart($dd)),$dd);
julia> sumabs2(ddc2-dd)
0.0
julia> @eval @everywhere println(localindexes($ddc2))
(1:0,1:0,1:0,1:0)
From worker 2: (1:11,1:21,1:2,1:7)
From worker 3: (1:11,1:21,1:2,8:13)
julia> @eval @everywhere println(localindexes($dd))
(1:0,1:0,1:0,1:0)
From worker 3: (1:11,1:21,1:2,8:13)
From worker 2: (1:11,1:21,1:2,1:7)
Finally, is there a reason why similar does not yield a DArray with the same distribution?
julia> dd=drand((11,21,2,13),workers(),[1,1,1,2]);
julia> @eval @everywhere println(localindexes($dd))
(1:0,1:0,1:0,1:0)
From worker 2: (1:11,1:21,1:2,1:7)
From worker 3: (1:11,1:21,1:2,8:13)
julia> ddc=similar(dd);
julia> @eval @everywhere println(localindexes($ddc))
(1:0,1:0,1:0,1:0)
From worker 2: (1:11,1:11,1:2,1:13)
From worker 3: (1:11,12:21,1:2,1:13)
I appreciate any help on this, and again thanks for the effort with this package!
- 主要语言
- Julia
- 星标
- 205
- 派生
- 34
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaParallel/DistributedArrays.jl 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
JuliaParallel/DistributedArrays.jl#255 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
JuliaParallel/DistributedArrays.jl#239 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
JuliaParallel/DistributedArrays.jl#238 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 30/100
查看 JuliaParallel/DistributedArrays.jl 的全部 Issue
相似的 Issue
-
path: splitext treats directory references and leading dots as extensions可能已有人在做 @Hiten0305l 今天认领。 未关闭
难度 2/5 半天 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
JuliaParallel/Hwloc.jl#93 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
SciML/SciMLBenchmarks.jl#1996 ·
维护者通常 1 天内回复
-
Affine transformations of `JohnsonSU` could return a `JohnsonSU`可能已有人在做 @devmotion 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
JuliaStats/Distributions.jl#2117 ·
维护者通常 2 天内回复
-
Difficult-group test writes to a closed IOStream, failing on Julia 1.14.0-beta1可能已有人在做 @ChrisRackauckas 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
JuliaSymbolics/SymbolicIntegration.jl#162 · 1 条评论 ·