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/prefill-shape/reading-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 / prefill-shape / reading-check.py` 17 lines · 823 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 # External profile oracle, not a production dependency. 3 import ctypes,sys 4 lib=ctypes.CDLL(sys.argv[1]) 5 6 # Independent profile table at every small boundary and representative large rows. 7 r=lib.omega_native_qgreading 8 r.argtypes=[ctypes.POINTER(ctypes.c_uint64),ctypes.c_uint64,ctypes.c_uint64];r.restype=ctypes.c_uint32 9 for rows in list(range(0,258))+[4095,4096,4097,2**32-1,2**32,2**64-1]: 10 for index in [0,1,2,3,4,2**64-1]: 11 out=ctypes.c_uint64(123) 12 assert r(ctypes.byref(out),rows,index)==0 13 expected=(4,8,45,0) if 0