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

Change distribution after create Matrix #698

Open
Goon83 opened this issue Mar 2, 2020 · 6 comments
Open

Change distribution after create Matrix #698

Goon83 opened this issue Mar 2, 2020 · 6 comments
Assignees

Comments

@Goon83
Copy link

Goon83 commented Mar 2, 2020

Hi All,
Another question regarding the function availability of DASH.

What will happen if I change the distribution (block size, halo layer) of a existing Matrix ?
Will the DASH support re-distribution the data following new parameters?

Bests,
Bin

@devreal
Copy link
Member

devreal commented Mar 3, 2020

What will happen if I change the distribution (block size, halo layer) of a existing Matrix ?
Will the DASH support re-distribution the data following new parameters?

I'm not sure that is possible with the current interface. Once a matrix is allocated there is no way to change its layout (afaics).

@Goon83
Copy link
Author

Goon83 commented Mar 4, 2020

Hi @devreal
Got it and thanks for the clarification.

Bests,
Bin

@devreal
Copy link
Member

devreal commented Mar 4, 2020

Could you elaborate what you have in mind for it? Maybe we will get a chance at some point to implement such a feature if there is a good use case.

@Goon83
Copy link
Author

Goon83 commented Mar 6, 2020

Hi @devreal
It is like the "repart" operator in SciDB (doc). . The "repart" changes the chunk size (called tile size in DASH) of an existing array. The "repart" in SciDB mostly involves the disk operation (might be just metadata but not sure so far). A "repart" for DASH array definitely needs to consider lots of communication among processes (units in DASH) to redistribute data.

We might also explore this idea in near future. To avoid repeating work, ping me [email protected]
if you are interested in working together. We can have a chat then.

Bests,
Bin

@fuchsto
Copy link
Member

fuchsto commented Apr 25, 2020

@dash-project/developers First, I want to announce my "comeback" as an active contributor to DASH after my hiatus of over a year.
Regarding this feature request, I have prepared concepts for dynamic adaptations such as load-balancing dash::Matrix (aka dash::NArray) which I originally designed.
Also, I'm currently supervising a master's thesis on sparse matrix concepts for DASH.
I will put the respective current states of development in feature branches as soon as possible.

In brief, the NArray / Matrix concepts will not be affected but extended by additional free-function-style concepts. So if you (@Goon83) can use dash::Matrix in its current state and postpone the rebalancing / repartitioning parts in your work, your existing code will be unaffected.

@fuchsto fuchsto self-assigned this Apr 25, 2020
@Goon83
Copy link
Author

Goon83 commented May 28, 2020

Hi @fuchsto
Sorry for not monitoring this thread closely.

Welcome back to this wonderful project.

Yes, the rebalancing feature is very interesting to us.

Let me know how can I help.
Bests,
Bin

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

3 participants