JuliaParallel / JuliaParallel/DistributedArrays.jl

How to display error on DArray remote construction ?

Abierto
#229 0 comentarios 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

When building the remotely the array as specified in the [documentation](https://juliaparallel.github.io/DistributedArrays.jl/stable/#Construction-from-arrays-generated-on-separate-processes-1):
```julia
ras = [@spawnat p wrong_name() for p in workers()[1:4]]
ras = reshape(ras,(2,2))
D = DArray(ras)
```

Assuming the `wrong_name()` throws an exception, the error will throw from DistributedArray code `MethodError: no method matching size(::RemoteException)` [here](https://github.com/JuliaParallel/DistributedArrays.jl/blob/b98875d16c6810d33498405d5d852a3acee19b38/src/darray.jl#L251).

The only way for me to debug this is to modify the code and add a line `[fetch(r) for r in ras]` after line 1.

This is not convenient for me because the `fetch` will induce a lot of communication so I need to put it before and remove it after debugging.

Do you know a better way to check this ? Thank you

Guía de contribución

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

Línea de trabajo

Reproduce the documented remote-construction example with wrong_name() and inspect src/darray.jl around line 251. Compare the RemoteException path with the suggested [fetch(r) for r in ras] check; done means the original remote error is exposed without requiring a debugging modification or producing the misleading size(::RemoteException) error.

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
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.