MCPcopy
hub / github.com/tinygrad/tinygrad / _all_devs

Method _all_devs

tinygrad/engine/jit.py:164–166  ·  view source on GitHub ↗
(batch_devs:list[Compiled], new_call:UOp)

Source from the content-addressed store, hash-verified

162
163 @staticmethod
164 def _all_devs(batch_devs:list[Compiled], new_call:UOp) -> list[Compiled]:
165 return dedup(batch_devs + [Device[x] for b in get_call_arg_uops(new_call)
166 for x in (b.device if isinstance(b.device, tuple) else (b.device,))])
167
168 @staticmethod
169 def supports_uop(batch_devs:list[Compiled], new_call:UOp) -> bool:

Callers 4

supports_uopMethod · 0.80
supports_uopMethod · 0.80
supports_uopMethod · 0.80
supports_uopMethod · 0.80

Calls 2

dedupFunction · 0.90
get_call_arg_uopsFunction · 0.90

Tested by

no test coverage detected