MCPcopy
hub / github.com/tinygrad/tinygrad / count

Method count

tinygrad/runtime/ops_cl.py:129–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 super().__init__(device, CLAllocator(self), [renderer], functools.partial(CLProgram, self), arch=arch)
128
129 def count(self) -> int: return len(unwrap(self.device_ids))
130
131 def synchronize(self):
132 check(cl.clFinish(self.queue))

Callers 15

postrenderMethod · 0.45
__init__Method · 0.45
is_foldableFunction · 0.45
_build_decode_tablesFunction · 0.45
UOpClass · 0.45
ops.pyFile · 0.45
__wrapperFunction · 0.45
reshapeMethod · 0.45
rearrangeMethod · 0.45
einsumMethod · 0.45
pmc_startMethod · 0.45
pmc_readMethod · 0.45

Calls 1

unwrapFunction · 0.90

Tested by

no test coverage detected