(status)
| 16 | |
| 17 | cl_errors = {attr: k for k in dir(cl) if k.startswith("CL_") and isinstance(attr:=getattr(cl, k), int) and attr <= 0} |
| 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): |
no test coverage detected
searching dependent graphs…