Skip to content

Parallel read with MPI #6919

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

Closed
mengaldo opened this issue Aug 16, 2022 · 4 comments
Closed

Parallel read with MPI #6919

mengaldo opened this issue Aug 16, 2022 · 4 comments

Comments

@mengaldo
Copy link

Is your feature request related to a problem?

Is it possible to somehow extend xarray to use MPI I/O?

Describe the solution you'd like

We would need to know the offset from where the actual data starts within the file.
Is there a way of retrieving that?
Disclaimer: I am not an expert of NetCDF format - so, apologies if the question is trivial!

Describe alternatives you've considered

No response

Additional context

No response

@dcherian
Copy link
Contributor

Haven't used it but you could consider reading with dask chunks and then using dask-mpi

@mengaldo
Copy link
Author

Thank you for the prompt response @dcherian
However, is there a way of knowing the offset from where the actual data starts within the .nc file read by xarray?

@dcherian
Copy link
Contributor

I don't know. I think we just hand off to netcdf4-python to figure it out.

@jhamman
Copy link
Member

jhamman commented Sep 12, 2023

@mengaldo - not sure if this issue is still of interest to you, but now that we can map internal netcdf chunks to dask chunks automatically (#7948), we should be able to use dask-mpi to support parallel reads as you describe.

Going to close this issue since the conversation died off about a year ago but feel free to reopen if there is more to discuss.

@jhamman jhamman closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants