Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display error on DArray remote construction ? #229

Open
matthiasbe opened this issue Mar 18, 2021 · 0 comments
Open

How to display error on DArray remote construction ? #229

matthiasbe opened this issue Mar 18, 2021 · 0 comments

Comments

@matthiasbe
Copy link

matthiasbe commented Mar 18, 2021

When building the remotely the array as specified in the documentation:

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant