JuliaParallel / JuliaParallel/DistributedArrays.jl

How to display error on DArray remote construction ?

Đang mở
#229 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Julia
Star
205
Fork
34
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.