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

distributed writes #7

Closed
d-v-b opened this issue Jul 28, 2020 · 2 comments
Closed

distributed writes #7

d-v-b opened this issue Jul 28, 2020 · 2 comments

Comments

@d-v-b
Copy link

d-v-b commented Jul 28, 2020

I'm trying to write a tensorstore array using dask on a single machine. I have a bunch of worker processes that each a) call tensorstore.open(spec, write=True).result(), and then attempt to assign a numpy array to a contiguous, chunk-aligned range of indices in the resulting tensorstore array. This does not appear to be running in parallel.

How can I make this work? Are there any best practices for writing to tensorstore arrays from multiple processes that I should be aware of?

@jbms
Copy link
Collaborator

jbms commented Jul 28, 2020

This should work. Can you send a simple example that demonstrates the problem so that I can look into it?

@d-v-b
Copy link
Author

d-v-b commented Jul 28, 2020

I made a minimal reproducible example which confirms what you say -- multiprocess writes work fine. So I must be doing something wrong in the code that wasn't parallelizing properly.

@d-v-b d-v-b closed this as completed Jul 28, 2020
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

2 participants