Skip to content

Commit

Permalink
Block fusion for barrier tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Nov 20, 2024
1 parent 750cb91 commit 1b14f4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distributed/shuffle/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ def p2p_barrier(id: ShuffleId, *run_ids: int) -> int:

class P2PBarrierTask(Task):
spec: ShuffleSpec
block_fusion: bool

__slots__ = tuple(__annotations__)

Expand All @@ -598,6 +599,7 @@ def __init__(
):
self.spec = spec
super().__init__(key, func, *args, **kwargs)
self.block_fusion = True

def __repr__(self) -> str:
return f"P2PBarrierTask({self.key!r})"

0 comments on commit 1b14f4a

Please sign in to comment.