Skip to content

reshape constructs extremely large chunks #8110

Closed

Description

@dcherian

What happened:

reshape constructs extremely large chunks.

Related: #5544; upstream xarray issue: pydata/xarray#5754

What you expected to happen:

reshape should not construct extremely large chunks.

Minimal Complete Verifiable Example:

# Put your MCVE code here
import dask.array

# this array has 80MB chunks
arr = dask.array.random.random((300, 180, 4, 18483), chunks=(-1, -1, 1, 183))
# this array has 8GB chunks
arr.reshape(300, 180, -1)

image

It seems like dask needs to split large chunks as was done for slicing by a list of ints in #6514

Anything else we need to know?:

Environment:

  • Dask version: 2021.07.2
  • Python version: 3.8.10
  • Operating System: Linux
  • Install method (conda, pip, source): conda

Activity

  1. GenevieveBuckley commented on Sep 7, 2021

    @GenevieveBuckley
    Contributor

    @dcherian would you be able to try out PR 8124 for me? I've given it a basic test, but it'd be very helpful if you could road test this in a more real-world situation, checking the final compute result, etc.

  2. added
    needs info
    on Oct 14, 2021
  3. removed
    needs info
    on Oct 14, 2021
  4. ncclementi commented on Oct 14, 2021

    @ncclementi
    Member

    I removed the tag `needs info since it looks like the discussion move to the PR thread I'll activate the discussion there to see if the PR is still active or if we want to close it.

  5. GenevieveBuckley commented on Oct 15, 2021

    @GenevieveBuckley
    Contributor

    ... I don't think we have an answer to this specific question about real world applications.

  6. added
    needs info
    on Oct 15, 2021
  7. jsignell commented on Dec 14, 2021

    @jsignell
    Member

    Closing this since #8124 is in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrayneeds info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions