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/api-kernel-gen-attn/2026-11-06/cubin-followup/README.md # 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 / api-kernel-gen-attn / 2026-11-06 / cubin-followup / README.md` 118 lines · 6792 bytes Raw Blame History Rendered 1 2 # Final cubin differential follow-up 3 4 The original receipt proves raw IR and encoded instruction text equality. It did not compare final cubin containers. This follow-up closes that acceptance gap without rewriting the original logs. 5 6 `tests/api_kernel_gen_attention.c` now compares the complete solved `OmegaRegAlloc` structure, including uniform allocation and peak UGPR usage. Every successfully allocated spec must encode successfully on both paths and produce identical text. Both texts are then independently passed to `omega_cubin_pack`, with the four attention pointer arguments and eight scalar arguments at their source-defined constant-bank offsets, the existing full constant-bank capacity, the corresponding allocator's `omega_bw_gpr_declared(peak_gpr_usage)`, and the shape's existing shared-memory reservation. Full cubin lengths and every byte are compared. The cubin API has no separate UGPR metadata input; uniform allocation is compared in the full solved allocator and encoded text. 7 8 The existing perturbed-record red control remains. A second red control perturbs the final byte of the Omega-path cubin after both packs succeed; the target requires rc 1. All cubins remain in memory and are freed; no cubin binary or NVIDIA disassembly is committed. 9 10 The source partition is unchanged. Generator units, production cutover, shared registration, compiler pin and allocator/encoding/cubin implementations are unchanged. 11 12 Commands are run from the worktree under: 13 14 ```sh 15 bwrap --dev-bind / / --dev /dev --proc /proc -- \ 16 taskset -c 10-14 nice -n 10 \ 17 env OMEGA_OMC="$HOME/work/cudastack/omega-mv/seed/out/omc" \ 18 OMEGA_BRIDGE=/tmp/integ/bridge-73-`79e8c36` \ 19 OMEGA_SEED="$HOME/work/cudastack/omega-bridge/build/bootstrap/omc" \ 20 make -j3 -f Makefile -f tests/attention_kgen.mk TARGET 21 ``` 22 23 `TARGET` is `test-api-kgen-attention` and then `test-api-kgen-attention-mutants`. Final full outputs are `differential-final.log` and `mutants.log` in this directory, captured verbatim through `tee` with shell `pipefail`. The parent's integrated gate remains separate. Physical chip qualification is NOT_RUN; the original README's authorization-gated chip runbook still applies. 24 25 The first extended differential returned rc 0 and reported `cases=39423 cubins=39392 records+allocation+encoded-bytes+cubins identical`, with both red controls detected. Its `differential.log` is preserved, including a libgcov warning about the prior fixture's profile checksum. The fixture object recipe now deletes its disposable `.gcda` when recompiling, and depends on its make fragment so changed fixture build settings regenerate that object. 26 27 ## Observed final differential 28 29 The rebuilt fixture returned rc **0** with no stale-profile warning: 30 31 ```text 32 ATTENTION-IR DIFFERENTIAL PASS cases=39423 cubins=39392 records+allocation+encoded-bytes+cubins identical 33 PASS attention red control detected perturbed IR record 34 PASS attention red control detected perturbed final cubin 35 ``` 36 37 Thus all **39,392** successfully allocated specs have full solved-allocation, 38 encoded-text and complete cubin equality; invalid input dispositions remain in 39 the **39,423** total cases. Each negative binary invocation returns **1**; 40 the enclosing make target returns **0** only when both are detected. 41 42 The standalone mutation target returned rc **0** with final line 43 `PASS attention seeded semantic mutants: 5 killed`. Its cubin-aware baseline 44 reported the same case/container counts. Descriptor offset, query offset, 45 thread special register, scalar argument offset and stall-control field 46 mutations each regenerated and compiled successfully, then returned rc **1** 47 with an IR record mismatch. 48 49 The parent now includes this make fragment from shared build wiring, while the 50 standalone receipt runner supplies it with `-f`. The fragment has an include 51 guard so those two routes can coexist without overriding recipes. The final 52 integration-shape command deliberately supplies the fragment twice, and uses 53 `-j1` to serialize its two goals: 54 55 ```sh 56 # Under the identical bwrap/taskset/nice/env wrapper above: 57 make -j1 -f Makefile -f tests/attention_kgen.mk -f tests/attention_kgen.mk \ 58 test-api-kgen-attention test-api-kgen-attention-mutants 59 ``` 60 61 Its output is retained separately as `integration-include.log`. 62 63 ## Final outcomes 64 65 `integration-include.log` returned rc **0**, without recipe-redefinition or 66 stale-profile warnings. Its differential baseline again reported 67 `cases=39423 cubins=39392 records+allocation+encoded-bytes+cubins identical`; 68 both independent red controls were detected, and its final line is 69 `PASS attention seeded semantic mutants: 5 killed`. 70 `rc.tsv` records commands, statuses and final lines for each acceptance receipt. 71 72 The following coverage command was run under the same device-hidden CPU 73 wrapper, with this evidence directory as cwd: 74 75 ```sh 76 gcov --json-format -b -c -f \ 77 ~/work/cudastack/lanes/KernGenAttnOm/build/api-kgen/attention_diff.gcno 78 ``` 79 80 It returned rc **0**. `coverage.log` and `attention_diff.gcov.json.gz` retain 81 the output and machine-readable profile. Gcov reports `gen_attention` at 82 `100.00% of 312` lines and `gen_attention_general` at `100.00% of 176`; 83 `cubin_same` is at `100.00% of 11`. This query on that profile returned `[]`, 84 saved verbatim in `generator-uncovered-edges.json`: 85 86 ```sh 87 gzip -dc attention_diff.gcov.json.gz | 88 jq '[.files[].lines[] | 89 select(.function_name=="gen_attention" or 90 .function_name=="gen_attention_general") | 91 select(any(.branches[]?; .count==0)) | 92 {line:.line_number,function:.function_name}]' 93 ``` 94 95 The original README's defensive-helper reachability explanation remains 96 applicable. These percentages are gcov's measured output, not an estimate. 97 The final crumb command, under the same wrapper, was 98 `sh -c 'crumb compile . && crumb verify .'`; rc **0**, final lines: 99 100 ```text 101 crumb compile: 46 crumbs, 0 rewritten, HEAD `caad63b` 102 crumb verify: OK: 46 crumbs current 103 ``` 104 105 | Tier | Verdict | 106 |---|---| 107 | Seeded generation and C-oracle differential, including full allocation/text/cubin | PASS | 108 | Deliberately perturbed IR record and final cubin | PASS: both refused with rc 1 | 109 | Seeded behavioral mutants | PASS: 5 compiled mutants killed | 110 | Standalone/shared-include build coexistence | PASS | 111 | Crumb compile/verify | PASS | 112 | Integrated host/simulator gate rerun after this follow-up | NOT_RUN by this lane; parent owns the integrated gate | 113 | Physical GB10 qualification | NOT_RUN: no authorized chip window | 114 | Merge/deployment | NOT_RUN | 115 116 This follow-up changes only the owned attention fixture, its make fragment and 117 evidence. The production cutover, seeded units, shared build wiring and replay 118 ABI are unchanged.