mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-02-14 16:44:59 -05:00
multioutput ScheduleItem (#3699)
* refactor realize.py * update docs * update test_sched * update runners and devices * update openpilot and unit tests * cleanup runner lowering * update more tests
This commit is contained in:
@@ -73,4 +73,6 @@ class DiskRunner(JITRunner):
|
||||
class DiskDevice(Compiled):
|
||||
def __init__(self, device:str): super().__init__(device, DiskAllocator(device[len("disk:"):]), None, None)
|
||||
@functools.lru_cache(None) # pylint: disable=method-cache-max-size-none
|
||||
def get_runner(self, ast:LazyOp): return DiskRunner(ast)
|
||||
def get_runner(self, *ast:LazyOp):
|
||||
assert len(ast) == 1, "DiskRunner doesn't support multioutput kernels."
|
||||
return DiskRunner(ast[0])
|
||||
|
||||
Reference in New Issue
Block a user