fix import time_linearizer [pr] (#9118)

only test that used it was skipped in CI due to being slow
This commit is contained in:
chenyu
2025-02-15 21:33:28 -05:00
committed by GitHub
parent c1dfe5c00d
commit 1fda98d14f

View File

@@ -103,7 +103,7 @@ def lin_to_feats(lin:Kernel, use_sts=True):
from tinygrad.device import Device, Buffer
from tinygrad.engine.search import _ensure_buffer_alloc, _time_program
from tinygrad.helpers import to_function_name, CACHELEVEL, diskcache_put
from tinygrad.helpers import to_function_name, CACHELEVEL, diskcache_get, diskcache_put
def time_linearizer(lin:Kernel, rawbufs:list[Buffer], allow_test_size=True, max_global_size=65536, cnt=3, disable_cache=False, clear_l2=False) -> float: # noqa: E501
key = {"ast": lin.ast.key, "opts": str(lin.applied_opts), "allow_test_size": allow_test_size,