JuliaParallel / JuliaParallel/DistributedArrays.jl

How to display error on DArray remote construction ?

Open
#229 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
205
Forks
34
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.