Skip to content

Another task ordering issue #3055

@mrocklin

Description

@mrocklin

This example shows poor memory management:

import dask.array as da
from colorize import visualize_colors

A, B = 20, 99 
x = da.random.normal(size=(A, B), chunks=(1, None))
for _ in range(2):
    y = (x[:, None, :] * x[:, :, None]).cumsum(axis=0)
    x = x.cumsum(axis=0)
w = (y * x[:, None]).sum(axis=(1, 2))

visualize_colors(w.__dask_graph__(), filename='dask.pdf')

dask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions