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-final-20261113/calculate.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-final-20261113 / calculate.py` 24 lines · 1558 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 # External calculation and evidence verifier, not a production dependency. 3 from pathlib import Path 4 import json,statistics 5 D=Path(__file__).resolve().parent 6 v=json.loads((D/'native/state.json').read_text()) 7 a=[r for r in v['rows'] if r['label']!='warmup'] 8 assert v['phase']=='complete' and len(a)==5 9 assert all(r['shape_ok'] and r['hip_ids_equal'] and r['steps']==285 for r in a) 10 assert v['control']['shape_ok'] and not v['control']['hip_ids_equal'] 11 assert all(r['ids']==json.loads((D/'numerical/graph.json').read_text())['ids'] for r in a) 12 ms=statistics.median(r['decode_ms_median'] for r in a) 13 b=json.loads((D/'spark-baseline/qualification.json').read_text()) 14 r=dict(accepted_decode_ms=[r['decode_ms_median'] for r in a],median_decode_ms=ms, 15 derived_reciprocal_median_step_tokens_s=1000/ms,historical_spark_graph_ms=b['graph_ms_per_token'], 16 historical_spark_graph_time_ratio=b['graph_ms_per_token']/ms, 17 median_prefill_ms=statistics.median(r['prefill_ms'] for r in a), 18 median_process_ready_s=statistics.median(r['marks']['ready_s'] for r in a), 19 median_process_first_generated_id_s=statistics.median(r['marks']['first_generated_id_s'] for r in a), 20 median_process_total_s=statistics.median(r['total_s'] for r in a), 21 sampled_peak_rss_kib=max(r['memory_peak']['rss_kib'] for r in a), 22 sampled_peak_vram_kib=max(r['memory_peak']['drm']['drm-memory-vram']['value'] for r in a), 23 sampled_peak_gtt_kib=max(r['memory_peak']['drm']['drm-memory-gtt']['value'] for r in a)) 24 print(json.dumps(r,indent=2))