Skip to content

How to display error on DArray remote construction ? #229

@matthiasbe

Description

@matthiasbe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions