JuliaParallel / JuliaParallel/DistributedArrays.jl

Multiple chunks on one process

Abierto
#183 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Julia
Estrellas
205
Forks
34
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I build a DArray as follows:

```
@everywhere using DistributedArrays
r1 = @spawnat 2 zeros(4,4)
r2 = @spawnat 2 zeros(4,4)
r3 = @spawnat 2 rand(4,4)
r4 = @spawnat 3 rand(4,4)
ras = [r1 r2; r3 r4]
D = DArray(ras)
```

My expectation is that the output should have two 4x4 blocks of zeros and two 4x4 blocks of random numbers. Instead, I get three blocks of zeros and one block of random numbers:

```
8×8 DArray{Float64,2,Array{Float64,2}}:
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.525043 0.321681 0.489682 0.586815
0.0 0.0 0.0 0.0 0.569794 0.780382 0.542156 0.215128
0.0 0.0 0.0 0.0 0.00308504 0.912877 0.179453 0.568009
0.0 0.0 0.0 0.0 0.410886 0.333188 0.743346 0.969894
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce the example using DArray and the four spawned 4×4 arrays, then trace how DArray consumes the block matrix and assigns chunks to processes. Compare the observed 8×8 layout with the expected two zero and two random blocks; done means the intended block values are preserved, with a regression test for multiple chunks on one process.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
julia
Área
distributed-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.