Repository navigation
Conversation
Member
Author
|
This adds five microseconds per task for what I believe to be a relatively infrequently useful thing. (for context, recall that our budget is currently around 200-300us) Not sure that this is worth it. In [1]: import dask.array as da
In [2]: x = da.random.random((100000, 100000), chunks=(1000, 1000))
In [3]: y = x + x.T - x.mean(axis=0)
In [4]: from dask.optimization import cull
In [5]: dsk = dict(y.dask)
In [6]: %time _ = cull(dsk, y.__dask_keys__())
CPU times: user 287 ms, sys: 3.84 ms, total: 291 ms
Wall time: 290 ms
In [7]: from dask.core import get_dependencies
In [8]: %time _ = {k: get_dependencies(dsk, k) for kk in y.__dask_keys__() for k
...: in kk}
CPU times: user 48.4 ms, sys: 0 ns, total: 48.4 ms
Wall time: 47.9 ms
In [9]: 0.290 / len(dsk) * 1e6 # microseconds per task
Out[9]: 5.420560747663551It might would be nicer to handle this in |
mrocklin
force-pushed
the
cull-before-send
branch
from
July 17, 2018 20:00
637c871 to
ef6f9f4
Compare
Currently dask.delayed objects aren't culled prior to sending up to the scheduler. This can result in too much communication. This adds a cull step in the Client, but this should maybe be handled instead by the collections.
This doesn't affect dependencies and so screws with graphs that have aliases
mrocklin
force-pushed
the
cull-before-send
branch
from
August 1, 2018 22:07
ef6f9f4 to
cb1d6eb
Compare
Member
|
Is this still needed? |
Member
|
IIUC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently dask.delayed objects aren't culled prior to sending up to the
scheduler. This can result in too much communication.
This adds a cull step in the Client, but this should maybe be handled instead
by the collections.