JuliaParallel / JuliaParallel/DistributedArrays.jl
How to display error on DArray remote construction ?
- Vorherrschende Sprache
- Julia
- Sterne
- 205
- Forks
- 34
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.