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

Use new merge_chunks function in reduction #256

Merged
merged 1 commit into from
Jul 17, 2023
Merged

Use new merge_chunks function in reduction #256

merged 1 commit into from
Jul 17, 2023

Conversation

tomwhite
Copy link
Member

Fixes #221

The key idea here is that merge_chunks is implemented using map_direct rather than using rechunk, and is therefore amenable to blockwise fusion.

Here are the before/after plans for lithops-matmul-random.py - note that there are 5 arrays to compute, rather than 7:

cubed-before

cubed-after

There are 20% fewer tasks too, which makes the computation run faster

1689162377_timeline

1689164509_timeline

using `map_direct` rather than using `rechunk`, and is therefore
amenable to blockwise fusion.
@tomwhite tomwhite merged commit 22e57d6 into main Jul 17, 2023
6 checks passed
@tomwhite tomwhite deleted the merge-chunks branch July 17, 2023 08:42
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

Successfully merging this pull request may close these issues.

Fuse rechunk and blockwise combine operations in reductions
1 participant