Skip to content

Commit

Permalink
[Fixbug] Prevent allreduce op from being fused (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
soodoshll committed Jul 5, 2023
1 parent f937ad2 commit 1c1cd11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/hidet/graph/transforms/fuse_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from hidet.graph.flow_graph import FlowGraph, Operator, Tensor
from hidet.graph.ops.special import BarrierOp
from hidet.graph.ops.transfer import TransferOp
from hidet.graph.ops.distributed import AllReduceOp
from hidet.graph.graph_utils.functors import analyze_usage
from hidet.graph.transforms.base import GraphPass
from hidet.utils.structure import DirectedGraph
Expand All @@ -24,7 +25,7 @@


# the following operators are not fusible
NOT_FUSIBLE = {BarrierOp, TransferOp}
NOT_FUSIBLE = {BarrierOp, TransferOp, AllReduceOp}


class FusibleGraph:
Expand Down

0 comments on commit 1c1cd11

Please sign in to comment.