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