mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
match kernelize API in process replay (#9948)
This commit is contained in:
@@ -35,7 +35,7 @@ class ProcessReplayWarning(Warning): pass
|
||||
|
||||
def recreate_sched(big_sink:UOp) -> list[UOp]:
|
||||
becomes_map = get_becomes_map(big_sink)
|
||||
sched_sink = UOp.sink(*[becomes_map.get(x,x) for x in big_sink.src])
|
||||
sched_sink = big_sink.substitute(becomes_map)
|
||||
return dedup(u.arg.ast for u in sched_sink.toposort if u.op is Ops.KERNEL)
|
||||
|
||||
def recreate_kernel(ast:UOp, opts:Renderer, applied_opts:list[Opt], name:str, _) -> str:
|
||||
|
||||
Reference in New Issue
Block a user