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/evidence/amd-qwen38-native-20261113/coding24/coding24-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 / evidence / amd-qwen38-native-20261113 / coding24 / coding24-check.py` 20 lines · 1578 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 3 from pathlib import Path 4 import json,subprocess,re,runpy,hashlib,traceback 5 D=Path(__file__).resolve().parent;S=D/'source' 6 g=runpy.run_path(str(D.parent/'omega-lighthouse-diagnostics/driver-real2.py'),run_name='gold-import')['GOLD'] 7 r={'phase':'running','binary_sha256':hashlib.sha256((S/'omega-launch').read_bytes()).hexdigest(),'expected':g['generated_ids'],'rows':[]} 8 try: 9 for label,name,match in [('coding24-control','real2-controls.plan',False),('coding24','real2.plan',True)]: 10 m=json.loads((S/(name+'.json')).read_text()) 11 args=[str(S/'omega-launch'),'plan',str(S/name)]+[str(S/'code'/(n+'.hsaco')) for n in sorted(m['code_objects'])]+[str(Path('/tmp/qwen3.8-27b-fp8')/n) for n in m['files']] 12 p=subprocess.run(args,capture_output=True,timeout=120) 13 (D/(label+'.stdout')).write_bytes(p.stdout);(D/(label+'.stderr')).write_bytes(p.stderr) 14 z=re.search(rb'^OMEGA_PLAN ids=\[([\d, ]+)\]$',p.stdout,re.M);ids=list(map(int,z.group(1).split(b','))) if z else [] 15 steps=re.findall(rb'^OMEGA_STEP (\d+) tok=(\d+) us=(\d+)$',p.stdout,re.M) 16 row=dict(label=label,exit=p.returncode,ids=ids,all_ids_equal=ids==g['generated_ids'],steps=len(steps),plan_sha256=hashlib.sha256((S/name).read_bytes()).hexdigest());r['rows'].append(row) 17 assert p.returncode==0 and len(steps)==47 and len(ids)==24 and row['all_ids_equal']==match,row 18 r['phase']='complete' 19 except BaseException:r.update(phase='exception',detail=traceback.format_exc()) 20 (D/'coding24.json').write_text(json.dumps(r,indent=2));print(json.dumps(r),flush=True)