flip order of get_program args (#10905)

This commit is contained in:
George Hotz
2025-06-20 17:23:23 -07:00
committed by GitHub
parent 1ce63f8d04
commit 7636d2cdc5
4 changed files with 20 additions and 20 deletions

View File

@@ -60,7 +60,7 @@ s = UOp(Ops.SINK, dtypes.void, (st_0,))
# convert the computation to a "linearized" format (print the format)
from tinygrad.engine.realize import get_program, CompiledRunner
program = get_program(Device[DEVICE].renderer, s)
program = get_program(s, Device[DEVICE].renderer)
# compile a program (and print the source)
fxn = CompiledRunner(program)