Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/om/q38-head/plan-check.py # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / om / q38-head / plan-check.py` 39 lines · 2062 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 # External verification of checked portable Omega bindings. 3 import ctypes as C,struct,sys 4 L=C.CDLL(sys.argv[1]);F=L.omega_q38_runtime;F.restype=C.c_uint32 5 F.argtypes=[C.POINTER(C.c_uint64),C.c_void_p,C.c_uint64,C.c_void_p,C.c_uint64,C.c_void_p,C.c_uint64] 6 m=(C.c_uint64*16)();b=C.create_string_buffer(struct.pack('<5120f',*([2.`7109375`]*5120)),20480);q=(C.c_uint64*192)();r=C.c_uint64() 7 def run(): 8 return F(C.byref(r),m,16,b,20480,q,192),r.value 9 m[0]=1;m[1]=248320 10 assert run()==(0,1) 11 info=list(q);hn=struct.unpack('