(linear:UOp, var_vals:dict[str, int]|None=None, input_uops:tuple[UOp, ...]=(), update_stats=True, jit=False, wait=False)
| 250 | return graph_rewrite(linear, pm_optimize_local_size, name="optimize local size", walk=True) |
| 251 | |
| 252 | def run_linear(linear:UOp, var_vals:dict[str, int]|None=None, input_uops:tuple[UOp, ...]=(), update_stats=True, jit=False, wait=False): |
| 253 | if not jit: linear = compile_linear(linear, validate=VALIDATE_WITH_CPU) |
| 254 | ctx = ExecContext(var_vals or {}, input_uops, update_stats, jit, wait or DEBUG>=2) |
| 255 | for call in linear.src: pm_exec.rewrite(call, ctx) |
| 256 | |
| 257 | def time_call(call:UOp, var_vals:dict[str, int]|None=None, timeout:int|None=None, clear_l2:bool=False) -> float: |
| 258 | if clear_l2: |
searching dependent graphs…