MCPcopy
hub / github.com/tinygrad/tinygrad / checked

Function checked

tinygrad/runtime/ops_cl.py:20–20  ·  view source on GitHub ↗
(ret, status)

Source from the content-addressed store, hash-verified

18def check(status):
19 if status != 0: raise RuntimeError(f"OpenCL Error {status}: {cl_errors.get(status, 'Unknown error')}")
20def checked(ret, status): return (check(status.value), ret)[1]
21
22class CLCompiler(Compiler):
23 def __init__(self, dev:CLDevice, compile_key:str):

Callers 5

compileMethod · 0.70
__init__Method · 0.70
__call__Method · 0.70
_allocMethod · 0.70
__init__Method · 0.70

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…