Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Binyang2014 committed Apr 29, 2024
1 parent a90647e commit 0e77d88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions msccl/language/tb_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,6 @@ def manual_assign_tbs(rank_dag):
f"Threadblock {tbid} send:{tb.send} recv:{tb.recv} channel:{tb.channel}\n" \
f"Operation send:{op.dst.rank if op.is_send() else -1} recv:{op.dst.rank if op.is_recv() else -1} channel:{op.channel}")

def convert_to_exectuion_plan(instr_dag):
ops = instr_dag.convert_set_list()
ops = sorted(ops, key=lambda x: x.step)
for op in ops:
rank = op.rank
tbid = op.tb
if tbid not in instr_dag.tbs[rank]:
instr_dag.tbs[rank][tbid] = Threadblock(id=tbid)
tb = instr_dag.tbs[rank][tbid]
tb.ops.append(op)

def _get_tb_options(mapping, send, recv, channel, num_tbs):
options = []
for tbid, tb in mapping.items():
Expand Down
1 change: 0 additions & 1 deletion msccl/language/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def scratch_size(self):

@dataclass
class Threadblock:
id: int = -1
channel: int = -1
send: int = -1
recv: int = -1
Expand Down

0 comments on commit 0e77d88

Please sign in to comment.