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.
D8: process-tax line in hello_gpu and tests/run_d8_process_tax.sh (dry run PASS, chip NOT_RUN)
merged8352ddd1ad36786d #366 · opened 2026-11-06 22:15 UTC · closed 2026-11-15 14:36 UTC · merged 2026-11-15 14:36 UTC
Imported from GitHub aien-dev/CUDApp#366, by drakestapleton
Base d4daaa3557c979d8212a6488e939fe2ce52ede4f · Head 7aa5c755770f3347da1d59aa0897baf6595b13ba
Merged on GitHub as 45e41c72852ee148047be95f5c480ee4897feda1; reachable from main 21d8de285f713adf09e0d6ba6db2b37139d0674e (observed 2026-11-18T16:38:19Z)
drakestapleton wrote on 2026-11-06 22:15 UTC
D8: the process-tax line and command (row D8, DRA-158), driven by Omega
Row D8 on the DRA-158 run sheet was NOT_RUN because there was no command to run. This PR adds the command. The driver, the judge and the mutant gate are first-party Omega (.om), compiled by the pinned seeded omc, as the pure-Omega directive of 2026-11-07 requires.
Base. The base is integ/omega-cuda-stack (CUDApp#280) at d4daaa35. The D8 inputs exist only there: om/graph/hello-plan.om mode 5, omega_gpu_session_alloc_stats and the hello migration controls. Merge this PR into that branch, or retarget it once #280 lands.
What changed
hello_gpu prints one overhead line. It reads its own VmRSS before the open, after the open and with its buffers allocated. It also prints its own buffer bytes and the session's driver allocations. --sim prints the same line without the open.
The KiB rounding and the signed differences are Omega, in om/graph/hello-plan.om mode 5.
--hold-ms=N (at most 60000) holds the buffers so another process can read this one.
The control build adds --d8-ballast-mib=N, the negative control.
tests/d8_process_tax.om holds the bar. Its shared part is tests/d8_lib.om (byte buffers, argv, files, spawn and reap, environment, PATH lookup). The bar was fixed before any chip run.
B1: the run passes.
B2: there is exactly one D8 line, and its differences add up.
B3: VmRSS read from outside is within 4096 KiB of the line.
B4: the driver's per-process report lists the pid.
B5: TAX = max(0, open cost, resident beyond own buffers) + max(0, driver MiB×1024 − own KiB). TAX must be ≤ 262144 KiB.
262144 KiB is 256 MiB. WolframLanguageEvaluator: 256*2^10 -> 262144, N[4.6*10^9/(256*2^20)] -> 17.136, 512*2^10 -> 524288. The bar is 17.1× below the quoted 4.6 GB.
gpu takes one spark-window lease (gb10 exclusive, 20 minutes). The program keeps the 1080 s wall clock itself. It measures main, then --bug=short, then a 512 MiB ballast. The verdict is PASS only when main passes and both controls are caught.
tests/d8_mutants.om builds the three D8 semantic mutants of hello-plan.om (d8-own-round, d8-beyond-sign, d8-driver-kib). Each mutant is generated through om/units.sh, linked into tests/test_graph_residue.c and compared with build/graph-residue. A surviving mutant, or a mutation site that is missing or appears more than once, fails the gate. make test-graph-residue-mutants runs it after the existing residue-mutants.py. The three D8 tuples are no longer in that Python file.
mk/dx-d8.mk.make d8-process-tax-dry-run and make d8-process-tax are one-line invocations of the compiled program. The rule concatenates the .om files and compiles them with $(OMEGA_OMC). Off an omc host the targets print NOT_RUN.
CI. The om-units job (ubuntu-24.04-arm, omega-mv e5b32567) installs bubblewrap and runs make d8-process-tax-dry-run test-graph-residue-mutants.
Removed:tests/run_d8_process_tax.sh, and the D8 block this PR had added to tests/dx/hello_sim_test.sh. The dry run now covers both of its checks (the hold bound and the default build's ballast refusal).
Docs.examples/hello_gpu/README.md now lists the host tools and labels nvidia-smi as ORACLE. docs/issues/D8-process-tax.md and docs/PAIN_POINTS.md point at the .om driver. The row stays PLANNED, and the chip is NOT_RUN.
Migration C (directive: a minimal addition to existing foreign code that names its successor)
examples/hello_gpu/hello_gpu.c (+100): the measurement, hold and ballast code. Its arithmetic is already in hello-plan.om mode 5.
tests/test_graph_residue.c (+8): the print_overhead grid used by the oracle differential.
Both are labelled in the source. Their successor is the native .om hello of CUDApp#79 (OM-GPU-RETIRE).
Evidence: evidence/d8-process-tax/20261107T080454Z/ (spark, core 18, nice 10, no GPU)
Check
Result
Old shell vs new .om dry run
Both exit 0. With digits normalized, the only differences are the two checks moved in from hello_sim_test.sh and the wording of the last line (dry-run-old-vs-new.diff)
check-gpu on 12 recorded windows, old vs new
Output and exit status are byte-identical in all 12. True good → 0. Blind ballast, corrupted line, sums disagree, no driver report, tax over the bar and short control passing → 1. No main log, no device, empty directory and missing directory → 2 (check-gpu/compare.txt)
make d8-process-tax-dry-run
rc 0, D8 DRY RUN: PASS. Simulator tax 12 KiB. --bug=short fails B1. Ballast shows +524304 KiB and fails B5. Device-hidden gpu path → NOT_RUN. Hold bound and default-build ballast are refused. Judge and verdict self-tests behave as expected
execprog cannot pass a child environment. The workaround is to run /usr/bin/env K=V ... as the child. omega-mv branch hive/execprog-env is not merged.
There is no signal-disposition word. An interrupted gpu run leaves its lease to expire after 20 minutes instead of closing it.
There is no CPU-affinity word. Pinning goes through /usr/bin/taskset.
Not run
make d8-process-tax on the chip: NOT_RUN. It needs an authorized spark-window lease. No chip receipt exists, and this PR claims none.
CI dependency on #280
The x86 jobs inherit #280's test-prefill-scoped failure: om/prefill-shape/scoped-check.c:37 relies on C's unspecified order of evaluating arguments. x86 gcc reads opened and keyed before it calls scoped(). The repair (hoist the call) has been handed to #280's owner. This PR does not touch that file.
Apply it
git checkout -b patch-8352ddd1ad36786dd4daaa3557c979d8212a6488e939fe2ce52ede4f
curl -fsSL https://interplane.io/drakestapleton/CUDApp/patches/8352ddd1ad36786d.patch | git am
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5c154943..57d99ba3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -98,6 +98,10 @@ jobs:
run: make test-om-units test-om-encoder-mutants test-om-cubin-mutants OMEGA_MV="$RUNNER_TEMP/omega-mv" OMEGA_BRIDGE_DIR="$RUNNER_TEMP/omega-bridge"
- name: Exact MMIO contract and wrong-cache-policy control
run: make test-sm121-mmio OMEGA_MV="$RUNNER_TEMP/omega-mv"
+ - name: D8 process-tax dry run and D8 mutants (tests/d8_process_tax.om, tests/d8_mutants.om)
+ run: |
+ sudo apt-get update -qq && sudo apt-get install -y -qq bubblewrap
+ make d8-process-tax-dry-run test-graph-residue-mutants OMEGA_MV="$RUNNER_TEMP/omega-mv" OMEGA_BRIDGE_DIR="$RUNNER_TEMP/omega-bridge"
sbom:
runs-on: ubuntu-latest
timeout-minutes: 10
diff --git a/docs/PAIN_POINTS.md b/docs/PAIN_POINTS.md
index 847bd233..a7b57c69 100644
--- a/docs/PAIN_POINTS.md
+++ b/docs/PAIN_POINTS.md
@@ -130,7 +130,7 @@ The workarounds can be worse than the error. In Triton's sm_121 issue: "Those \"
**Why people stay.** It is a fixed cost per process, small next to a large model on a large GPU.
-**CUDA++'s answer (row D8).** A CUDA++ process maps no CUDA library at all: on 2026-10-21 Aien's live Qwen3.6-35B-A3B server (mixture-of-experts, about 3B parameters active per token) had only the C library, the maths library, `libgcc_s` and the loader mapped (Omega `evidence/WHAT-OMEGA-IS-20261021/live-serve-no-cuda.txt`). The row is done when the memory a CUDA++ process holds beyond its own buffers is measured and printed. Status: PLANNED (needs a chip window; section 3, D8).
+**CUDA++'s answer (row D8).** A CUDA++ process maps no CUDA library at all: on 2026-10-21 Aien's live Qwen3.6-35B-A3B server (mixture-of-experts, about 3B parameters active per token) had only the C library, the maths library, `libgcc_s` and the loader mapped (Omega `evidence/WHAT-OMEGA-IS-20261021/live-serve-no-cuda.txt`). The row is done when the memory a CUDA++ process holds beyond its own buffers is measured and printed. `hello_gpu` now prints that line, and `tests/d8_process_tax.om` holds a bar fixed before any chip run: at most 256 MiB, with two negative controls (`docs/issues/D8-process-tax.md`). The dry run passes on the host. Status: PLANNED (chip NOT_RUN: needs a chip window, `make d8-process-tax`; section 3, D8).
### 2.8 Lock-in by licence (rank 8)
@@ -199,7 +199,7 @@ Each row has a done-when anyone can run. A row is DONE only with a receipt on a
| D5 | Builds in seconds, ships small | Fresh-checkout build time and library size printed by a receipt on the Spark | DONE (`evidence/dx/pain-points/d5-build-from-empty.txt`) |
| D6 | A new chip works on day one or is refused with a sentence | `make doctor` names any unqualified NVIDIA GPU with what is missing and the porting steps; never a bare "no kernel image"; host test with an unknown PCI id | DONE (`evidence/dx/d2-doctor/fake-machines.txt`) |
| D7 | Same inputs, same bits, at no cost | Two runs of the same job give the same output hash, on the simulator and on the chip | DONE: simulator (hello-gpu); GB10 for hello-gpu, bf16 GEMV, rmsnorm, decode attention, 10 runs each (`evidence/d7-same-bits-chip/2026-10-27/`); other kernels not hashed |
-| D8 | No per-process CUDA tax | The memory a CUDA++ process holds beyond its own buffers is measured and printed | PLANNED (needs a chip window) |
+| D8 | No per-process CUDA tax | The memory a CUDA++ process holds beyond its own buffers is measured and printed | PLANNED: line and command exist (`make d8-process-tax-dry-run` passes on the host); chip NOT_RUN (needs a chip window) |
| D9 | No licence that stops you | At 2026-10-22, MIT and reverse-engineering/port rights; current candidate is Apache-2.0 WITH LLVM-exception with the exact MIT snapshot preserved (`docs/LICENSING_TRANSITION.md`) | Historical receipt `evidence/dx/pain-points/licence.txt` |
| D10 | No compiling at run time | hello-gpu prints its kernel build time and the hash of its machine code, identical across runs; no cache directory | DONE for hello-gpu |
| D11 | Open libraries with an easy default path | Any-shape GEMM, reductions, scans, sorts in source with host references | PLANNED (L386, Omega bar C3) |
diff --git a/docs/issues/D8-process-tax.md b/docs/issues/D8-process-tax.md
index d5c2fc50..9f50f02e 100644
--- a/docs/issues/D8-process-tax.md
+++ b/docs/issues/D8-process-tax.md
@@ -9,3 +9,28 @@ Labels: D8
**What is left.** Measure it: resident memory of `hello_gpu` before open, after open and after its buffers are allocated, and the GPU memory the driver reports for the process, so the overhead beyond the program's own buffers is a number.
**Done when.** `hello_gpu` prints its own overhead line, and a chip receipt records it.
+
+**Command (on CUDApp#280).** `hello_gpu` prints the overhead line
+(`examples/hello_gpu/README.md`, "D8"). `tests/d8_process_tax.om` (compiled by the pinned seeded omc with
+`tests/d8_lib.om`) holds the bar, which was fixed before any chip run:
+
+- B1: the run passes.
+- B2: there is exactly one D8 line, and its printed differences add up.
+- B3: `VmRSS` read from outside during `--hold-ms` is within 4096 KiB of the line.
+- B4: the driver reports the pid with a whole number of MiB.
+- B5: TAX = max(0, open cost, resident beyond own buffers) + max(0, driver MiB × 1024 − own buffers KiB).
+ TAX must be ≤ 262144 KiB, which is 256 MiB.
+
+The bar is 17.1 times below the 4.6 GB in the quote (WolframLanguageEvaluator: `N[4.6*10^9/(256*2^20)] -> 17.136`).
+Two negative controls run in the same lease. `--bug=short` must fail B1. `--d8-ballast-mib=512` must show at least
+524288 KiB of open cost and must fail B5. The verdict is PASS only when the main run passes and both controls are
+caught.
+
+- `make d8-process-tax-dry-run` runs on the host only, with the devices hidden. It exits 0 when the simulator run,
+ the controls, the device-hidden refusal and the judge self-tests behave as specified.
+- `make d8-process-tax` takes one `spark-window` lease (gb10 exclusive, 20 minutes, ledger DRA-158) and writes
+ `build/d8-process-tax/<UTC>/`. That directory holds the logs, the outside readings, `env.txt`, `lease.txt` and
+ `verdict.txt`.
+
+**Status.** The command is IMPLEMENTED and the dry run is EXERCISED on the host. The chip row is NOT_RUN. It waits for
+CUDApp#280 and an authorized window, and no chip receipt exists yet.
diff --git a/evidence/d8-process-tax/20261107T080454Z/README.md b/evidence/d8-process-tax/20261107T080454Z/README.md
new file mode 100644
index 00000000..91357000
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/README.md
@@ -0,0 +1,23 @@
+# D8 process tax: shell driver replaced by `.om` (CUDApp#366), host evidence
+
+Host: DGX Spark (aarch64, Linux 7.0.0-1019-nvidia), CPU core 18 only (`taskset -c 18 nice -n 10`), 2026-11-07.
+No GPU was opened. The chip row (`make d8-process-tax`) is NOT_RUN. Status: IMPLEMENTED and EXERCISED on the
+host. It is not QUALIFIED.
+
+Compiler: omega-mv e5b32567a7aff3ce594e3254a622a846a6cd190b `seed/out/omc`, sha256
+2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f. Bridge: omega-bridge
+29d9cff72676bcef41a067bdcf4d8b0711042bcd (`om/omega-bridge.lock`). `tools.txt` lists every tool, its version
+and the sha256 of each source and binary.
+
+| File | What it shows |
+|---|---|
+| `old-shell-dry-run.log` | `bash tests/run_d8_process_tax.sh --dry-run` (the removed driver), exit 0 |
+| `new-om-dry-run.log` | `build/d8_process_tax dry-run "" HELLO HELLO_CONTROL`, exit 0 |
+| `check-gpu/` | Twelve recorded window directories, judged by the old `--check-gpu` and the new `check-gpu`: `good2` (a true PASS, exit 0), `good` and `blind` (blind ballast control), `corrupt` (corrupted D8 line), `g-mainbad` (the line's sums disagree), `g-nodrv` (no driver report), `g-tax` (tax above the bar), `shortpass` (short control passes), `nomain`, `nodev`, `empty` and `missingdir`. `compare.txt`: output and exit status are byte-identical in all twelve |
+| `mutant-*.diff` | The three D8 semantic mutants of `om/graph/hello-plan.om`, built through `om/units.sh` and linked into `tests/test_graph_residue.c`. Each changes the residue output, so each is killed |
+| `mutants-negative-controls.log` | An identity mutant survives and fails the gate with exit 1. An absent mutation site fails it with exit 1 |
+| `final-checks.log` | `sh om/units.sh --check`, `make test-hello-sim test-graph-residue test-graph-residue-mutants d8-process-tax-dry-run`, `bash tools/extract/audit-selftest.sh`; all exit 0 |
+
+NOT_RUN: the chip row (`make d8-process-tax`, which needs a spark-window lease) and the `inside-window` and `gpu`
+paths. Without a lease, `inside-window` printed `NOT_RUN: not inside an exclusive spark-window lease` and exited 2,
+as the shell version did.
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/blind.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/blind.new
new file mode 100644
index 00000000..6ff43d8a
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/blind.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: printed open 1000 / beyond 100 KiB disagree with its numbers, or own 12289 KiB is off FAIL
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29671 KiB = resident 1000 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL (failed: B2): NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main PASS, tax 29682 KiB; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/blind.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/blind.old
new file mode 100644
index 00000000..6ff43d8a
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/blind.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: printed open 1000 / beyond 100 KiB disagree with its numbers, or own 12289 KiB is off FAIL
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29671 KiB = resident 1000 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL (failed: B2): NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main PASS, tax 29682 KiB; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/compare.txt b/evidence/d8-process-tax/20261107T080454Z/check-gpu/compare.txt
new file mode 100644
index 00000000..796e7c59
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/compare.txt
@@ -0,0 +1,12 @@
+blind identical
+corrupt identical
+empty identical
+g-mainbad identical
+g-nodrv identical
+g-tax identical
+good identical
+good2 identical
+missingdir identical
+nodev identical
+nomain identical
+shortpass identical
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/corrupt.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/corrupt.new
new file mode 100644
index 00000000..401e113d
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/corrupt.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 0 D8 lines, 0 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS: NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main FAIL; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/corrupt.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/corrupt.old
new file mode 100644
index 00000000..401e113d
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/corrupt.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 0 D8 lines, 0 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS: NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main FAIL; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/empty.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/empty.new
new file mode 100644
index 00000000..2f89d839
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/empty.new
@@ -0,0 +1 @@
+NOT_RUN: no main.log in /tmp/d8cmp/empty: the GPU run did not happen
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/empty.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/empty.old
new file mode 100644
index 00000000..2f89d839
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/empty.old
@@ -0,0 +1 @@
+NOT_RUN: no main.log in /tmp/d8cmp/empty: the GPU run did not happen
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-mainbad.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-mainbad.new
new file mode 100644
index 00000000..a403243d
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-mainbad.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: printed open 1000 / beyond 1012 KiB disagree with its numbers, or own 12289 KiB is off FAIL
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29683 KiB = resident 1012 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: FAIL (main FAIL, tax 29683 KiB; 0 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-mainbad.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-mainbad.old
new file mode 100644
index 00000000..a403243d
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-mainbad.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: printed open 1000 / beyond 1012 KiB disagree with its numbers, or own 12289 KiB is off FAIL
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29683 KiB = resident 1012 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: FAIL (main FAIL, tax 29683 KiB; 0 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-nodrv.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-nodrv.new
new file mode 100644
index 00000000..3c36752e
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-nodrv.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: no per-process report for pid 4242 ('missing') FAIL
+ B5 tax: not judged without the driver's report (resident part 1011 KiB) FAIL
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: FAIL (main FAIL, tax 1011 KiB; 0 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-nodrv.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-nodrv.old
new file mode 100644
index 00000000..3c36752e
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-nodrv.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: no per-process report for pid 4242 ('missing') FAIL
+ B5 tax: not judged without the driver's report (resident part 1011 KiB) FAIL
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: FAIL (main FAIL, tax 1011 KiB; 0 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-tax.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-tax.new
new file mode 100644
index 00000000..6161d5c2
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-tax.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 5000 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 5108722 KiB = resident 1011 + driver beyond own buffers 5107711; bar <= 262144 KiB FAIL
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: FAIL (main FAIL, tax 5108722 KiB; 0 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-tax.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-tax.old
new file mode 100644
index 00000000..6161d5c2
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/g-tax.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 5000 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 5108722 KiB = resident 1011 + driver beyond own buffers 5107711; bar <= 262144 KiB FAIL
+ -> FAIL
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: FAIL (main FAIL, tax 5108722 KiB; 0 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/good.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good.new
new file mode 100644
index 00000000..4f96a51f
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS: NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main PASS, tax 29682 KiB; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/good.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good.old
new file mode 100644
index 00000000..4f96a51f
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS: NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main PASS, tax 29682 KiB; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/good2.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good2.new
new file mode 100644
index 00000000..9c1cec7b
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good2.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: PASS (tax 29682 KiB <= 262144 KiB; both negative controls caught)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/good2.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good2.old
new file mode 100644
index 00000000..9c1cec7b
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/good2.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/527300/539600 KiB, own 12289 KiB, open 525300, beyond own 525311 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 539610 KiB during the hold, line says 539600 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 553982 KiB = resident 525311 + driver beyond own buffers 28671; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: open cost +525300 KiB >= 524288 KiB
+D8 PROCESS TAX: PASS (tax 29682 KiB <= 262144 KiB; both negative controls caught)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/missingdir.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/missingdir.new
new file mode 100644
index 00000000..caa2bc2e
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/missingdir.new
@@ -0,0 +1 @@
+NOT_RUN: no main.log in /tmp/d8cmp/missingdir: the GPU run did not happen
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/missingdir.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/missingdir.old
new file mode 100644
index 00000000..caa2bc2e
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/missingdir.old
@@ -0,0 +1 @@
+NOT_RUN: no main.log in /tmp/d8cmp/missingdir: the GPU run did not happen
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/nodev.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nodev.new
new file mode 100644
index 00000000..1b483c5f
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nodev.new
@@ -0,0 +1,4 @@
+main (gpu), the bar:
+ run exited 2 without a device (NOT_RUN): GPU not available (stage: x)
+ -> NOT_RUN
+D8 PROCESS TAX: NOT_RUN (the GPU was not available inside the window)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/nodev.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nodev.old
new file mode 100644
index 00000000..1b483c5f
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nodev.old
@@ -0,0 +1,4 @@
+main (gpu), the bar:
+ run exited 2 without a device (NOT_RUN): GPU not available (stage: x)
+ -> NOT_RUN
+D8 PROCESS TAX: NOT_RUN (the GPU was not available inside the window)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/nomain.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nomain.new
new file mode 100644
index 00000000..2ce7de66
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nomain.new
@@ -0,0 +1 @@
+NOT_RUN: no main.log in /tmp/d8cmp/nomain: the GPU run did not happen
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/nomain.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nomain.old
new file mode 100644
index 00000000..2ce7de66
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/nomain.old
@@ -0,0 +1 @@
+NOT_RUN: no main.log in /tmp/d8cmp/nomain: the GPU run did not happen
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/shortpass.new b/evidence/d8-process-tax/20261107T080454Z/check-gpu/shortpass.new
new file mode 100644
index 00000000..6cbd79bb
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/shortpass.new
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 0, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS: NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main PASS, tax 29682 KiB; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/check-gpu/shortpass.old b/evidence/d8-process-tax/20261107T080454Z/check-gpu/shortpass.old
new file mode 100644
index 00000000..6cbd79bb
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/check-gpu/shortpass.old
@@ -0,0 +1,23 @@
+main (gpu), the bar:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS
+n1-short (gpu), expected FAIL by B1:
+ B1 run: exit 0, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+n2-ballast (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS: NOT the expected FAIL by B5
+ ballast NOT seen: open cost '1000' KiB < 524288 KiB, the measurement is blind
+D8 PROCESS TAX: FAIL (main PASS, tax 29682 KiB; 2 control expectation(s) not met)
diff --git a/evidence/d8-process-tax/20261107T080454Z/dry-run-old-vs-new.diff b/evidence/d8-process-tax/20261107T080454Z/dry-run-old-vs-new.diff
new file mode 100644
index 00000000..1e0fb709
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/dry-run-old-vs-new.diff
@@ -0,0 +1,7 @@
+26a27,28
+> hold-bound: hello_gpu --sim --hold-ms=N -> exit N, as expected
+> default-build-ballast: hello_gpu --sim --dN-ballast-mib=N -> exit N, as expected
+83c85
+< DN DRY RUN: PASS (host simulator, device-hidden refusal, judge and verdict self-tests; the chip row stays NOT_RUN until --gpu runs in a window)
+---
+> DN DRY RUN: PASS (host simulator, device-hidden refusal, hold bound, default-build ballast refusal, judge and verdict self-tests; the chip row stays NOT_RUN until gpu runs in a window)
diff --git a/evidence/d8-process-tax/20261107T080454Z/final-checks.log b/evidence/d8-process-tax/20261107T080454Z/final-checks.log
new file mode 100644
index 00000000..2fb81732
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/final-checks.log
@@ -0,0 +1,557 @@
+generating portable unit bw_enc_sm121 (bridge-seeded)
+generating portable unit cubin_elf (bridge-seeded)
+generating portable unit mathlibs_ir (bridge-seeded)
+generating portable unit ampere_enc_sm86 (bridge-seeded)
+generating portable unit amp_runtime (bridge-seeded)
+generating portable unit repack (bridge-seeded)
+generating portable unit quant_wire (bridge-seeded)
+generating portable unit compose (bridge-seeded)
+generating portable unit encode (bridge-seeded)
+generating portable unit cache_runtime (bridge-seeded)
+generating portable unit lease (bridge-seeded)
+generating portable unit slotrev (bridge-seeded)
+generating portable unit command (bridge-seeded)
+generating portable unit validate (bridge-seeded)
+generating portable unit digest (bridge-seeded)
+generating portable unit code_digest (bridge-seeded)
+generating portable unit templates (bridge-seeded)
+generating portable unit graph (bridge-seeded)
+generating portable unit context_lookup (bridge-seeded)
+generating portable unit binding (bridge-seeded)
+generating portable unit moe_plan (bridge-seeded)
+generating portable unit moe_group (bridge-seeded)
+generating portable unit moe_ids32 (bridge-seeded)
+generating portable unit moe_maps32 (bridge-seeded)
+generating portable unit moe_segs32 (bridge-seeded)
+generating portable unit moe_windows (bridge-seeded)
+generating portable unit moe_admission (bridge-seeded)
+generating portable unit closure_pack (bridge-seeded)
+generating portable unit closure_bind (bridge-seeded)
+generating portable unit closure_blob (bridge-seeded)
+generating portable unit closure_cover (bridge-seeded)
+generating portable unit closure_intent (bridge-seeded)
+generating portable unit closure_seal (bridge-seeded)
+generating portable unit closure_reseal (bridge-seeded)
+generating portable unit closure_code (bridge-seeded)
+generating portable unit closure_launch (bridge-seeded)
+generating portable unit closure_dir (bridge-seeded)
+generating portable unit closure_alloc (bridge-seeded)
+generating portable unit closure_series (bridge-seeded)
+generating portable unit prefill_shape (bridge-seeded)
+generating portable unit prefill_reading (bridge-seeded)
+generating portable unit prefill_workspace (bridge-seeded)
+generating portable unit prefill_order (bridge-seeded)
+generating portable unit attn_mirror_plan (bridge-seeded)
+generating portable unit attn_mirror_step (bridge-seeded)
+generating portable unit q38_runtime (bridge-seeded)
+generating portable unit q38_emit (bridge-seeded)
+generating portable unit cg_qmma (bridge-seeded)
+generating portable unit cg_qmma_patch (bridge-seeded)
+generating portable unit qm_self (bridge-seeded)
+generating portable unit qm_host (bridge-seeded)
+generating portable unit cg_tgemm_spec (bridge-seeded)
+generating portable unit cg_tgemm (bridge-seeded)
+generating portable unit cg_pf (bridge-seeded)
+generating portable unit cg_tern (bridge-seeded)
+generating portable unit cg_tern_sched (bridge-seeded)
+generating portable unit cg_tern_policy (bridge-seeded)
+generating portable unit streams (bridge-seeded)
+generating portable unit numeric (bridge-seeded)
+generating portable unit numeric_tile (bridge-seeded)
+generating portable unit artifact_policy (bridge-seeded)
+generating portable unit artifact_parse (bridge-seeded)
+generating portable unit api_policy (bridge-seeded)
+generating portable unit cm_sort (bridge-seeded)
+generating portable unit cm_math (bridge-seeded)
+generating portable unit cm_fit (bridge-seeded)
+generating portable unit cm_stats (bridge-seeded)
+generating portable unit cm_features (bridge-seeded)
+generating portable unit cm_quantile (bridge-seeded)
+generating portable unit cm_decision (bridge-seeded)
+generating portable unit cm_prediction (bridge-seeded)
+generating portable unit cm_calibration (bridge-seeded)
+generating portable unit cm_blob (bridge-seeded)
+generating portable unit cm_digest (bridge-seeded)
+generating portable unit artifact_format (bridge-seeded)
+generating portable unit artifact_admit (bridge-seeded)
+generating portable unit artifact_elf (bridge-seeded)
+generating portable unit api_mm_plan (bridge-seeded)
+generating portable unit api_at_plan (bridge-seeded)
+generating portable unit api_ew_plan (bridge-seeded)
+generating portable unit api_bf_plan (bridge-seeded)
+generating portable unit api_da_plan (bridge-seeded)
+generating portable unit api_rt_plan (bridge-seeded)
+generating portable unit ew_ir (bridge-seeded)
+generating portable unit attention_ir (bridge-freest)
+generating portable unit cmdlist_record (bridge-seeded)
+generating portable unit cmdlist_plan (bridge-seeded)
+generating portable unit cmdlist_layout (bridge-seeded)
+generating portable unit cmdlist_access (bridge-seeded)
+generating portable unit nvrm_wire_pack (bridge-seeded)
+generating portable unit nvrm_wire_reply (bridge-seeded)
+generating portable unit nvrm_heap_wire (bridge-seeded)
+generating portable unit nvrm_uvm_wire (bridge-seeded--runtime-views)
+generating portable unit nvrm_uvm_map_wire (bridge-seeded--runtime-views)
+generating portable unit nvrm_struct (bridge-seeded--runtime-views)
+generating portable unit plat_policy (bridge-seeded)
+generating portable unit plat_rest (bridge-seeded)
+generating portable unit nvml_step (bridge-seeded)
+generating portable unit nvml_errstr (bridge-seeded)
+generating portable unit chip_admit (bridge-seeded)
+generating portable unit regalloc (bridge-freest)
+generating portable unit regalloc_ir (bridge-seeded)
+generating portable unit regalloc_live (bridge-seeded)
+generating portable unit cg_matmul (bridge-seeded)
+generating portable unit cg_matmul_params (bridge-seeded)
+generating portable unit cg_matmul_i32 (bridge-seeded)
+generating portable unit cg_matmul_tensor (bridge-seeded)
+generating portable unit cg_matmul_loop (bridge-seeded)
+generating portable unit cg_matmul_frag (bridge-seeded)
+generating portable unit cg_matmul_block (bridge-seeded)
+generating portable unit cg_vecadd (bridge-seeded)
+generating portable unit bw_hazard (bridge-seeded)
+generating portable unit bw_hazard_dec (bridge-seeded)
+generating portable unit cg_bind (bridge-seeded)
+generating portable unit scan_ir (bridge-seeded)
+generating portable unit scan_plan (bridge-seeded)
+generating portable unit aiengpu (bridge-seeded)
+generating portable unit sm121_dis (bridge-seeded)
+generating portable unit cg_moe (bridge-seeded)
+generating portable unit cg_moe2 (bridge-seeded)
+generating portable unit cg_moe_sched (bridge-seeded)
+generating portable unit cg_gdn (bridge-seeded)
+generating portable unit cg_gdn_policy (bridge-seeded)
+generating portable unit cg_dec (bridge-seeded)
+generating portable unit gdn_admit (bridge-seeded)
+generating portable unit bw_qmd (bridge-seeded)
+generating portable unit eng (bridge-seeded)
+generating portable unit fixture_text (bridge-seeded)
+generating portable unit dag_eval (bridge-seeded)
+generating portable unit dag_parse (bridge-seeded)
+generating portable unit dag_fmt (bridge-seeded)
+generating portable unit dag_res (bridge-seeded)
+generating portable unit dag_diff (bridge-seeded)
+generating portable unit own30b_prof (bridge-seeded)
+generating portable unit doctor (bridge-seeded)
+generating portable unit ampcorp (bridge-seeded)
+generating portable unit ampfam (bridge-seeded)
+generating portable unit artexp (bridge-seeded)
+generating portable unit cg_tc (bridge-seeded)
+generating portable unit gemm_any (bridge-seeded)
+generating portable unit dnn_rows (bridge-seeded)
+generating portable unit dnn_rows_plan (bridge-seeded)
+generating portable unit gemm_host (bridge-seeded)
+generating portable unit gemm_value (bridge-seeded)
+generating portable unit gemm_cfg (bridge-seeded)
+generating portable unit gemm_plan (bridge-seeded)
+generating portable unit gemm_span (bridge-seeded)
+generating portable unit tc_host (bridge-seeded)
+generating portable unit dnn_activations (bridge-seeded)
+generating portable unit dnn_activations_plan (bridge-seeded)
+generating portable unit cg_attn (bridge-seeded)
+generating portable unit cg_pattn (bridge-seeded)
+generating portable unit cg_pfhost (bridge-seeded)
+generating portable unit pf_admit (bridge-seeded)
+generating portable unit nvrm_policy (bridge-seeded)
+generating portable unit session_admit (bridge-seeded)
+generating portable unit session_words (bridge-seeded)
+generating portable unit session_park (bridge-seeded)
+generating portable unit cmdlist_book (bridge-seeded)
+generating portable unit cg_fields (bridge-freest)
+generating portable unit cg_replay (bridge-freest)
+generating portable unit cg_life (bridge-freest)
+generating portable unit cg_invar (bridge-freest)
+generating portable unit cg_budget (bridge-seeded)
+generating portable unit cm_route (bridge-seeded)
+generating portable unit numeric_rest (bridge-seeded)
+generating portable unit numeric_patch (bridge-seeded)
+generating portable unit numeric_check (bridge-seeded)
+generating portable unit numeric_trace (bridge-seeded)
+generating portable unit numeric_reduce (bridge-seeded)
+generating portable unit mathlibs_host (bridge-seeded)
+generating portable unit mathlibs_walk (bridge-seeded)
+generating portable unit mathlibs_step (bridge-seeded)
+generating portable unit mathlibs_many (bridge-seeded)
+generating portable unit mathlibs_index (bridge-seeded)
+generating portable unit mathlibs_fft (bridge-seeded)
+generating portable unit standalone_oracles (bridge-seeded)
+generating portable unit nvrm_va (bridge-seeded--runtime-views)
+generating portable unit nvrm_alloc_scalar (bridge-seeded)
+generating portable unit nvrm_counts (bridge-seeded--runtime-views)
+generating portable unit nvrm_alloc_push (bridge-seeded--runtime-views)
+generating portable unit dag_jstr (bridge-seeded)
+generating portable unit words (bridge-seeded)
+generating portable unit chip_enum (bridge-seeded)
+generating portable unit attn_any (bridge-seeded)
+generating portable unit attn_any_plan (bridge-seeded)
+generating portable unit gemm_scalar (bridge-seeded)
+generating portable unit conv2d (bridge-seeded)
+generating portable unit conv_plan (bridge-seeded)
+generating portable unit cg_attn256 (bridge-seeded)
+generating portable unit cg_pattn256 (bridge-seeded)
+generating portable unit cg_router (bridge-seeded)
+generating portable unit cg_gemm (bridge-seeded)
+generating portable unit cg_bf16 (bridge-seeded)
+generating portable unit cg_qg (bridge-seeded)
+generating portable unit core_sha (bridge-seeded)
+generating portable unit core_omcanon (bridge-seeded)
+generating portable unit core_omcidcmp (bridge-seeded)
+generating portable unit core_omcidhex (bridge-seeded)
+generating portable unit core_omparse (bridge-seeded)
+generating portable unit core_omcver (bridge-seeded)
+generating portable unit core_omcheck (bridge-seeded)
+generating portable unit core_object (bridge-seeded)
+generating portable unit core_graph (bridge-seeded)
+generating portable unit core_payload (bridge-seeded)
+generating portable unit core_param (bridge-seeded)
+generating portable unit core_effect (bridge-seeded)
+generating portable unit core_eval (bridge-seeded)
+generating portable unit core_vector (bridge-seeded)
+generating portable unit core_vecspec (bridge-seeded)
+generating portable unit core_vpay (bridge-seeded)
+generating portable unit core_fmt (bridge-seeded)
+generating portable unit core_fmtnum (bridge-seeded)
+generating portable unit core_fmtclip (bridge-seeded)
+generating portable unit core_hostmath (bridge-seeded)
+generating portable unit core_cubinmsg (bridge-freest)
+generating portable unit model_graph_wire (bridge-seeded)
+generating portable unit model_graph_node (bridge-seeded)
+generating portable unit model_graph_batch (bridge-seeded)
+generating portable unit model_graph_launch (bridge-seeded)
+generating portable unit model_graph_copy (bridge-seeded)
+generating portable unit model_graph_xfer (bridge-seeded)
+generating portable unit model_graph (bridge-seeded)
+generating portable unit model_graph_expert (bridge-seeded)
+generating portable unit model_graph_group (bridge-seeded)
+generating portable unit model_graph_address (bridge-seeded)
+generating portable unit model_graph_final_batch (bridge-seeded)
+generating portable unit model_graph_window (bridge-seeded)
+generating portable unit model_graph_layout (bridge-seeded)
+generating portable unit model_graph_aux (bridge-seeded)
+generating portable unit resident (bridge-seeded)
+generating portable unit resident_check (bridge-seeded)
+generating portable unit model_graph_residue (bridge-seeded)
+generating portable unit model_graph_table (bridge-seeded--runtime-views)
+generating portable unit hello_host (bridge-seeded)
+generating portable unit hello_plan (bridge-seeded)
+generating portable unit core_cubadmit (bridge-freest)
+generating portable unit core_ampack (bridge-seeded)
+generating portable unit graph_headscale (bridge-seeded--runtime-views)
+generating portable unit gemm_ex_plan (bridge-seeded)
+generating portable unit gemm_ex_row (bridge-seeded)
+generating portable unit gemm_ex_x3 (bridge-seeded)
+generating portable unit gemm_ex_acc (bridge-seeded)
+generating portable unit gemm_ex_dot (bridge-seeded)
+generating portable unit gemm_ex_epi (bridge-seeded)
+generating portable unit gemm_ex_fp8 (bridge-seeded)
+generating portable unit apish_shp (bridge-seeded)
+generating portable unit apish_pack (bridge-seeded)
+generating portable unit apish_slot (bridge-seeded)
+generating portable unit apish_blk (bridge-seeded)
+generating portable unit apish_trit (bridge-seeded)
+generating portable unit av_ewarg (bridge-seeded)
+generating portable unit av_fp8am (bridge-seeded)
+generating portable unit av_fp8en (bridge-seeded)
+generating portable unit av_fp8q (bridge-seeded)
+generating portable unit av_e4m3 (bridge-seeded)
+generating portable unit av_fp8sc (bridge-seeded)
+generating portable unit av_gdnch (bridge-seeded)
+generating portable unit av_gdnsl (bridge-seeded)
+generating portable unit av_scan (bridge-seeded)
+generating portable unit ah_rest (bridge-seeded)
+generating portable unit av_bf16 (bridge-seeded--runtime-views)
+generating portable unit av_widen (bridge-seeded--runtime-views)
+generating portable unit av_rope (bridge-seeded--runtime-views)
+generating portable unit av_gdnsc (bridge-seeded--runtime-views)
+generating portable unit av_gdnex (bridge-seeded--runtime-views)
+generating portable unit av_gdnpt (bridge-seeded--runtime-views)
+generating portable unit av_gdnut (bridge-seeded--runtime-views)
+generating portable unit av_fp8x (bridge-seeded--runtime-views)
+generating portable unit av_fp8xb (bridge-seeded--runtime-views)
+generating portable unit ar_carry (bridge-seeded--runtime-views)
+generating portable unit bw_identity (bridge-seeded)
+generating portable unit bw_cpui (bridge-seeded--runtime-views)
+generating portable unit bw_cpuf16 (bridge-seeded--runtime-views)
+generating portable unit bw_cpubf16 (bridge-seeded--runtime-views)
+generating portable unit bw_shape (bridge-seeded--runtime-views)
+generating portable unit bw_name (bridge-seeded--runtime-views)
+generating portable unit attn_args (bridge-freest)
+generating portable unit attn_lay (bridge-freest)
+generating portable unit attn_buf (bridge-freest)
+generating portable unit attn_math (bridge-freest)
+generating portable unit attn_tables (bridge-freest)
+generating portable unit attn_set (bridge-freest)
+generating portable unit attn_fill (bridge-freest)
+generating portable unit attn_fillf (bridge-freest)
+generating portable unit attn_count (bridge-freest)
+generating portable unit attn_cntf (bridge-freest)
+generating portable unit attn_bfexp (bridge-freest)
+generating portable unit attn_bffin (bridge-freest)
+generating portable unit attn_view_any (bridge-freest)
+generating portable unit attn_comp (bridge-freest)
+generating portable unit attn_rpois (bridge-freest)
+generating portable unit attn_z64 (bridge-freest)
+generating portable unit attn_bids (bridge-freest)
+generating portable unit attn_rows (bridge-freest)
+generating portable unit attn_gtab (bridge-freest)
+generating portable unit attn_range (bridge-freest)
+generating portable unit attn_total (bridge-freest)
+generating portable unit attn_table (bridge-freest)
+generating portable unit attn_touch (bridge-freest)
+generating portable unit attn_blks (bridge-freest)
+generating portable unit attn_rfit (bridge-freest)
+generating portable unit attn_gath (bridge-freest)
+generating portable unit attn_stage (bridge-freest)
+generating portable unit attn_reset (bridge-freest)
+generating portable unit attn_hmap (bridge-freest)
+generating portable unit attn_eff (bridge-freest)
+generating portable unit attn_best (bridge-freest)
+generating portable unit attn_max (bridge-freest)
+generating portable unit attn_ctx (bridge-freest)
+generating portable unit attn_ds_round (bridge-seeded--runtime-views)
+generating portable unit attn_ds_slot (bridge-seeded--runtime-views)
+generating portable unit attn_ds_vecf (bridge-seeded--runtime-views)
+generating portable unit attn_ds_vecb (bridge-seeded--runtime-views)
+generating portable unit attn_na_read (bridge-seeded--runtime-views)
+generating portable unit attn_na_cubin (bridge-seeded--runtime-views)
+generating portable unit attn_na_layout (bridge-seeded--runtime-views)
+generating portable unit attn_na_ver (bridge-seeded--runtime-views)
+generating portable unit attn_na_json (bridge-seeded--runtime-views)
+generating portable unit attn_mm_dot (bridge-freest)
+generating portable unit attn_mm_err (bridge-freest)
+generating portable unit attn_mm_init (bridge-freest)
+generating portable unit attn_mm_next (bridge-freest)
+generating portable unit attn_host (bridge-freest)
+generating portable unit attn_scanchk (bridge-seeded--runtime-views)
+generating portable unit attn_clock (bridge-seeded)
+generating portable unit ar_bf16 (bridge-seeded--runtime-views)
+generating portable unit ar_fill (bridge-seeded--runtime-views)
+generating portable unit ar_count (bridge-seeded--runtime-views)
+generating portable unit ar_args (bridge-seeded--runtime-views)
+generating portable unit ar_argsx (bridge-seeded--runtime-views)
+generating portable unit ar_pad (bridge-seeded--runtime-views)
+generating portable unit ar_idle (bridge-seeded--runtime-views)
+generating portable unit ar_route (bridge-seeded--runtime-views)
+generating portable unit ar_perm (bridge-seeded--runtime-views)
+generating portable unit ar_widen (bridge-seeded--runtime-views)
+generating portable unit ar_next (bridge-seeded--runtime-views)
+generating portable unit ar_key (bridge-seeded--runtime-views)
+generating portable unit ar_nan (bridge-seeded--runtime-views)
+generating portable unit ar_scale (bridge-seeded--runtime-views)
+generating portable unit ar_fold (bridge-seeded--runtime-views)
+generating portable unit ar_foldh (bridge-seeded--runtime-views)
+generating portable unit ar_acc (bridge-seeded--runtime-views)
+generating portable unit ar_mag (bridge-seeded--runtime-views)
+generating portable unit ar_tiles (bridge-seeded--runtime-views)
+generating portable unit ar_tg (bridge-seeded--runtime-views)
+generating portable unit ar_tile (bridge-seeded--runtime-views)
+generating portable unit ar_groups (bridge-seeded--runtime-views)
+generating portable unit ar_run (bridge-seeded--runtime-views)
+generating portable unit ar_tern (bridge-seeded--runtime-views)
+generating portable unit ar_trits (bridge-seeded--runtime-views)
+generating portable unit ar_rev (bridge-seeded--runtime-views)
+generating portable unit ar_pfcopy (bridge-seeded--runtime-views)
+generating portable unit ar_pfratio (bridge-seeded--runtime-views)
+generating portable unit ar_segok (bridge-seeded--runtime-views)
+generating portable unit ar_segb (bridge-seeded--runtime-views)
+generating portable unit ar_tspec (bridge-seeded--runtime-views)
+generating portable unit ar_calc (bridge-seeded--runtime-views)
+generating portable unit ar_launch (bridge-seeded--runtime-views)
+generating portable unit ar_cache (bridge-seeded--runtime-views)
+generating portable unit ar_tcspec (bridge-seeded--runtime-views)
+generating portable unit ar_tcperm (bridge-seeded--runtime-views)
+generating portable unit ar_tcinfo (bridge-seeded--runtime-views)
+generating portable unit ar_gtile (bridge-seeded--runtime-views)
+generating portable unit ar_gspec (bridge-seeded--runtime-views)
+generating portable unit ar_pfcount (bridge-seeded--runtime-views)
+generating portable unit ar_pfreg (bridge-seeded--runtime-views)
+generating portable unit ar_gargs (bridge-seeded--runtime-views)
+generating portable unit ar_gseg (bridge-seeded--runtime-views)
+generating portable unit ar_ginfo (bridge-seeded--runtime-views)
+generating portable unit ar_xnext (bridge-seeded--runtime-views)
+generating portable unit ar_gath32 (bridge-seeded--runtime-views)
+generating portable unit ar_gath16 (bridge-seeded--runtime-views)
+generating portable unit ar_slot (bridge-seeded--runtime-views)
+generating portable unit ar_sgate (bridge-seeded--runtime-views)
+generating portable unit ar_copy (bridge-seeded--runtime-views)
+generating portable unit ar_sstats (bridge-seeded--runtime-views)
+generating portable unit ar_victim (bridge-seeded--runtime-views)
+generating portable unit ar_mstep (bridge-seeded--runtime-views)
+generating portable unit cg_pack_len (bridge-seeded)
+generating portable unit cg_pack_h (bridge-seeded--runtime-views)
+generating portable unit cg_mrow (bridge-seeded--runtime-views)
+generating portable unit gemm_ex_policy (bridge-seeded)
+generating portable unit fixture_verify (bridge-freest)
+generating portable unit cg_em (bridge-seeded)
+generating portable unit cg_reconv (bridge-seeded)
+generating portable unit cg_sentin (bridge-seeded--runtime-views)
+generating portable unit revision (bridge-freest)
+generating portable unit epoch (bridge-freest)
+generating portable unit f16 (bridge-freest)
+generating portable unit c5 (bridge-freest)
+generating portable unit leftovers (bridge-freest)
+generating portable unit bw_scalar (bridge-freest)
+generating portable unit streams_xq (bridge-freest)
+tools/native: 9 unit(s) -> /tmp/tmp.EbH8r41gsc/no_posix_regen/aarch64linux/omega_native.{c,h,o} + omega_api_decl.h, omega_api_defs.{c,o} (+ work/)
+tools/native: 9 unit(s) -> /tmp/tmp.EbH8r41gsc/no_posix_regen/x86linux/omega_native.{c,h,o} + omega_api_decl.h, omega_api_defs.{c,o} (+ work/)
+PASS NO_POSIX checked native sources regenerate byte for byte (both ISAs)
+PASS portable Omega units regenerate byte for byte
+cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -I./third_party/aien-gpu-abi1 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST_ADMIT=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST=0 -DCUDAPP_MIGRATION_PENDING_C_GEMM_BUILDER=0 -DCUDAPP_MIGRATION_PENDING_GEMM_EX=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_STRUCT=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC=0 -DCUDAPP_MIGRATION_PENDING_C_SUBMIT=0 -o build/hello_gpu examples/hello_gpu/hello_gpu.c build/libomega_gpu.a -lpthread -lm
+cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -I./third_party/aien-gpu-abi1 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST_ADMIT=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST=0 -DCUDAPP_MIGRATION_PENDING_C_GEMM_BUILDER=0 -DCUDAPP_MIGRATION_PENDING_GEMM_EX=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_STRUCT=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC=0 -DCUDAPP_MIGRATION_PENDING_C_SUBMIT=0 -DCUDAPP_MIGRATION_PENDING_HELLO_CONTROL=1 -o build/hello_gpu_control examples/hello_gpu/hello_gpu.c build/libomega_gpu.a -lpthread -lm
+bash tests/dx/clean_user_cleanup_test.sh
+PASS collision-exit-3
+PASS collision-never-enters-gpu
+PASS collision-only-expected-privilege
+PASS existing-account-untouched
+PASS failure-exit-3
+PASS failure-never-enters-gpu
+PASS failure-only-expected-privilege
+PASS failed-creation-untouched
+PASS created-exit-3
+PASS created-never-enters-gpu
+PASS created-only-expected-privilege
+PASS created-name-nonempty
+PASS owned-process-cleanup
+PASS owned-account-cleanup
+PASS one-owned-account-deletion
+PASS created_again-exit-3
+PASS created_again-never-enters-gpu
+PASS created_again-only-expected-privilege
+PASS distinct-candidate-names
+PASS temp_failure-exit-3
+PASS temp_failure-never-enters-gpu
+PASS temp_failure-only-expected-privilege
+PASS temp-failure-no-privilege
+clean-user cleanup tests: 23 passed, 0 failed (mocked commands only)
+sh tests/dx/hello_sim_test.sh build/hello_gpu build/hello_gpu_control
+PASS sim-pass (exit 0)
+PASS sim-checks
+PASS work-line
+PASS hashes-printed
+PASS same-bits-twice
+PASS fault-exit (exit 1)
+PASS fault-report
+PASS fault-address-is-end-of-a
+PASS short-absent-from-default-build (exit 2)
+PASS short-exit (exit 1)
+PASS short-report
+PASS past-end-refused-on-gpu (exit 2)
+hello --sim tests: 12 passed, 0 failed
+cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -I./third_party/aien-gpu-abi1 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST_ADMIT=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST=0 -DCUDAPP_MIGRATION_PENDING_C_GEMM_BUILDER=0 -DCUDAPP_MIGRATION_PENDING_GEMM_EX=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_STRUCT=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC=0 -DCUDAPP_MIGRATION_PENDING_C_SUBMIT=0 -ffp-contract=off -Isrc tests/test_graph_residue.c build/libomega_gpu.a -lpthread -lm -o build/graph-residue
+cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -I./third_party/aien-gpu-abi1 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST_ADMIT=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST=0 -DCUDAPP_MIGRATION_PENDING_C_GEMM_BUILDER=0 -DCUDAPP_MIGRATION_PENDING_GEMM_EX=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_STRUCT=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC=0 -DCUDAPP_MIGRATION_PENDING_C_SUBMIT=0 -ffp-contract=off -Isrc -O0 --coverage -DCUDAPP_MIGRATION_PENDING_GRAPH_RESIDUE=1 -DCUDAPP_MIGRATION_PENDING_HELLO_HOST=1 tests/test_graph_residue.c build/libomega_gpu.a -lpthread -lm -o build/graph-residue-oracle
+cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -I./third_party/aien-gpu-abi1 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST_ADMIT=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST=0 -DCUDAPP_MIGRATION_PENDING_C_GEMM_BUILDER=0 -DCUDAPP_MIGRATION_PENDING_GEMM_EX=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_STRUCT=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC=0 -DCUDAPP_MIGRATION_PENDING_C_SUBMIT=0 -ffp-contract=off -Isrc -DCUDAPP_GRAPH_DIFF_RED=1 tests/test_graph_residue.c build/libomega_gpu.a -lpthread -lm -o build/graph-residue-red
+build/graph-residue > build/graph-residue.log
+build/graph-residue-oracle > build/graph-residue-oracle.log
+cmp build/graph-residue.log build/graph-residue-oracle.log
+build/graph-residue-red > build/graph-residue-red.log
+PASS graph residue differential and red check
+cat tests/d8_lib.om tests/d8_mutants.om > build/d8_mutants.om
+"/home/drakestapleton/work/finish/d8tools/omega-mv/seed/out/omc" < build/d8_mutants.om > build/d8_mutants.tmp
+chmod +x build/d8_mutants.tmp
+mv build/d8_mutants.tmp build/d8_mutants
+OMEGA_OMC="/home/drakestapleton/work/finish/d8tools/omega-mv/seed/out/omc" OMEGA_BRIDGE="/home/drakestapleton/work/finish/d8tools/omega-bridge" CC="cc" GRAPH_RESIDUE_FLAGS="-std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -I./third_party/aien-gpu-abi1 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST_ADMIT=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST=0 -DCUDAPP_MIGRATION_PENDING_C_GEMM_BUILDER=0 -DCUDAPP_MIGRATION_PENDING_GEMM_EX=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_STRUCT=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC=0 -DCUDAPP_MIGRATION_PENDING_C_SUBMIT=0 -ffp-contract=off -Isrc" OUT_DIR="build" python3 om/graph/residue-mutants.py
+mutant poison killed rc=0
+mutant input-period killed rc=0
+mutant checker-sub killed rc=-6
+mutant shape-cap killed rc=0
+mutant timeline-room killed rc=-6
+mutant perm-stride killed rc=-6
+mutant load-scoreboard killed rc=0
+PASS graph residue: 7 compiled semantic mutants killed
+OMEGA_OMC="/home/drakestapleton/work/finish/d8tools/omega-mv/seed/out/omc" OMEGA_BRIDGE="/home/drakestapleton/work/finish/d8tools/omega-bridge" build/d8_mutants build cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -I./third_party/aien-gpu-abi1 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST_ADMIT=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC=0 -DCUDAPP_MIGRATION_PENDING_C_CODEGEN_TC_HOST=0 -DCUDAPP_MIGRATION_PENDING_C_GEMM_BUILDER=0 -DCUDAPP_MIGRATION_PENDING_GEMM_EX=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_STRUCT=0 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC=0 -DCUDAPP_MIGRATION_PENDING_C_SUBMIT=0 -ffp-contract=off -Isrc
+mutant d8-own-round killed rc=0
+mutant d8-beyond-sign killed rc=0
+mutant d8-driver-kib killed rc=0
+PASS graph residue D8: 3 compiled semantic mutants killed
+cat tests/d8_lib.om tests/d8_process_tax.om > build/d8_process_tax.om
+"/home/drakestapleton/work/finish/d8tools/omega-mv/seed/out/omc" < build/d8_process_tax.om > build/d8_process_tax.tmp
+chmod +x build/d8_process_tax.tmp
+mv build/d8_process_tax.tmp build/d8_process_tax
+build/d8_process_tax dry-run "" /home/drakestapleton/work/finish/CUDApp-366/build/hello_gpu /home/drakestapleton/work/finish/CUDApp-366/build/hello_gpu_control
+ran sim-main: exit 0, outside VmRSS 14764 KiB
+ran sim-short: exit 1, outside VmRSS 14624 KiB
+ran sim-ballast: exit 0, outside VmRSS 538924 KiB
+ran hidden-gpu: exit 2, outside VmRSS missing KiB, driver missing MiB
+sim-main (sim), expected PASS:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2400/2400/14700 KiB, own 12288 KiB, open 0, beyond own 12 KiB (sums agree) PASS
+ B3 outside: pid 4019416 VmRSS 14764 KiB during the hold, line says 14700 KiB (tolerance 4096) PASS
+ B5 tax: 12 KiB = resident 12 + driver beyond own buffers 0; bar <= 262144 KiB PASS
+ -> PASS, as expected
+sim-short (sim), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2260/2260/14560 KiB, own 12288 KiB, open 0, beyond own 12 KiB (sums agree) PASS
+ B3 outside: pid 4019530 VmRSS 14624 KiB during the hold, line says 14560 KiB (tolerance 4096) PASS
+ B5 tax: 12 KiB = resident 12 + driver beyond own buffers 0; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+sim-ballast (sim), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2268/2268/538860 KiB, own 12288 KiB, open 0, beyond own 524304 KiB (sums agree) PASS
+ B3 outside: pid 4019621 VmRSS 538924 KiB during the hold, line says 538860 KiB (tolerance 4096) PASS
+ B5 tax: 524304 KiB = resident 524304 + driver beyond own buffers 0; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: beyond own buffers +524304 KiB >= 524288 KiB
+hidden-gpu (gpu), expected NOT_RUN:
+ run exited 2 without a device (NOT_RUN): GPU not available (stage: nvrm_open: open control nodes errno 2)
+ -> NOT_RUN, as expected
+hold-bound: hello_gpu --sim --hold-ms=60001 -> exit 2, as expected
+default-build-ballast: hello_gpu --sim --d8-ballast-mib=64 -> exit 2, as expected
+GPU judge self-test on synthetic logs (not measurements):
+syn-good (gpu), expected PASS:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS, as expected
+syn-no-driver (gpu), expected FAIL by B4 B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: no per-process report for pid 4242 ('missing') FAIL
+ B5 tax: not judged without the driver's report (resident part 1011 KiB) FAIL
+ -> FAIL, as expected
+syn-driver-tax (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 5000 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 5108722 KiB = resident 1011 + driver beyond own buffers 5107711; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+syn-bad-sum (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: printed open 1000 / beyond 11 KiB disagree with its numbers, or own 12289 KiB is off FAIL
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29671 KiB = resident 1000 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+syn-two-lines (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 2 D8 lines, 2 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL, as expected
+syn-no-line (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 0 D8 lines, 0 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL, as expected
+syn-exit-1 (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 0 wrong, 0 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+syn-no-device (gpu), expected NOT_RUN:
+ run exited 2 without a device (NOT_RUN):
+ -> NOT_RUN, as expected
+GPU verdict self-test on a synthetic recorded run (not a measurement):
+ good run with both controls caught -> exit 0, as expected
+ ballast control not seen (a blind measurement) -> exit 1, as expected
+D8 DRY RUN: PASS (host simulator, device-hidden refusal, hold bound, default-build ballast refusal, judge and verdict self-tests; the chip row stays NOT_RUN until gpu runs in a window)
+SELFTEST PASS: planted 17 (one in a deleted file's history, one in a commit message, one in a NUL-byte blob, one gzipped), found 17; binary listed
+ERROR SELFTEST PASS: scan errors refuse; clean input and delimiter-path detection preserved
diff --git a/evidence/d8-process-tax/20261107T080454Z/mutant-d8-beyond-sign.diff b/evidence/d8-process-tax/20261107T080454Z/mutant-d8-beyond-sign.diff
new file mode 100644
index 00000000..8edfd6a0
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/mutant-d8-beyond-sign.diff
@@ -0,0 +1,13 @@
+# diff of build/graph-residue-mutants/d8-expected.log against d8-beyond-sign/run.log: 1512 changed lines; first 12 shown
+18,22c18,22
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 1 KiB in 1; open cost +0 KiB, beyond own buffers -1 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 2 KiB in 2; open cost +0 KiB, beyond own buffers -1 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 3 KiB in 3; open cost +0 KiB, beyond own buffers -1 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12288 KiB; session driver allocations 24577 KiB in 4; open cost +0 KiB, beyond own buffers -12288 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12289 KiB; session driver allocations 24578 KiB in 5; open cost +0 KiB, beyond own buffers -12289 KiB
+---
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 1 KiB in 1; open cost +0 KiB, beyond own buffers +1 KiB
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 2 KiB in 2; open cost +0 KiB, beyond own buffers +1 KiB
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 3 KiB in 3; open cost +0 KiB, beyond own buffers +1 KiB
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12288 KiB; session driver allocations 24577 KiB in 4; open cost +0 KiB, beyond own buffers +12288 KiB
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12289 KiB; session driver allocations 24578 KiB in 5; open cost +0 KiB, beyond own buffers +12289 KiB
diff --git a/evidence/d8-process-tax/20261107T080454Z/mutant-d8-driver-kib.diff b/evidence/d8-process-tax/20261107T080454Z/mutant-d8-driver-kib.diff
new file mode 100644
index 00000000..f6cbde3f
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/mutant-d8-driver-kib.diff
@@ -0,0 +1,13 @@
+# diff of build/graph-residue-mutants/d8-expected.log against d8-driver-kib/run.log: 2160 changed lines; first 12 shown
+17,18c17,18
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 0 KiB; session driver allocations 1 KiB in 0; open cost +0 KiB, beyond own buffers +0 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 1 KiB in 1; open cost +0 KiB, beyond own buffers -1 KiB
+---
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 0 KiB; session driver allocations 0 KiB in 0; open cost +0 KiB, beyond own buffers +0 KiB
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 0 KiB in 1; open cost +0 KiB, beyond own buffers -1 KiB
+20,24c20,24
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 3 KiB in 3; open cost +0 KiB, beyond own buffers -1 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12288 KiB; session driver allocations 24577 KiB in 4; open cost +0 KiB, beyond own buffers -12288 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12289 KiB; session driver allocations 24578 KiB in 5; open cost +0 KiB, beyond own buffers -12289 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1876 KiB with buffers; own buffers 0 KiB; session driver allocations 1 KiB in 0; open cost +0 KiB, beyond own buffers +1875 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1876 KiB with buffers; own buffers 1 KiB; session driver allocations 1 KiB in 1; open cost +0 KiB, beyond own buffers +1874 KiB
diff --git a/evidence/d8-process-tax/20261107T080454Z/mutant-d8-own-round.diff b/evidence/d8-process-tax/20261107T080454Z/mutant-d8-own-round.diff
new file mode 100644
index 00000000..adb8b6e2
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/mutant-d8-own-round.diff
@@ -0,0 +1,13 @@
+# diff of build/graph-residue-mutants/d8-expected.log against d8-own-round/run.log: 1296 changed lines; first 12 shown
+18,19c18,19
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 1 KiB in 1; open cost +0 KiB, beyond own buffers -1 KiB
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 1 KiB; session driver allocations 2 KiB in 2; open cost +0 KiB, beyond own buffers -1 KiB
+---
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 0 KiB; session driver allocations 1 KiB in 1; open cost +0 KiB, beyond own buffers +0 KiB
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 0 KiB; session driver allocations 2 KiB in 2; open cost +0 KiB, beyond own buffers +0 KiB
+22c22
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12289 KiB; session driver allocations 24578 KiB in 5; open cost +0 KiB, beyond own buffers -12289 KiB
+---
+> overhead (D8): resident 1 KiB before open, 1 KiB after open, 1 KiB with buffers; own buffers 12288 KiB; session driver allocations 24578 KiB in 5; open cost +0 KiB, beyond own buffers -12288 KiB
+24,25c24,25
+< overhead (D8): resident 1 KiB before open, 1 KiB after open, 1876 KiB with buffers; own buffers 1 KiB; session driver allocations 1 KiB in 1; open cost +0 KiB, beyond own buffers +1874 KiB
diff --git a/evidence/d8-process-tax/20261107T080454Z/mutants-negative-controls.log b/evidence/d8-process-tax/20261107T080454Z/mutants-negative-controls.log
new file mode 100644
index 00000000..ca43887e
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/mutants-negative-controls.log
@@ -0,0 +1,7 @@
+# negative control 1: identity mutant (TW1 = TO1) must survive and fail the gate
+FAIL mutant d8-own-round survived
+exit 1
+# negative control 2: absent mutation site must fail the gate
+mutant d8-own-round killed rc=0
+FAIL d8-beyond-sign: mutation site count 0
+exit 1
diff --git a/evidence/d8-process-tax/20261107T080454Z/new-om-dry-run.log b/evidence/d8-process-tax/20261107T080454Z/new-om-dry-run.log
new file mode 100644
index 00000000..902885bb
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/new-om-dry-run.log
@@ -0,0 +1,85 @@
+ran sim-main: exit 0, outside VmRSS 14760 KiB
+ran sim-short: exit 1, outside VmRSS 14620 KiB
+ran sim-ballast: exit 0, outside VmRSS 538928 KiB
+ran hidden-gpu: exit 2, outside VmRSS missing KiB, driver missing MiB
+sim-main (sim), expected PASS:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2396/2396/14696 KiB, own 12288 KiB, open 0, beyond own 12 KiB (sums agree) PASS
+ B3 outside: pid 3827478 VmRSS 14760 KiB during the hold, line says 14696 KiB (tolerance 4096) PASS
+ B5 tax: 12 KiB = resident 12 + driver beyond own buffers 0; bar <= 262144 KiB PASS
+ -> PASS, as expected
+sim-short (sim), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2256/2256/14556 KiB, own 12288 KiB, open 0, beyond own 12 KiB (sums agree) PASS
+ B3 outside: pid 3827872 VmRSS 14620 KiB during the hold, line says 14556 KiB (tolerance 4096) PASS
+ B5 tax: 12 KiB = resident 12 + driver beyond own buffers 0; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+sim-ballast (sim), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2272/2272/538864 KiB, own 12288 KiB, open 0, beyond own 524304 KiB (sums agree) PASS
+ B3 outside: pid 3828151 VmRSS 538928 KiB during the hold, line says 538864 KiB (tolerance 4096) PASS
+ B5 tax: 524304 KiB = resident 524304 + driver beyond own buffers 0; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: beyond own buffers +524304 KiB >= 524288 KiB
+hidden-gpu (gpu), expected NOT_RUN:
+ run exited 2 without a device (NOT_RUN): GPU not available (stage: nvrm_open: open control nodes errno 2)
+ -> NOT_RUN, as expected
+hold-bound: hello_gpu --sim --hold-ms=60001 -> exit 2, as expected
+default-build-ballast: hello_gpu --sim --d8-ballast-mib=64 -> exit 2, as expected
+GPU judge self-test on synthetic logs (not measurements):
+syn-good (gpu), expected PASS:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS, as expected
+syn-no-driver (gpu), expected FAIL by B4 B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: no per-process report for pid 4242 ('missing') FAIL
+ B5 tax: not judged without the driver's report (resident part 1011 KiB) FAIL
+ -> FAIL, as expected
+syn-driver-tax (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 5000 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 5108722 KiB = resident 1011 + driver beyond own buffers 5107711; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+syn-bad-sum (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: printed open 1000 / beyond 11 KiB disagree with its numbers, or own 12289 KiB is off FAIL
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29671 KiB = resident 1000 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+syn-two-lines (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 2 D8 lines, 2 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL, as expected
+syn-no-line (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 0 D8 lines, 0 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL, as expected
+syn-exit-1 (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 0 wrong, 0 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+syn-no-device (gpu), expected NOT_RUN:
+ run exited 2 without a device (NOT_RUN):
+ -> NOT_RUN, as expected
+GPU verdict self-test on a synthetic recorded run (not a measurement):
+ good run with both controls caught -> exit 0, as expected
+ ballast control not seen (a blind measurement) -> exit 1, as expected
+D8 DRY RUN: PASS (host simulator, device-hidden refusal, hold bound, default-build ballast refusal, judge and verdict self-tests; the chip row stays NOT_RUN until gpu runs in a window)
diff --git a/evidence/d8-process-tax/20261107T080454Z/old-shell-dry-run.log b/evidence/d8-process-tax/20261107T080454Z/old-shell-dry-run.log
new file mode 100644
index 00000000..19613cde
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/old-shell-dry-run.log
@@ -0,0 +1,83 @@
+ran sim-main: exit 0, outside VmRSS 14760 KiB
+ran sim-short: exit 1, outside VmRSS 14636 KiB
+ran sim-ballast: exit 0, outside VmRSS 538928 KiB
+ran hidden-gpu: exit 2, outside VmRSS missing KiB, driver missing MiB
+sim-main (sim), expected PASS:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2396/2396/14696 KiB, own 12288 KiB, open 0, beyond own 12 KiB (sums agree) PASS
+ B3 outside: pid 3829936 VmRSS 14760 KiB during the hold, line says 14696 KiB (tolerance 4096) PASS
+ B5 tax: 12 KiB = resident 12 + driver beyond own buffers 0; bar <= 262144 KiB PASS
+ -> PASS, as expected
+sim-short (sim), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 1 wrong, 1 never written FAIL
+ B2 line: resident 2272/2272/14572 KiB, own 12288 KiB, open 0, beyond own 12 KiB (sums agree) PASS
+ B3 outside: pid 3830454 VmRSS 14636 KiB during the hold, line says 14572 KiB (tolerance 4096) PASS
+ B5 tax: 12 KiB = resident 12 + driver beyond own buffers 0; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+sim-ballast (sim), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2272/2272/538864 KiB, own 12288 KiB, open 0, beyond own 524304 KiB (sums agree) PASS
+ B3 outside: pid 3831818 VmRSS 538928 KiB during the hold, line says 538864 KiB (tolerance 4096) PASS
+ B5 tax: 524304 KiB = resident 524304 + driver beyond own buffers 0; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+ ballast seen: beyond own buffers +524304 KiB >= 524288 KiB
+hidden-gpu (gpu), expected NOT_RUN:
+ run exited 2 without a device (NOT_RUN): GPU not available (stage: nvrm_open: open control nodes errno 2)
+ -> NOT_RUN, as expected
+GPU judge self-test on synthetic logs (not measurements):
+syn-good (gpu), expected PASS:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> PASS, as expected
+syn-no-driver (gpu), expected FAIL by B4 B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: no per-process report for pid 4242 ('missing') FAIL
+ B5 tax: not judged without the driver's report (resident part 1011 KiB) FAIL
+ -> FAIL, as expected
+syn-driver-tax (gpu), expected FAIL by B5:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 5000 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 5108722 KiB = resident 1011 + driver beyond own buffers 5107711; bar <= 262144 KiB FAIL
+ -> FAIL, as expected
+syn-bad-sum (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: printed open 1000 / beyond 11 KiB disagree with its numbers, or own 12289 KiB is off FAIL
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29671 KiB = resident 1000 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+syn-two-lines (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 2 D8 lines, 2 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL, as expected
+syn-no-line (gpu), expected FAIL by B2:
+ B1 run: exit 0, 1048576 of 1048576 right, PASS PASS
+ B2 line: 0 D8 lines, 0 well-formed (exactly one required) FAIL
+ B3 outside: not judged without the line FAIL
+ B4 driver: not judged without the line FAIL
+ B5 tax: not judged without the line FAIL
+ -> FAIL, as expected
+syn-exit-1 (gpu), expected FAIL by B1:
+ B1 run: exit 1, checked 1048576 of 1048576 elements: 0 wrong, 0 never written FAIL
+ B2 line: resident 2000/3000/15300 KiB, own 12289 KiB, open 1000, beyond own 1011 KiB (sums agree) PASS
+ B3 outside: pid 4242 VmRSS 15310 KiB during the hold, line says 15300 KiB (tolerance 4096) PASS
+ B4 driver: pid 4242 holds 40 MiB by the driver's report (session asked for 12320 KiB) PASS
+ B5 tax: 29682 KiB = resident 1011 + driver beyond own buffers 28671; bar <= 262144 KiB PASS
+ -> FAIL, as expected
+syn-no-device (gpu), expected NOT_RUN:
+ run exited 2 without a device (NOT_RUN):
+ -> NOT_RUN, as expected
+GPU verdict self-test on a synthetic recorded run (not a measurement):
+ good run with both controls caught -> exit 0, as expected
+ ballast control not seen (a blind measurement) -> exit 1, as expected
+D8 DRY RUN: PASS (host simulator, device-hidden refusal, judge and verdict self-tests; the chip row stays NOT_RUN until --gpu runs in a window)
diff --git a/evidence/d8-process-tax/20261107T080454Z/tools.txt b/evidence/d8-process-tax/20261107T080454Z/tools.txt
new file mode 100644
index 00000000..61e59a0d
--- /dev/null
+++ b/evidence/d8-process-tax/20261107T080454Z/tools.txt
@@ -0,0 +1,23 @@
+omc /home/drakestapleton/work/finish/d8tools/omega-mv/seed/out/omc
+2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f /home/drakestapleton/work/finish/d8tools/omega-mv/seed/out/omc
+e5b32567a7aff3ce594e3254a622a846a6cd190b
+29d9cff72676bcef41a067bdcf4d8b0711042bcd
+94ead76b3e63aeb0175d881eed428d7478b92c8491efed16f90ae3930704366b build/d8_process_tax
+c200b3ea70c24828d631cac35c8ad475df550641475cb39ae957f76b6163b14c build/d8_mutants
+d4f4b199c63b4d41018db26757f08650f0b0f7dd265b88e3843d9d625c531d45 build/d8_process_tax.om
+bb011cd551f54882f7e241e293b0a665ad6353219a601b5406720b4deb6f678d build/d8_mutants.om
+c3573b8f9424fe72801056d19274e4b65d91ef1d055fca8d380072bb5a7f5dbd tests/d8_lib.om
+e3b5eb1f396e3a4e11af8cd591c743fc52e9ec5bea2630cbabbb27f8b785aba7 tests/d8_process_tax.om
+2c928c49f5b285e601d193d8977b452cdf0a5c6d74358e662e5e670a59fe6897 tests/d8_mutants.om
+bubblewrap 0.9.0
+env 0.8.0
+taskset from util-linux 2.39.3
+nice (GNU coreutils) 9.4
+cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
+GNU Make 4.3
+git version 2.43.0
+sha256sum 0.8.0
+Linux 7.0.0-1019-nvidia aarch64
+nvidia-smi (ORACLE, chip run only; not run here): NVIDIA-SMI version : 580.173.02
+spark-window: /home/drakestapleton/.local/bin/spark-window sha256 05723bbd639548989329b769030708b7fc50ed3a99e517e5d3bbeedc41c77878
+env: /usr/bin/env
diff --git a/examples/hello_gpu/README.md b/examples/hello_gpu/README.md
index 78034198..1355b709 100644
--- a/examples/hello_gpu/README.md
+++ b/examples/hello_gpu/README.md
@@ -36,6 +36,51 @@ phase digests and diagnostics against the oracle and requires a deliberately
changed result to disagree. The mutant gate compiles each changed `.om` unit;
compile refusal is not counted as a killed mutant.
+## D8: the process-tax line
+
+`hello_gpu` prints one overhead line (developer bar D8,
+`docs/issues/D8-process-tax.md`). On the GPU path it reads its resident memory
+(`VmRSS` in `/proc/self/status`) before the open, after the open and with its
+buffers allocated, its own buffer bytes, and what the session asked the driver
+for:
+
+```text
+overhead (D8): resident B KiB before open, O KiB after open, W KiB with buffers; own buffers N KiB; session driver allocations S KiB in K; open cost ±X KiB, beyond own buffers ±Y KiB
+```
+
+`--sim` prints the same line without the open:
+`overhead (D8, simulator, no device opened): …`. The KiB rounding and the signed
+differences come from `hello-plan.om` mode 5. `test-graph-residue` checks mode 5
+against the C oracle, and three mutants (`tests/d8_mutants.om`, run by
+`make test-graph-residue-mutants`) check its rounding and sign.
+`--hold-ms=N` (1 to 60000) holds the buffers after the line and prints the pid,
+so another process can read this one. The control build also accepts
+`--d8-ballast-mib=N`. It holds N MiB of touched host memory through the
+measurement, which is the negative control.
+
+`tests/d8_process_tax.om` (with its shared part `tests/d8_lib.om`, compiled by the
+pinned seeded omc) holds the bar that was fixed before any chip run, and the
+controls:
+
+- `make d8-process-tax-dry-run` (`dry-run`) runs on the host only, in bwrap
+ with the GPU devices hidden. It runs the simulator, a device-hidden GPU path
+ that must stop at NOT_RUN, the `--hold-ms` bound and the default build's
+ refusal of `--d8-ballast-mib`, and judge self-tests on synthetic logs. This dry
+ run is not chip evidence.
+- `make d8-process-tax` (`gpu`) takes one `spark-window` lease (gb10 exclusive,
+ 20 minutes). Inside the lease it measures `hello_gpu --hold-ms=3000` and both
+ controls (`--bug=short`, and `--d8-ballast-mib=512`), then releases the lease.
+ It reads `VmRSS` and the driver's per-process report from outside the process.
+ `build/d8_process_tax check-gpu OUTDIR` judges a recorded run again.
+
+The program runs these host tools, each at its absolute path or found on `PATH`:
+`/usr/bin/bwrap` (hides the GPU devices for the dry run), `/usr/bin/env`,
+`/usr/bin/nice`, `/usr/bin/taskset` (CPU pin, `D8_CORES`, default `16,17`),
+`spark-window`, `sha256sum`, `git`, and `nvidia-smi`. The 1080 s lease wall clock
+is kept by the program itself. `nvidia-smi` is an
+ORACLE: the driver's own per-process report, read from outside the process (B4).
+It is never shipped and never linked.
+
## Chip runbook — NOT_RUN
This migration has no current hardware qualification. Historical hello receipts
diff --git a/examples/hello_gpu/hello_gpu.c b/examples/hello_gpu/hello_gpu.c
index 123baa63..e3deb8ff 100644
--- a/examples/hello_gpu/hello_gpu.c
+++ b/examples/hello_gpu/hello_gpu.c
@@ -36,6 +36,16 @@
* hash of its machine code (D10, no compiling at run time), and the hash of the output (D7: the same
* inputs give the same bits on every run).
*
+ * D8 (no per-process CUDA tax, docs/issues/D8-process-tax.md): before its launches the program prints its own
+ * overhead line. It reads its resident memory (VmRSS, /proc/self/status) before the GPU opens, after it opens
+ * and with its buffers allocated and uploaded, and prints those three numbers, its own buffer bytes, what it
+ * asked the driver for through the session, the cost of opening and the resident memory beyond its own
+ * buffers. --sim prints the same line without the open (no device). `--hold-ms=N` (at most 60000) then
+ * prints its pid and sleeps N ms with the buffers held, so an outside reader can record what the driver and
+ * the kernel report for this process (tests/d8_process_tax.om). `--d8-ballast-mib=N` is the line's
+ * negative control: hello_gpu_control only (CUDAPP_MIGRATION_PENDING_HELLO_CONTROL, see above), it holds N MiB
+ * of touched host memory through the measured window, and the measurement must see it.
+ *
* Hardware: NVIDIA GB10 (DGX Spark, sm_121), Linux, the open NVIDIA kernel driver loaded.
* Built by `make hello-gpu` (see README, "Run your first kernel").
*/
@@ -57,6 +67,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <unistd.h>
#define N_TOTAL (1u << 20) /* 1048576 floats per array */
#define THREADS 128u /* threads per block (CTA) */
@@ -65,6 +76,10 @@
#define POISON 0xFFC0FFEEu /* a NaN pattern c starts out as: an element the GPU never wrote stays this */
#define READ_CEILING_GBPS 195.1 /* GB10 global reads, measured: evidence/OWN30B-T3-TC-PEAK-BW-5faa0f70-20261013T2236Z/ */
static uint32_t target_sm = 121; /* explicit --target=sm_86; never infer from the build host */
+static unsigned hold_ms = 0; /* D8: --hold-ms, 0 = no hold */
+#if CUDAPP_MIGRATION_PENDING_HELLO_CONTROL
+static unsigned ballast_mib = 0; /* D8 negative control, hello_gpu_control only */
+#endif
/* ---- Step 1: the kernel, as IR instructions -------------------------------------------------------------
* Each instruction carries a "control word" that tells the chip how long to wait before the next one.
@@ -240,13 +255,84 @@ static void chunk_plan(uint32_t base, int bug, uint64_t d[16]) {
#endif
}
+/* ---- D8: the memory this process holds beyond its own buffers -------------------------------------------- */
+/* Migration C (pure-Omega directive 2026-11-07): this D8 measurement, hold and ballast code is an addition to the
+ * existing hello_gpu.c; its arithmetic already lives in om/graph/hello-plan.om mode 5. Its .om successor is the
+ * native .om hello of aien-dev/CUDApp#79 (OM-GPU-RETIRE), which retires this file. */
+static uint64_t resident_kib(void) { /* VmRSS of this process; 0 when /proc cannot be read */
+ FILE *f = fopen("/proc/self/status", "r");
+ char line[256]; unsigned long long kib = 0;
+ if (!f) return 0;
+ while (fgets(line, sizeof line, f)) if (sscanf(line, "VmRSS: %llu kB", &kib) == 1) break;
+ fclose(f);
+ return kib;
+}
+/* opened = 0 is --sim: no device, so before == after open. driver_bytes is what the session asked the driver for. */
+static void print_overhead(int opened, uint64_t before, uint64_t after_open, uint64_t with_buffers,
+ uint64_t own_bytes, uint64_t driver_bytes, uint64_t driver_allocs) {
+ if (!before || !after_open || !with_buffers) { printf("overhead (D8): resident memory unreadable (/proc/self/status VmRSS)\n"); return; }
+ uint64_t d[16] = { 0 };
+#if CUDAPP_MIGRATION_PENDING_HELLO_HOST
+ d[0] = (own_bytes + 1023u) / 1024u;
+ d[1] = after_open >= before ? after_open - before : before - after_open; d[2] = after_open < before;
+ const uint64_t floor_kib = before + d[0];
+ d[3] = with_buffers >= floor_kib ? with_buffers - floor_kib : floor_kib - with_buffers; d[4] = with_buffers < floor_kib;
+ d[5] = (driver_bytes + 1023u) / 1024u;
+#else
+ const uint64_t c[16] = {before, after_open, with_buffers, own_bytes, driver_bytes}; uint64_t result = 0;
+ if (omega_hplan(&result, 5, c, 16, d, 16) != OMEGA_OK || result != 1) abort();
+#endif
+ if (opened)
+ printf("overhead (D8): resident %llu KiB before open, %llu KiB after open, %llu KiB with buffers; own buffers %llu KiB; "
+ "session driver allocations %llu KiB in %llu; open cost %c%llu KiB, beyond own buffers %c%llu KiB\n",
+ (unsigned long long)before, (unsigned long long)after_open, (unsigned long long)with_buffers,
+ (unsigned long long)d[0], (unsigned long long)d[5], (unsigned long long)driver_allocs,
+ d[2] ? '-' : '+', (unsigned long long)d[1], d[4] ? '-' : '+', (unsigned long long)d[3]);
+ else
+ printf("overhead (D8, simulator, no device opened): resident %llu KiB before buffers, %llu KiB with buffers; "
+ "own buffers %llu KiB; beyond own buffers %c%llu KiB\n", (unsigned long long)before,
+ (unsigned long long)with_buffers, (unsigned long long)d[0], d[4] ? '-' : '+', (unsigned long long)d[3]);
+}
+static void hold(void) { /* D8: keep the buffers while an outside reader records this pid */
+ if (!hold_ms) return;
+ printf("hold (D8): pid %ld, %u ms with buffers allocated, for an outside reading of this process\n", (long)getpid(), hold_ms);
+ fflush(stdout);
+ struct timespec t = { (time_t)(hold_ms / 1000u), (long)(hold_ms % 1000u) * 1000000L };
+ while (nanosleep(&t, &t) != 0) {}
+}
+static void *ballast(void) { /* D8 negative control: N MiB of touched host memory, NULL when not asked for */
+#if CUDAPP_MIGRATION_PENDING_HELLO_CONTROL
+ if (ballast_mib) {
+ const size_t n = (size_t)ballast_mib << 20;
+ char *p = malloc(n);
+ if (!p) { printf("FAIL: ballast of %u MiB not allocated\n", ballast_mib); exit(1); }
+ memset(p, 0x5a, n);
+ printf("ballast (D8 negative control): %u MiB of touched host memory held through the measurement\n", ballast_mib);
+ return p;
+ }
+#endif
+ return NULL;
+}
+static int number_arg(const char *arg, const char *prefix, unsigned max, unsigned *out) {
+ const size_t k = strlen(prefix);
+ if (strncmp(arg, prefix, k) != 0) return 0;
+ char *end = NULL; unsigned long v = strtoul(arg + k, &end, 10);
+ if (end == arg + k || *end || v < 1 || v > max) { printf("%s needs a whole number from 1 to %u\n", prefix, max); exit(2); }
+ *out = (unsigned)v;
+ return 1;
+}
+
/* ---- --sim: the same program on the host warp simulator --------------------------------------------------- */
static int run_sim(const BlackwellIRProgram *prog, int bug) {
const size_t bytes = (size_t)N_TOTAL * sizeof(float);
+ const uint64_t rss_before = resident_kib();
+ void *extra = ballast();
float *fa = aligned_alloc(64, bytes), *fb = aligned_alloc(64, bytes);
uint32_t *wc = aligned_alloc(64, bytes);
if (!fa || !fb || !wc) { printf("FAIL: host memory\n"); return 1; }
inputs(fa, fb, wc);
+ print_overhead(0, rss_before, rss_before, resident_kib(), 3u * bytes, 0, 0);
+ hold();
static WsSim s;
memset(&s, 0, sizeof s);
s.p = prog; s.threads = THREADS;
@@ -336,7 +422,7 @@ static int run_sim(const BlackwellIRProgram *prog, int bug) {
print_work(read_b, wrote_b, flops, 0);
print_sha("output", wc, bytes);
printf("%s\n", rc ? "FAIL" : "PASS");
- free(fa); free(fb); free(wc);
+ free(fa); free(fb); free(wc); free(extra);
return rc;
}
@@ -347,11 +433,13 @@ int main(int argc, char **argv) {
else if (!strcmp(argv[i], "--target=sm_86")) target_sm = 86;
else if (!strcmp(argv[i], "--target=sm_121")) target_sm = 121;
else if (!strcmp(argv[i], "--bug=past-end")) bug = 1;
+ else if (number_arg(argv[i], "--hold-ms=", 60000u, &hold_ms)) {}
#if CUDAPP_MIGRATION_PENDING_HELLO_CONTROL
else if (!strcmp(argv[i], "--bug=short")) bug = 2;
- else { printf("usage: hello_gpu [--sim] [--bug=short] | hello_gpu --sim --bug=past-end\n"); return 2; }
+ else if (number_arg(argv[i], "--d8-ballast-mib=", 4096u, &ballast_mib)) {}
+ else { printf("usage: hello_gpu [--sim] [--bug=short] [--hold-ms=N] [--d8-ballast-mib=N] | hello_gpu --sim --bug=past-end\n"); return 2; }
#else
- else { printf("usage: hello_gpu [--target=sm_86|--target=sm_121] [--sim [--bug=past-end]]\n"); return 2; }
+ else { printf("usage: hello_gpu [--target=sm_86|--target=sm_121] [--sim [--bug=past-end]] [--hold-ms=N]\n"); return 2; }
#endif
}
if (bug == 1 && !sim) { printf("--bug=past-end is only for --sim: on the GPU it would write past a buffer\n"); return 2; }
@@ -387,13 +475,18 @@ int main(int argc, char **argv) {
}
if (sim) return run_sim(&prog, bug);
- /* ---- Step 2: open the GPU. One process owns one device channel; the lock serialises threads. */
+ /* ---- Step 2: open the GPU. One process owns one device channel; the lock serialises threads.
+ * D8: resident memory is read just before and just after the open. */
+ const uint64_t rss_before = resident_kib();
+ void *extra = ballast();
omega_gpu_session_lock();
if (!omega_gpu_session_open()) {
printf("GPU not available (stage: %s)\nNOT_RUN\n", omega_gpu_session_last_error());
omega_gpu_session_unlock();
+ free(extra);
return 2;
}
+ const uint64_t rss_open = resident_kib();
if (omega_gpu_session_target_sm() != target_sm) {
printf("NOT_RUN: requested sm_%u does not match opened device sm_%u\n", target_sm, omega_gpu_session_target_sm());
rc = 2; goto done;
@@ -413,6 +506,11 @@ int main(int argc, char **argv) {
inputs(fa, fb, wc);
if (omega_gpu_session_sync_to_gpu(&code) || omega_gpu_session_sync_to_gpu(&a) || omega_gpu_session_sync_to_gpu(&b) ||
omega_gpu_session_sync_to_gpu(&c)) { printf("FAIL: sync to GPU (stage: %s)\n", omega_gpu_session_last_error()); goto done; }
+ { /* D8: the process with its own buffers in place, before any launch */
+ OmegaGpuAllocStats st; omega_gpu_session_alloc_stats(&st);
+ print_overhead(1, rss_before, rss_open, resident_kib(), 3u * (uint64_t)bytes + need, st.alloc_bytes, st.allocs);
+ hold();
+ }
/* ---- Step 4: launch. The argument words land in the kernel's constant bank: three addresses (low word,
* high word) and n. Each launch is pointed at its own slice of the arrays. */
@@ -447,5 +545,6 @@ done:
if (c.cpu) omega_gpu_session_free(&c);
omega_gpu_session_unlock();
omega_gpu_session_close();
+ free(extra);
return rc;
}
diff --git a/mk/dx-d8.mk b/mk/dx-d8.mk
new file mode 100644
index 00000000..bf113a7a
--- /dev/null
+++ b/mk/dx-d8.mk
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+# Developer bar D8 (docs/issues/D8-process-tax.md): what a CUDA++ process costs beyond its own buffers.
+# tests/d8_process_tax.om holds the bar and the negative controls; tests/d8_lib.om is its shared part. Both
+# compile with the pinned seeded omc (OMEGA_OMC, omega-mv e5b32567), so off a CUDAPP_OMC_HOST the rows print NOT_RUN.
+# d8-process-tax-dry-run host only, in bwrap with the GPU devices hidden; never opens a device
+# d8-process-tax GB10: takes one spark-window lease (gb10 exclusive) and measures inside it
+D8_HELLO = $(abspath $(OUT_DIR))/hello_gpu $(abspath $(OUT_DIR))/hello_gpu_control
+$(OUT_DIR)/d8_process_tax $(OUT_DIR)/d8_mutants: $(OUT_DIR)/d8_%: tests/d8_lib.om tests/d8_%.om
+ @mkdir -p $(@D)
+ cat $^ > $@.om
+ "$(OMEGA_OMC)" < $@.om > $@.tmp
+ chmod +x $@.tmp
+ mv $@.tmp $@
+.PHONY: d8-process-tax-dry-run d8-process-tax
+d8-process-tax-dry-run: $(if $(CUDAPP_OMC_HOST),$(OUT_DIR)/d8_process_tax) $(OUT_DIR)/hello_gpu $(OUT_DIR)/hello_gpu_control
+ @$(CUDAPP_REQUIRE_OMC)
+ $(OUT_DIR)/d8_process_tax dry-run "$(D8_OUT)" $(D8_HELLO)
+d8-process-tax: $(if $(CUDAPP_OMC_HOST),$(OUT_DIR)/d8_process_tax) $(OUT_DIR)/hello_gpu $(OUT_DIR)/hello_gpu_control
+ @$(CUDAPP_REQUIRE_OMC)
+ $(OUT_DIR)/d8_process_tax gpu "$(D8_OUT)" $(D8_HELLO)
diff --git a/mk/graph-residue.mk b/mk/graph-residue.mk
index 9d0f6399..e8551e78 100644
--- a/mk/graph-residue.mk
+++ b/mk/graph-residue.mk
@@ -16,8 +16,9 @@ test-graph-residue: $(OUT_DIR)/graph-residue $(OUT_DIR)/graph-residue-oracle $(O
$(OUT_DIR)/graph-residue-red > $(OUT_DIR)/graph-residue-red.log
@if cmp -s $(OUT_DIR)/graph-residue.log $(OUT_DIR)/graph-residue-red.log; then echo 'FAIL differential red check'; exit 1; fi
@echo 'PASS graph residue differential and red check'
-test-graph-residue-mutants: $(OUT_DIR)/graph-residue
+test-graph-residue-mutants: $(OUT_DIR)/graph-residue $(OUT_DIR)/d8_mutants
OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" GRAPH_RESIDUE_FLAGS="$(GRAPH_RESIDUE_FLAGS)" OUT_DIR="$(OUT_DIR)" python3 om/graph/residue-mutants.py
+ OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" $(OUT_DIR)/d8_mutants $(OUT_DIR) $(CC) $(GRAPH_RESIDUE_FLAGS)
$(OUT_DIR)/hello_gpu-oracle: examples/hello_gpu/hello_gpu.c src/cudapp_native.h $(OUT_DIR)/libomega_gpu.a
$(CC) $(GRAPH_RESIDUE_FLAGS) -O0 --coverage -DCUDAPP_MIGRATION_PENDING_HELLO_HOST=1 -DCUDAPP_MIGRATION_PENDING_HELLO_CONTROL=1 $< $(OUT_DIR)/libomega_gpu.a -lpthread -lm -o $@
.PHONY: test-graph-residue-coverage
diff --git a/om/graph/hello-plan.om b/om/graph/hello-plan.om
index abd53d47..2b0bfc03 100644
--- a/om/graph/hello-plan.om
+++ b/om/graph/hello-plan.om
@@ -120,5 +120,28 @@ high = get c add pos 1
put d 3 div sub high add low get c 8 4
ret 1
end
+note mode 5 D8 overhead: c0..c2 resident KiB before open, after open, with buffers; c3 own buffer bytes; c4 driver allocation bytes.
+note d0 own KiB rounded up, d1 d2 open cost magnitude and sign (1 negative), d3 d4 resident beyond own buffers, d5 driver KiB.
+if eq mode 5
+ownk = div add get c 3 1023 1024
+put d 0 ownk
+if ge get c 1 get c 0
+put d 1 sub get c 1 get c 0
+put d 2 0
+else
+put d 1 sub get c 0 get c 1
+put d 2 1
+end
+kb = add get c 0 ownk
+if ge get c 2 kb
+put d 3 sub get c 2 kb
+put d 4 0
+else
+put d 3 sub kb get c 2
+put d 4 1
+end
+put d 5 div add get c 4 1023 1024
+ret 1
+end
ret 0
end
diff --git a/src/cudapp_om_hello_plan.c b/src/cudapp_om_hello_plan.c
index 8f8627fe..195f7038 100644
--- a/src/cudapp_om_hello_plan.c
+++ b/src/cudapp_om_hello_plan.c
@@ -199,6 +199,27 @@ uint64_t __attribute__((unused)) v8=o_get(v1, v1_n, ({uint64_t _a=v6;uint64_t _b
{uint64_t _i=3ULL;uint64_t _v=({uint64_t _a=({uint64_t _a=v8;uint64_t _b=({uint64_t _a=v7;uint64_t _b=o_get(v1, v1_n, 8ULL, 5);o_op(1, 5, _a,_b);});o_op(2, 5, _a,_b);});uint64_t _b=4ULL;o_op(4, 5, _a,_b);});o_put(v2, v2_n, _i,_v,5);}
return o_leave(1ULL);
}
+if(({uint64_t _a=v0;uint64_t _b=5ULL;o_op(6, 5, _a,_b);})){
+uint64_t __attribute__((unused)) v3=({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 3ULL, 5);uint64_t _b=1023ULL;o_op(1, 5, _a,_b);});uint64_t _b=1024ULL;o_op(4, 5, _a,_b);});
+{uint64_t _i=0ULL;uint64_t _v=v3;o_put(v2, v2_n, _i,_v,5);}
+if(({uint64_t _a=o_get(v1, v1_n, 1ULL, 5);uint64_t _b=o_get(v1, v1_n, 0ULL, 5);o_op(11, 5, _a,_b);})){
+{uint64_t _i=1ULL;uint64_t _v=({uint64_t _a=o_get(v1, v1_n, 1ULL, 5);uint64_t _b=o_get(v1, v1_n, 0ULL, 5);o_op(2, 5, _a,_b);});o_put(v2, v2_n, _i,_v,5);}
+{uint64_t _i=2ULL;uint64_t _v=0ULL;o_put(v2, v2_n, _i,_v,5);}
+}else{
+{uint64_t _i=1ULL;uint64_t _v=({uint64_t _a=o_get(v1, v1_n, 0ULL, 5);uint64_t _b=o_get(v1, v1_n, 1ULL, 5);o_op(2, 5, _a,_b);});o_put(v2, v2_n, _i,_v,5);}
+{uint64_t _i=2ULL;uint64_t _v=1ULL;o_put(v2, v2_n, _i,_v,5);}
+}
+uint64_t __attribute__((unused)) v4=({uint64_t _a=o_get(v1, v1_n, 0ULL, 5);uint64_t _b=v3;o_op(1, 5, _a,_b);});
+if(({uint64_t _a=o_get(v1, v1_n, 2ULL, 5);uint64_t _b=v4;o_op(11, 5, _a,_b);})){
+{uint64_t _i=3ULL;uint64_t _v=({uint64_t _a=o_get(v1, v1_n, 2ULL, 5);uint64_t _b=v4;o_op(2, 5, _a,_b);});o_put(v2, v2_n, _i,_v,5);}
+{uint64_t _i=4ULL;uint64_t _v=0ULL;o_put(v2, v2_n, _i,_v,5);}
+}else{
+{uint64_t _i=3ULL;uint64_t _v=({uint64_t _a=v4;uint64_t _b=o_get(v1, v1_n, 2ULL, 5);o_op(2, 5, _a,_b);});o_put(v2, v2_n, _i,_v,5);}
+{uint64_t _i=4ULL;uint64_t _v=1ULL;o_put(v2, v2_n, _i,_v,5);}
+}
+{uint64_t _i=5ULL;uint64_t _v=({uint64_t _a=({uint64_t _a=o_get(v1, v1_n, 4ULL, 5);uint64_t _b=1023ULL;o_op(1, 5, _a,_b);});uint64_t _b=1024ULL;o_op(4, 5, _a,_b);});o_put(v2, v2_n, _i,_v,5);}
+return o_leave(1ULL);
+}
return o_leave(0ULL);
}
uint32_t omega_hplan(uint64_t *result, volatile uint64_t p0, const void *p1, uint64_t p1_n, void *p2, uint64_t p2_n){
diff --git a/src/cudapp_om_hello_plan.ident b/src/cudapp_om_hello_plan.ident
index c3bef83b..30d8f2a4 100644
--- a/src/cudapp_om_hello_plan.ident
+++ b/src/cudapp_om_hello_plan.ident
@@ -1 +1 @@
-omega-ident 2 unit=hello_plan abi=bridge-seeded src=778461c5fba0e9d8a8314893c1ca62332bfa165b047b94016c15b21d65d510e7 c=7cd4ea4e4aa60cbfcb7c63877b3178e88630324b6306dff3993ca2d1d5d26555 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=hello_plan=om/graph/hello-plan.om
+omega-ident 2 unit=hello_plan abi=bridge-seeded src=bf42f69d24392d55083af82eb9da15b6861c8d23cd883563e2c4c5b10a9ec382 c=c272c5e52eabaf3e0f59488e5d11b526f818dad95c7a937dab8b63c05ad52576 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=hello_plan=om/graph/hello-plan.om
diff --git a/src/cudapp_om_units.ident b/src/cudapp_om_units.ident
index b0ef6c8b..ca466dab 100644
--- a/src/cudapp_om_units.ident
+++ b/src/cudapp_om_units.ident
@@ -233,7 +233,7 @@ omega-ident 2 unit=resident_check abi=bridge-seeded src=c5af76f5de1799eb2b1d6966
omega-ident 2 unit=model_graph_residue abi=bridge-seeded src=14a77cfac23cc83a93c518083a12046cdf6946860dee6d51a9f4f72443c1fc34 c=cafbb6cb6d6b74943d2a6879381c027ac5da83d11c5a834d64e6443ee9277b74 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=model_graph_residue=om/graph/residue.om
omega-ident 2 unit=model_graph_table abi=bridge-seeded-runtime src=a3dea646a78c14782ae1c973a77a3484c2b06df5170da51e701618845f5f9504 c=0ec2c81591a901c571cc904b17074d15c0654ba9d4b650e564a6c0a0e048698e omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=model_graph_table=om/graph/table.om
omega-ident 2 unit=hello_host abi=bridge-seeded src=375151c240fc992cc1c29a6c4f53a01d3573f27d01668f54b261ffdbe07e70e1 c=2ffd32b739390a8b41a32c50c2ed39642247bf01b11d6769f1d78fab56883003 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=hello_host=om/graph/hello.om
-omega-ident 2 unit=hello_plan abi=bridge-seeded src=778461c5fba0e9d8a8314893c1ca62332bfa165b047b94016c15b21d65d510e7 c=7cd4ea4e4aa60cbfcb7c63877b3178e88630324b6306dff3993ca2d1d5d26555 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=hello_plan=om/graph/hello-plan.om
+omega-ident 2 unit=hello_plan abi=bridge-seeded src=bf42f69d24392d55083af82eb9da15b6861c8d23cd883563e2c4c5b10a9ec382 c=c272c5e52eabaf3e0f59488e5d11b526f818dad95c7a937dab8b63c05ad52576 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=hello_plan=om/graph/hello-plan.om
omega-ident 2 unit=core_cubadmit abi=bridge-freest src=5d3788c5afbe90f087821f5683af458849aa6daae3a3ad7cad9d69d04da58263 c=bb786d4fca1395ed4d416b1f2f8ad2bf5ed0358bfe0653a4e0ea091eb4fb7f60 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=836cbf9ef8a3c4ee82b0458070884405bc8296f83b10f933556bf27750bb3661 frontend=17d7412a4dedfe4a2fb57c979cf02a9df21ff9499d78ea9d65d4f4bbf03702dc path=core_cubadmit=om/core/fmtnum.om,om/core/cubadmit.om
omega-ident 2 unit=core_ampack abi=bridge-seeded src=ba8f1062d4b0b55fec5683e7cbe9f676ad22972c37ec1702603521fc06ea672e c=38e38ec2bf6dd5836697fef59950faf2d32c6ca3551b28bd5cc48c1a6d7ade5d omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=core_ampack=om/core/ampack.om
omega-ident 2 unit=graph_headscale abi=bridge-seeded-runtime src=cac2f74255636465c3b899f15cb06cc105dacc7f009207ffccc35d1ec08a6315 c=d04673fc508a0dcd47a59bf55dcafc6c0d4a711e089963b452e28cc26363e501 omc=2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f converter=f04bc8dc3a898c374016268f5414bfc5f4ee801d18017c379fda6229fd5fbab4 frontend=a3a455bd77381e132215924295763e8728889d7d578278ae376de78324be8629 path=graph_headscale=om/graph/headscale.om
diff --git a/tests/d8_lib.om b/tests/d8_lib.om
new file mode 100644
index 00000000..f8b2fb08
--- /dev/null
+++ b/tests/d8_lib.om
@@ -0,0 +1,630 @@
+om2
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note tests/d8_lib.om -- the shared part of the D8 programs (tests/d8_process_tax.om, tests/d8_mutants.om). Make
+note concatenates it in front of each program and compiles the result with the pinned seeded omc (omega-mv e5b32567,
+note sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f); see mk/dx-d8.mk.
+note Byte regions: B holds 32 regions of 4096 bytes (Bn their lengths). Globals are never passed to functions, so
+note helpers take region numbers. By convention region 4 holds the output directory; regions 2, 3, 22, 23, 29 and 30
+note are scratch of these helpers (2 output, 3 argument and capture, 22 environment entry, 23 PATH, 29 capture
+note path, 30 path), region 19 receives the program found by which.
+note L is one loaded file (Ln its length). AL is a packed argument list for execprog: u16 count, then a u16 length
+note and the bytes of each argument (AP: write position and count). ST is a waitpid status.
+note execprog starts every child with an empty environment; callers that need variables pass them through
+note /usr/bin/env K=V (envkv) until omega-mv has an execprog form that takes an environment.
+global B uchar 131072
+global Bn ulong 32
+global L uchar 524288
+global Ln ulong 1
+global AL uchar 4096
+global AP ulong 2
+global ST uchar 8
+
+text TBig "d8: refused (a buffer bound or a failed host call)\n"
+text TSl "/"
+text TDevNul "/dev/null"
+text TPathV "PATH="
+
+note ---- regions
+fn bfail to void
+r = write 2 TBig 0 len TBig
+exit 90
+end
+
+fn bc r ulong c uchar to void
+n = get Bn r
+if ge n 4095
+bfail
+end
+put B add mul r 4096 n c
+put Bn r add n 1
+end
+
+fn bclr r ulong to void
+put Bn r 0
+end
+
+fn bt r ulong t view uchar * to void
+for i ulong len t
+bc r get t i
+end
+end
+
+fn bs r ulong t view uchar * to void
+bclr r
+bt r t
+end
+
+fn bb d ulong s ulong to void
+for i ulong get Bn s
+bc d get B add mul s 4096 i
+end
+end
+
+fn bu r ulong v ulong to void
+d = ulong 1
+while ge div v d 10 bound 20
+d = mul d 10
+end
+while gt d 0 bound 21
+bc r uchar add 48 rem div v d 10
+d = div d 10
+end
+end
+
+fn bz r ulong v ulong w ulong to void
+d = ulong 1
+for i ulong sub w 1
+d = mul d 10
+end
+while gt d 0 bound 21
+bc r uchar add 48 rem div v d 10
+d = div d 10
+end
+end
+
+fn bl r ulong v long to void
+if lt v 0
+bc r 45
+bu r ulong neg v
+else
+bu r ulong v
+end
+end
+
+fn bist r ulong t view uchar * to bool
+n = get Bn r
+if ne n len t
+ret false
+end
+for i ulong n
+if ne get B add mul r 4096 i get t i
+ret false
+end
+end
+ret true
+end
+
+fn beq a ulong b ulong to bool
+n = get Bn a
+if ne n get Bn b
+ret false
+end
+oa = mul a 4096
+ob = mul b 4096
+for i ulong n
+if ne get B add oa i get B add ob i
+ret false
+end
+end
+ret true
+end
+
+note ^[0-9]+$ of at most 18 digits as a value; -1 otherwise
+fn bnum r ulong to long
+n = get Bn r
+if or eq n 0 gt n 18
+ret neg long 1
+end
+v = long 0
+for i ulong n
+c = get B add mul r 4096 i
+if or lt c 48 gt c 57
+ret neg long 1
+end
+v = add mul v 10 long sub c 48
+end
+ret v
+end
+
+fn bout fd int r ulong to void
+o = mul r 4096
+n = get Bn r
+k = ulong 0
+while lt k n bound 4096
+w = write fd B add o k sub n k
+if le w 0
+bfail
+end
+k = add k ulong w
+end
+end
+
+fn say t view uchar * to void
+bs 2 t
+bout 1 2
+end
+
+fn barg i ulong r ulong to void
+n = argread i B mul r 4096 4095
+if lt n 0
+bfail
+end
+put Bn r ulong n
+end
+
+note path region d = OUTDIR "/" nm sx
+fn bpath d ulong nm view uchar * sx view uchar * to void
+bclr d
+bb d 4
+bt d TSl
+bt d nm
+bt d sx
+end
+
+note path region d = OUTDIR "/" nm
+fn bpath1 d ulong nm view uchar * to void
+bclr d
+bb d 4
+bt d TSl
+bt d nm
+end
+
+fn bopen r ulong flags int to long
+n = get Bn r
+if eq n 0
+bfail
+end
+ret fopen B mul r 4096 n flags 420
+end
+
+note writes region s to the file named by region p: flags 578 create/truncate, 1089 create/append
+fn bfile p ulong s ulong flags int to void
+fd = bopen p flags
+if lt fd 0
+bfail
+end
+bout int fd s
+c = fclose int fd
+end
+
+fn bexists r ulong to bool
+n = get Bn r
+if eq n 0
+ret false
+end
+ret eq faccess B mul r 4096 n 0 0
+end
+
+note UTC from realns. style 0 %Y-%m-%dT%H:%M:%S.%NZ, 1 %FT%TZ, 2 %Y%m%dT%H%M%SZ
+fn bsep r ulong style ulong c uchar to void
+if ne style 2
+bc r c
+end
+end
+
+note the civil date of a day count since 1970-01-01 (Hinnant's civil_from_days)
+fn bdate r ulong days ulong style ulong to void
+z = add days 719468
+era = div z 146097
+doe = sub z mul era 146097
+z = sub doe div doe 1460
+z = add z div doe 36524
+yoe = div sub z div doe 146096 365
+y = add yoe mul era 400
+z = add mul 365 yoe div yoe 4
+doe = sub doe sub z div yoe 100
+z = div add mul 5 doe 2 153
+era = add sub doe div add mul 153 z 2 5 1
+if ge z 10
+z = sub z 9
+else
+z = add z 3
+end
+if le z 2
+y = add y 1
+end
+bz r y 4
+bsep r style 45
+bz r z 2
+bsep r style 45
+bz r era 2
+end
+
+fn bstamp r ulong style ulong to void
+ns = ulong realns
+s = div ns 1000000000
+bdate r div s 86400 style
+s = rem s 86400
+bc r 84
+bz r div s 3600 2
+bsep r style 58
+bz r rem div s 60 60 2
+bsep r style 58
+bz r rem s 60 2
+if eq style 0
+bc r 46
+bz r rem ns 1000000000 9
+end
+bc r 90
+end
+
+note ---- the loaded file L
+fn fload r ulong to bool
+put Ln 0 0
+fd = bopen r 0
+if lt fd 0
+ret false
+end
+n = ulong 0
+while lt n len L bound 999999
+k = read int fd L n sub len L n
+if le k 0
+break
+end
+n = add n ulong k
+end
+put Ln 0 n
+c = fclose int fd
+ret true
+end
+
+fn lend p ulong to ulong
+n = get Ln 0
+q = p
+while lt q n bound 999999
+if eq get L q 10
+ret q
+end
+q = add q 1
+end
+ret n
+end
+
+fn lat p ulong t view uchar * to bool
+for i ulong len t
+if ne get L add p i get t i
+ret false
+end
+end
+ret true
+end
+
+fn leq p ulong e ulong t view uchar * to bool
+if ne sub e p len t
+ret false
+end
+ret lat p t
+end
+
+fn lpre p ulong e ulong t view uchar * to bool
+if lt sub e p len t
+ret false
+end
+ret lat p t
+end
+
+fn lhas p ulong e ulong t view uchar * to bool
+if lt sub e p len t
+ret false
+end
+for s ulong add sub sub e p len t 1
+if lat add p s t
+ret true
+end
+end
+ret false
+end
+
+fn lcopy p ulong e ulong r ulong to void
+q = p
+while lt q e bound 999999
+bc r get L q
+q = add q 1
+end
+end
+
+note lines equal to t (mode 0) or starting with t (mode 1)
+fn lcnt t view uchar * mode ulong to ulong
+c = ulong 0
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if eq mode 0
+if leq p e t
+c = add c 1
+end
+else
+if lpre p e t
+c = add c 1
+end
+end
+p = add e 1
+end
+ret c
+end
+
+note the first line starting with t, appended to region r; false when none
+fn lfirst t view uchar * r ulong to bool
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if lpre p e t
+lcopy p e r
+ret true
+end
+p = add e 1
+end
+ret false
+end
+
+note the first line containing a or b, appended to region r
+fn lfirst2 a view uchar * b view uchar * r ulong to void
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if or lhas p e a lhas p e b
+lcopy p e r
+ret
+end
+p = add e 1
+end
+end
+
+note every line starting with key: the rest, newline separated, into region r (sed -n 's/^key//p')
+fn lvals key view uchar * r ulong to void
+bclr r
+k = ulong 0
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if lpre p e key
+if gt k 0
+bc r 10
+end
+lcopy add p len key e r
+k = add k 1
+end
+p = add e 1
+end
+end
+
+note the digits of the last line "# exit: [0-9]*" into region r (empty when none)
+note ---- processes. AL is a packed argument list: u16 count, then a u16 length and the bytes per argument.
+fn alclr to void
+put AP 0 2
+put AP 1 0
+end
+
+fn alb r ulong to void
+n = get Bn r
+p = get AP 0
+if or ge get AP 1 64 gt add add p n 2 4096
+bfail
+end
+put AL p uchar and n 255
+put AL add p 1 uchar shr n 8
+o = mul r 4096
+for i ulong n
+put AL add add p 2 i get B add o i
+end
+put AP 0 add add p 2 n
+put AP 1 add get AP 1 1
+end
+
+fn alt t view uchar * to void
+bs 3 t
+alb 3
+end
+
+note the command, arguments joined by spaces (the "# command:" line)
+fn bcmd r ulong to void
+p = ulong 2
+for a ulong get AP 1
+n = add ulong get AL p shl ulong get AL add p 1 8
+if gt a 0
+bc r 32
+end
+for i ulong n
+bc r get AL add add p 2 i
+end
+p = add add p 2 n
+end
+end
+
+note fork and execprog AL. out 1: stdout and stderr appended to the file named by region r; out 2: stdout to
+note descriptor fd, stderr to /dev/null; out 0: inherited.
+fn spawn how ulong r ulong fd int to long
+put AL 0 uchar get AP 1
+put AL 1 0
+pid = fork
+if lt pid 0
+bfail
+end
+if eq pid 0
+if eq how 1
+f = bopen r 1089
+if lt f 0
+exit 127
+end
+x = dupfd int f 1 0
+x = dupfd int f 2 0
+end
+if eq how 2
+x = dupfd fd 1 0
+g = fopen TDevNul 0 len TDevNul 1 0
+if ge g 0
+x = dupfd int g 2 0
+end
+end
+x = execprog AL 0 get AP 0
+exit 127
+end
+ret pid
+end
+
+note exit code, or 128 + signal; -1 while running (opt 1, WNOHANG)
+fn reap pid long opt int to long
+w = waitpid int pid ST 0 4 opt
+if eq w 0
+ret neg long 1
+end
+if lt w 0
+bfail
+end
+s = get ST 0
+if ne s 0
+ret add 128 long and s 127
+end
+ret long get ST 1
+end
+
+fn runwait how ulong r ulong to long
+pid = spawn how r 0
+ret reap pid 0
+end
+
+note ---- environment and PATH
+fn bpfx r ulong t view uchar * to bool
+if lt get Bn r len t
+ret false
+end
+o = mul r 4096
+for i ulong len t
+if ne get B add o i get t i
+ret false
+end
+end
+ret true
+end
+
+note region d gets bytes [k, e) of region s
+fn bmid d ulong s ulong k ulong e ulong to void
+o = mul s 4096
+while lt k e bound 4096
+bc d get B add o k
+k = add k 1
+end
+end
+
+note region d gets region s from byte k on
+fn bfrom d ulong s ulong k ulong to void
+o = mul s 4096
+n = get Bn s
+while lt k n bound 4096
+bc d get B add o k
+k = add k 1
+end
+end
+
+fn envget key view uchar * r ulong to bool
+bclr r
+for i ulong ulong envcnt
+n = envread i B 90112 4095
+if lt n 0
+bfail
+end
+put Bn 22 ulong n
+if bpfx 22 key
+bfrom r 22 len key
+ret true
+end
+end
+ret false
+end
+
+note a program name searched along PATH into region 19 (command -v)
+fn which nm view uchar * to bool
+if not envget TPathV 23
+ret false
+end
+n = get Bn 23
+s = ulong 0
+p = ulong 0
+while le p n bound 4096
+if or eq p n eq get B add 94208 p 58
+bclr 19
+bmid 19 23 s p
+if eq get Bn 19 0
+bc 19 46
+end
+bt 19 TSl
+bt 19 nm
+if eq faccess B mul ulong 19 4096 get Bn 19 1 0
+ret true
+end
+s = add p 1
+end
+p = add p 1
+end
+ret false
+end
+
+fn mkdirp r ulong to void
+n = get Bn r
+for i ulong n
+last = eq add i 1 n
+if not last
+last = eq get B add mul r 4096 add i 1 47
+end
+if and last gt i 0
+x = makedir B mul r 4096 add i 1 493
+end
+end
+end
+
+note the D8_CORES pin: false when unpinned; the cores in region 16
+fn envkv key view uchar * to void
+if envget key 3
+bs 30 key
+bb 30 3
+alb 30
+end
+end
+
+note /usr/bin/env with the variables spark-window needs, then the spark-window found on PATH (region 18)
+fn capture to long
+bclr 3
+bfile 29 3 578
+rc = runwait 1 29
+bclr 3
+x = fload 29
+n = get Ln 0
+while gt n 0 bound 999999
+if ne get L sub n 1 10
+break
+end
+n = sub n 1
+end
+if gt n 4000
+n = ulong 4000
+end
+lcopy 0 n 3
+ret rc
+end
+
+fn catfile r ulong to void
+if fload r
+bclr 2
+n = get Ln 0
+k = ulong 0
+while lt k n bound 999999
+bc 2 get L k
+k = add k 1
+if ge get Bn 2 4000
+bout 1 2
+bclr 2
+end
+end
+bout 1 2
+end
+end
diff --git a/tests/d8_mutants.om b/tests/d8_mutants.om
new file mode 100644
index 00000000..ba4a4497
--- /dev/null
+++ b/tests/d8_mutants.om
@@ -0,0 +1,312 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note tests/d8_mutants.om -- the D8 semantic mutants of om/graph/hello-plan.om (developer bar D8,
+note docs/issues/D8-process-tax.md). Make concatenates tests/d8_lib.om in front and compiles with the pinned
+note seeded omc; mk/graph-residue.mk runs it as part of test-graph-residue-mutants, after om/graph/residue-mutants.py.
+note usage: d8_mutants OUT_DIR CC [CFLAG ...] (environment: OMEGA_OMC, OMEGA_BRIDGE, PATH, HOME, TMPDIR)
+note For each mutant: the site must occur exactly once; the mutant source goes through om/units.sh (the
+note bridge's checked converter, OMEGA_UNITS=hello_plan=<mutant> into the lane), tests/test_graph_residue.c is
+note linked against the mutant's cudapp_om_hello_plan.c, and the result must exit nonzero or print other bytes
+note than OUT_DIR/graph-residue does. A surviving mutant is a FAIL (exit 1). Lanes:
+note OUT_DIR/graph-residue-mutants/<name>/{mutant.om,generate.log,compile.log,test,run.log}.
+note Regions: 1 message, 4 OUT_DIR (absolute), 5 CC, 6 lane, 7 file path, 8 log path, 9 lane file, 31 cwd.
+note execprog gives children an empty environment, so om/units.sh and CC run under /usr/bin/env with the
+note variables named above (until omega-mv has an execprog form that takes an environment).
+global X uchar 524288
+global Xn ulong 1
+global P ulong 1
+
+text TUse "usage: d8_mutants OUT_DIR CC [CFLAG ...]\n"
+text TLanes "/graph-residue-mutants"
+text TExp "/graph-residue-mutants/d8-expected.log"
+text TRef "/graph-residue"
+text TLib "/libomega_gpu.a"
+text TPlan "om/graph/hello-plan.om"
+text TMut "/mutant.om"
+text TGen "/generate.log"
+text TCmp "/compile.log"
+text TBin "/test"
+text TRun "/run.log"
+text TUnitC "/cudapp_om_hello_plan.c"
+text TEnvB "/usr/bin/env"
+text THomeV "HOME="
+text TTmpV "TMPDIR="
+text TOmcV "OMEGA_OMC="
+text TBriV "OMEGA_BRIDGE="
+text TUnitsV "OMEGA_UNITS=hello_plan="
+text TDestV "OMEGA_UNITS_DEST="
+text TSh "/bin/sh"
+text TUnitsSh "om/units.sh"
+text TTest "tests/test_graph_residue.c"
+text TPth "-lpthread"
+text TLm "-lm"
+text TOut "-o"
+text TFail "FAIL "
+text TSite ": mutation site count "
+text TGenF ": om/units.sh exit "
+text TCmpF ": compile exit "
+text TSurv "FAIL mutant "
+text TSurv2 " survived"
+text TKill "mutant "
+text TKill2 " killed rc="
+text TRefF "FAIL graph-residue reference: exit "
+text TPass "PASS graph residue D8: 3 compiled semantic mutants killed"
+text TN1 "d8-own-round"
+text TO1 "ownk = div add get c 3 1023 1024"
+text TW1 "ownk = div get c 3 1024"
+text TN2 "d8-beyond-sign"
+text TO2 "put d 4 1"
+text TW2 "put d 4 0"
+text TN3 "d8-driver-kib"
+text TO3 "put d 5 div add get c 4 1023 1024"
+text TW3 "put d 5 div get c 4 1000"
+
+note region d = OUT_DIR t
+fn opath d ulong t view uchar * to void
+bclr d
+bb d 4
+bt d t
+end
+
+note region d = lane t
+fn lpath d ulong t view uchar * to void
+bclr d
+bb d 6
+bt d t
+end
+
+note truncates the file named by region r
+fn trunc r ulong to void
+bclr 3
+bfile r 3 578
+end
+
+note sites of t in L; the last one in P
+fn lfind t view uchar * to ulong
+n = get Ln 0
+k = ulong 0
+if lt n len t
+ret k
+end
+for p ulong add sub n len t 1
+if lat p t
+k = add k 1
+put P 0 p
+end
+end
+ret k
+end
+
+note writes L[a, e) to fd
+fn lwr fd int a ulong e ulong to void
+while lt a e bound 999999
+w = write fd L a sub e a
+if le w 0
+bfail
+end
+a = add a ulong w
+end
+end
+
+fn say1 t view uchar * to void
+bs 1 t
+bc 1 10
+bout 1 1
+end
+
+note the message region 1 gets "FAIL <nm><b><rc>" (or "mutant <nm><b><rc>" when not fail) and is printed
+fn sayrc fail bool nm view uchar * b view uchar * rc long to void
+bs 1 TKill
+if fail
+bs 1 TFail
+end
+bt 1 nm
+bt 1 b
+bl 1 rc
+bc 1 10
+bout 1 1
+end
+
+note writes the mutant (L with the one site of old replaced by new) to lane/mutant.om
+fn wmut old view uchar * rep view uchar * to void
+lpath 7 TMut
+fd = bopen 7 578
+if lt fd 0
+bfail
+end
+p = get P 0
+lwr int fd 0 p
+bs 3 rep
+bout int fd 3
+lwr int fd add p len old get Ln 0
+c = fclose int fd
+end
+
+fn gen to long
+alclr
+alt TEnvB
+envkv TPathV
+envkv THomeV
+envkv TTmpV
+envkv TOmcV
+envkv TBriV
+bs 9 TUnitsV
+bb 9 7
+alb 9
+bs 9 TDestV
+bb 9 6
+alb 9
+alt TSh
+alt TUnitsSh
+lpath 8 TGen
+trunc 8
+ret runwait 1 8
+end
+
+fn build to long
+alclr
+alt TEnvB
+envkv TPathV
+envkv THomeV
+envkv TTmpV
+alb 5
+for i ulong sub ulong argcnt 3
+barg add i 3 9
+alb 9
+end
+alt TTest
+lpath 9 TUnitC
+alb 9
+opath 9 TLib
+alb 9
+alt TPth
+alt TLm
+alt TOut
+lpath 9 TBin
+alb 9
+lpath 8 TCmp
+trunc 8
+ret runwait 1 8
+end
+
+note the run log (region 8) against the reference X
+fn same to bool
+if not fload 8
+ret false
+end
+n = get Ln 0
+if ne n get Xn 0
+ret false
+end
+for i ulong n
+if ne get L i get X i
+ret false
+end
+end
+ret true
+end
+
+fn mutant nm view uchar * old view uchar * rep view uchar * to bool
+bclr 8
+bt 8 TPlan
+if not fload 8
+bfail
+end
+k = lfind old
+if ne k 1
+sayrc true nm TSite long k
+ret false
+end
+opath 6 TLanes
+bt 6 TSl
+bt 6 nm
+mkdirp 6
+wmut old rep
+rc = gen
+if ne rc 0
+sayrc true nm TGenF rc
+ret false
+end
+rc = build
+if ne rc 0
+sayrc true nm TCmpF rc
+ret false
+end
+alclr
+lpath 9 TBin
+alb 9
+lpath 8 TRun
+trunc 8
+rc = runwait 1 8
+if and eq rc 0 same
+bs 1 TSurv
+bt 1 nm
+bt 1 TSurv2
+bc 1 10
+bout 1 1
+ret false
+end
+sayrc false nm TKill2 rc
+ret true
+end
+
+note runs OUT_DIR/graph-residue once and keeps its output in X
+fn reference to bool
+opath 6 TLanes
+mkdirp 6
+alclr
+opath 9 TRef
+alb 9
+opath 8 TExp
+trunc 8
+rc = runwait 1 8
+if ne rc 0
+bs 1 TRefF
+bl 1 rc
+bc 1 10
+bout 1 1
+ret false
+end
+if not fload 8
+bfail
+end
+n = get Ln 0
+for i ulong n
+put X i get L i
+end
+put Xn 0 n
+ret true
+end
+
+fn main to int
+if lt argcnt 3
+r = write 2 TUse 0 len TUse
+ret 2
+end
+barg 1 4
+barg 2 5
+if ne get B mul ulong 4 4096 47
+k = cwd B mul ulong 31 4096 4095
+if le k 0
+bfail
+end
+put Bn 31 sub ulong k 1
+bt 31 TSl
+bb 31 4
+bclr 4
+bb 4 31
+end
+if not reference
+ret 1
+end
+if not mutant TN1 TO1 TW1
+ret 1
+end
+if not mutant TN2 TO2 TW2
+ret 1
+end
+if not mutant TN3 TO3 TW3
+ret 1
+end
+say1 TPass
+ret 0
+end
diff --git a/tests/d8_process_tax.om b/tests/d8_process_tax.om
new file mode 100644
index 00000000..b549234d
--- /dev/null
+++ b/tests/d8_process_tax.om
@@ -0,0 +1,1649 @@
+note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+note tests/d8_process_tax.om -- developer bar D8, no per-process CUDA tax (docs/issues/D8-process-tax.md).
+note Compiled by the pinned seeded omc (omega-mv e5b32567, sha256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f).
+note Host forms checked with the omega lookup tool at that pin. It replaced tests/run_d8_process_tax.sh (CUDApp#366).
+note d8_process_tax dry-run OUTDIR HELLO HELLO_CONTROL host only: no GPU, no lease; the GPU devices hidden
+note d8_process_tax gpu OUTDIR HELLO HELLO_CONTROL GB10: one spark-window lease, three runs, judged
+note d8_process_tax check-gpu OUTDIR judges a recorded gpu run again; opens no device
+note d8_process_tax inside-window OUTDIR HELLO HELLO_CONTROL only under spark-window run (the lease holds the chip)
+note An empty OUTDIR selects build/d8-process-tax-dry-run (dry-run) or build/d8-process-tax/UTC-STAMP (gpu).
+note HELLO and HELLO_CONTROL are build/hello_gpu and build/hello_gpu_control; make builds them first.
+note Exit: 0 PASS, 1 FAIL, 2 NOT_RUN, 90 refused (arguments, a buffer bound or a failed host call).
+note
+note What is measured. hello_gpu prints its own overhead line (examples/hello_gpu/hello_gpu.c, D8): resident memory
+note (VmRSS) before the GPU opens, after it opens and with its buffers allocated, its own buffer bytes, and what the
+note session asked the driver for. With --hold-ms it prints its pid and holds its buffers; during the hold this program
+note reads the same process from outside: VmRSS from /proc/PID/status and, on the GPU, the memory the driver reports for
+note the pid (nvidia-smi --query-compute-apps, a read-only ORACLE). The measured process is build/hello_gpu itself.
+note GPU runs, all in one lease, each a separate process:
+note main hello_gpu --hold-ms=3000 must PASS the bar
+note n1-short hello_gpu_control --bug=short --hold-ms=3000 negative control: must FAIL B1
+note n2-ballast hello_gpu_control --d8-ballast-mib=512 --hold-ms=3000 negative control: the open cost must show the
+note 512 MiB held across the open, and the run must FAIL B5
+note The D8 verdict is PASS only when main passes AND both controls are caught.
+note Dry run (host simulator, hello_gpu --sim, the same line without the open): the same three runs, a device-hidden
+note run of the GPU path that must stop at NOT_RUN, the hold bound (--hold-ms=60001 refused with exit 2), the ballast
+note flag refused by the default build (exit 2), and a self-test of the GPU judge and verdict on synthetic logs
+note (labelled synthetic; they are not measurements). The dry run says nothing about the chip.
+note
+note The bar, registered before any chip run (2026-11-06, on CUDApp#280 commit 074adab1):
+note B1 run hello_gpu exits 0 and prints "checked 1048576 of 1048576 elements: 0 wrong, 0 never written" and PASS.
+note B2 line exactly one well-formed D8 line; its open cost and "beyond own buffers" equal the differences of the
+note numbers it prints; own buffers 12288 KiB (sim) or 12288..12352 KiB (a, b, c plus the code buffer).
+note B3 outside the hold line names the pid this program started, and VmRSS read from outside during the hold is within
+note 4096 KiB of the line's "with buffers" number.
+note B4 driver (GPU) the driver's per-process report lists the pid with a whole number of MiB. Missing is FAIL.
+note B5 tax TAX = max(0, open cost, resident beyond own buffers) + max(0, driver MiB x 1024 - own buffers KiB)
+note (GPU) or max(0, resident beyond own buffers) (sim), and TAX <= 262144 KiB.
+note 262144 KiB is 256 MiB (WolframLanguageEvaluator: 256*2^10 -> 262144); the pain D8 answers is about 4.6 GB per
+note model: N[4.6*10^9/(256*2^20)] -> 17.136, the bar is 17.1 times below it. The ballast is 512 MiB
+note (512*2^10 -> 524288 KiB the measurement must see).
+note
+note Host programs this driver starts, by absolute path: /usr/bin/bwrap (hides /dev/nvidia* for the dry run when the
+note nodes exist), /usr/bin/nice and /usr/bin/taskset (D8_CORES pin, default 16,17; D8_CORES= runs unpinned), and on the
+note gpu path /usr/bin/env, then spark-window, nvidia-smi, git and sha256sum found on PATH. execprog starts every child
+note with an empty environment; spark-window needs HOME and PATH, so the gpu path passes HOME, PATH, USER, LOGNAME and
+note SPARK_WINDOW_OWNER through /usr/bin/env until omega-mv has an execprog form that takes an environment.
+note There is no signal-handler form at the pin either: an interrupted gpu run leaves its lease to expire (20 minutes).
+note ---- storage (the shared part, regions and helpers, is tests/d8_lib.om). Regions here: 1 message, 4 OUTDIR,
+note 5 this program, 6 HELLO, 7 HELLO_CONTROL, 10 outside pid, 11 outside VmRSS, 12 outside driver MiB, 13 hold pid,
+note 14 failed bars, 15 lease id, 16 cores, 17 nvidia-smi, 18 spark-window, 20 child pid digits, 24 log path,
+note 25 outside path, 26 file content, 27 verdict or lease path, 28 rc digits, 31 cwd and sha256sum.
+global NV long 8
+global J long 8
+global E ulong 1
+global PF uchar 8
+global DE uchar 8192
+
+text TUse "usage: d8_process_tax dry-run OUTDIR HELLO HELLO_CONTROL | gpu OUTDIR HELLO HELLO_CONTROL | check-gpu OUTDIR\n"
+text TNL "\n"
+text TSp " "
+text TCm ", "
+text TCol ": "
+text TQm "?"
+text TPASS "PASS"
+text TFAIL "FAIL"
+text TNR "NOT_RUN"
+text TNRc "NOT_RUN: "
+text TMDry "dry-run"
+text TMHid "dry-run-hidden"
+text TMGpu "gpu"
+text TMChk "check-gpu"
+text TMIn "inside-window"
+text TDDry "build/d8-process-tax-dry-run"
+text TDGpu "build/d8-process-tax/"
+text TLog ".log"
+text TOut ".outside"
+text TCmd "# command: "
+text TUs "# utc start: "
+text TEx "# exit: "
+text TUe "# utc end: "
+text THold "hold (D8): pid "
+text TChk "checked 1048576 of 1048576 elements: 0 wrong, 0 never written"
+text TChkP "checked "
+text TNoChk "no check line"
+text TOvP "overhead (D8"
+text TNAv "not available"
+text TReG "overhead (D8): resident # KiB before open, # KiB after open, # KiB with buffers; own buffers # KiB; session driver allocations # KiB in #; open cost $ KiB, beyond own buffers $ KiB"
+text TReS "overhead (D8, simulator, no device opened): resident # KiB before buffers, # KiB with buffers; own buffers # KiB; beyond own buffers $ KiB"
+text TVmP "VmRSS:"
+text TkB " kB"
+text TPid "pid="
+text TVm "vmrss_kib="
+text TDrv "driver_mib="
+text TMiss "missing"
+text TProc "/proc/"
+text TStat "/status"
+text TRan "ran "
+text TRanE ": exit "
+text TRanV ", outside VmRSS "
+text TRanK " KiB"
+text TRanD ", driver "
+text TRanM " MiB"
+text TRunNR " run exited "
+text TRunNR2 " without a device (NOT_RUN): "
+text TB1ok "run: exit 0, 1048576 of 1048576 right, PASS"
+text TB1a "run: exit "
+text TB2a "line: "
+text TB2b " D8 lines, "
+text TB2c " well-formed (exactly one required)"
+text TB3n "outside: not judged without the line"
+text TB4n "driver: not judged without the line"
+text TB5n "tax: not judged without the line"
+text TB2r "line: resident "
+text TB2own " KiB, own "
+text TB2op " KiB, open "
+text TB2by ", beyond own "
+text TB2ok " KiB (sums agree)"
+text TB2f1 "line: printed open "
+text TB2f2 " / beyond "
+text TB2f3 " KiB disagree with its numbers, or own "
+text TB2f4 " KiB is off"
+text TB3a "outside: pid "
+text TB3b " VmRSS "
+text TB3c " KiB during the hold, line says "
+text TB3d " KiB (tolerance 4096)"
+text TB3f1 "outside: hold pid '"
+text TB3f2 "', started pid '"
+text TB3f3 "', VmRSS '"
+text TB3f4 "' KiB vs line "
+text TB4a "driver: pid "
+text TB4b " holds "
+text TB4c " MiB by the driver's report (session asked for "
+text TB4d " KiB)"
+text TB4f1 "driver: no per-process report for pid "
+text TB4f2 " ('"
+text TB4f3 "')"
+text TB5a "tax: not judged without the driver's report (resident part "
+text TB5b "tax: "
+text TB5c " KiB = resident "
+text TB5d " + driver beyond own buffers "
+text TB5e "; bar <= 262144 KiB"
+text TEx1 " ("
+text TEx2 "), expected "
+text TEx3 " by"
+text TEx4 ":\n"
+text TArr " -> "
+text TAsEx ", as expected\n"
+text TFl " (failed:"
+text TPar ")"
+text TNot ": NOT the expected "
+text TBar1 " B"
+text TSim "sim"
+text TGpuK "gpu"
+text TBalS " ballast seen: beyond own buffers +"
+text TBalS2 " KiB >= 524288 KiB\n"
+text TBalN " ballast NOT seen: beyond own buffers '"
+text TBalN2 "' KiB\n"
+text TBalG " ballast seen: open cost +"
+text TBalGN " ballast NOT seen: open cost '"
+text TBalGN2 "' KiB < 524288 KiB, the measurement is blind\n"
+text TMainH "main (gpu), the bar:\n"
+text TNoMain "no main.log in "
+text TNoMain2 ": the GPU run did not happen"
+text TMainNR "D8 PROCESS TAX: NOT_RUN (the GPU was not available inside the window)\n"
+text TTaxP "D8 PROCESS TAX: PASS (tax "
+text TTaxP2 " KiB <= 262144 KiB; both negative controls caught)\n"
+text TTaxF "D8 PROCESS TAX: FAIL (main "
+text TTaxF2 ", tax "
+text TTaxF3 " KiB"
+text TTaxF4 "; "
+text TTaxF5 " control expectation(s) not met)\n"
+text TNMain "main"
+text TNShort "n1-short"
+text TNBal "n2-ballast"
+text TSMain "sim-main"
+text TSShort "sim-short"
+text TSBal "sim-ballast"
+text THid "hidden-gpu"
+text TGood "overhead (D8): resident 2000 KiB before open, 3000 KiB after open, 15300 KiB with buffers; own buffers 12289 KiB; session driver allocations 12320 KiB in 4; open cost +1000 KiB, beyond own buffers +1011 KiB"
+text TBadS "overhead (D8): resident 2000 KiB before open, 3000 KiB after open, 15300 KiB with buffers; own buffers 12289 KiB; session driver allocations 12320 KiB in 4; open cost +1000 KiB, beyond own buffers +11 KiB"
+text TBall "overhead (D8): resident 2000 KiB before open, 527300 KiB after open, 539600 KiB with buffers; own buffers 12289 KiB; session driver allocations 12320 KiB in 4; open cost +525300 KiB, beyond own buffers +525311 KiB"
+text TSyn1 "# command: synthetic judge self-test (not a measurement)\nhello_gpu: c = a + b over 1048576 floats on the GPU, built with Omega's own kernel builder\n"
+text TSyn2 "hold (D8): pid 4242, 3000 ms with buffers allocated, for an outside reading of this process\n"
+text TSynOk "checked 1048576 of 1048576 elements: 0 wrong, 0 never written\nPASS\n"
+text TSynBad "checked 1048576 of 1048576 elements: 1 wrong, 1 never written\nFAIL\n"
+text TSynO1 "pid=4242\nvmrss_kib="
+text TSynO2 "\ndriver_mib="
+text T15310 "15310"
+text T539610 "539610"
+text T40 "40"
+text T5000 "5000"
+text T0 "0"
+text T1 "1"
+text T2 "2"
+text TSynG "syn-good"
+text TSynND "syn-no-driver"
+text TSynDT "syn-driver-tax"
+text TSynBS "syn-bad-sum"
+text TSynTL "syn-two-lines"
+text TSynNL "syn-no-line"
+text TSynE1 "syn-exit-1"
+text TSynNDv "syn-no-device"
+text TSynHd "GPU judge self-test on synthetic logs (not measurements):\n"
+text TVerHd "GPU verdict self-test on a synthetic recorded run (not a measurement):\n"
+text TSynW "/syn-window"
+text TVer "/verdict.txt"
+text TVerB "/verdict-blind.txt"
+text TVGood " good run with both controls caught -> exit "
+text TVBlind " ballast control not seen (a blind measurement) -> exit "
+text TVNot ", NOT the expected "
+text TDryP "D8 DRY RUN: PASS (host simulator, device-hidden refusal, hold bound, default-build ballast refusal, judge and verdict self-tests; the chip row stays NOT_RUN until gpu runs in a window)\n"
+text TDryF "D8 DRY RUN: FAIL ("
+text TDryF2 " expectation(s) not met)\n"
+text TBwrap "/usr/bin/bwrap"
+text TNice "/usr/bin/nice"
+text TTask "/usr/bin/taskset"
+text TEnvB "/usr/bin/env"
+text TDevB "--dev-bind"
+text TDev "--dev"
+text TDevD "/dev"
+text TProcA "--proc"
+text TProcD "/proc"
+text TDDash "--"
+text TN "-n"
+text T10 "10"
+text TC "-c"
+text TNoBw "bwrap is needed to hide the GPU devices for the dry run"
+text TDevVis "GPU device nodes are visible; the dry run must not see them"
+text TNvPre "nvidia"
+text TCoreV "D8_CORES="
+text TCoreD "16,17"
+text TSimA "--sim"
+text TH1000 "--hold-ms=1000"
+text TH3000 "--hold-ms=3000"
+text TH60001 "--hold-ms=60001"
+text TShort "--bug=short"
+text TBal512 "--d8-ballast-mib=512"
+text TBal64 "--d8-ballast-mib=64"
+text TBound "hold-bound"
+text TBGate "default-build-ballast"
+text TGateH "hello_gpu --sim "
+text TGateA " -> exit "
+text TGateE ", NOT the expected 2\n"
+text TSmiQ "--query-compute-apps=pid,used_memory"
+text TSmiF "--format=csv,noheader,nounits"
+text TSmiG "--query-gpu=name,driver_version"
+text TSmiF2 "--format=csv,noheader"
+text TSpark "spark-window"
+text TSmi "nvidia-smi"
+text TGit "git"
+text TSha "sha256sum"
+text TNoCtl "no /dev/nvidiactl here (device-hidden sandbox?)"
+text TCtl "/dev/nvidiactl"
+text TNoSw "spark-window is not installed: no lease, no run"
+text TNoSmi "nvidia-smi is not installed: B4 cannot be read"
+text TNoGit "git is not installed: env.txt cannot name the commit"
+text TNoSha "sha256sum is not installed: env.txt cannot name the binaries"
+text TEnvT "env.txt"
+text TLeaseT "lease.txt"
+text TWinT "window.log"
+text TCapT "capture.tmp"
+text TVerT "verdict.txt"
+text TGHead "git HEAD: "
+text TGStat "git status (outside evidence/): "
+text TGStat2 " changed files\n"
+text TShaH "hello_gpu sha256: "
+text TShaC "hello_gpu_control sha256: "
+text TDrvE "driver: "
+text TKern "kernel: "
+text TKernP "/proc/sys/kernel/osrelease"
+text TCores "cores: "
+text TUnpin "unpinned"
+text TBarE "bar: tax <= 262144 KiB, outside VmRSS tolerance 4096 KiB, ballast 512 MiB, hold 3000 ms\n"
+text TRevP "rev-parse"
+text THEAD "HEAD"
+text TStatus "status"
+text TPorc "--porcelain"
+text TDot "."
+text TNoEv ":!evidence"
+text TOpenR "open-request "
+text TOpen "open"
+text TName "d8-process-tax"
+text TLedg "--ledger"
+text TDRA "DRA-158"
+text TLeas "--lease"
+text T20 "20"
+text TGb "--gb10"
+text TExcl "exclusive"
+text TQuiet "--quiet"
+text TNone "none"
+text TWait "--wait"
+text TId "id"
+text TRun "run"
+text TClose "close"
+text TLease "lease "
+text TStart " start "
+text TWrc "window run rc="
+text TEnd " end "
+text TClosed "closed "
+text TNoLease "no spark-window lease"
+text TInNR "not inside an exclusive spark-window lease"
+text TSwV "SPARK_WINDOW="
+text TLockV "AIEN_GB10_LOCK_HELD="
+text THomeV "HOME="
+text TUserV "USER="
+text TLognV "LOGNAME="
+text TOwnV "SPARK_WINDOW_OWNER="
+
+fn lexit r ulong to void
+bclr r
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if lpre p e TEx
+q = add p len TEx
+ok = true
+while lt q e bound 4096
+c = get L q
+if or lt c 48 gt c 57
+ok = false
+end
+q = add q 1
+end
+if ok
+bclr r
+lcopy add p len TEx e r
+end
+end
+p = add e 1
+end
+end
+
+note the digits of "hold (D8): pid [0-9]*,..." lines into region r
+fn lhold r ulong to void
+bclr r
+k = ulong 0
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if lpre p e THold
+q = add p len THold
+while lt q e bound 4096
+c = get L q
+if or lt c 48 gt c 57
+break
+end
+q = add q 1
+end
+if lt q e
+if eq get L q 44
+if gt k 0
+bc r 10
+end
+lcopy add p len THold q r
+k = add k 1
+end
+end
+end
+p = add e 1
+end
+end
+
+note line [p, e) against a template: # is [0-9]+, $ is [+-][0-9]+; the numbers go to NV
+fn ltpl p ulong e ulong t view uchar * to bool
+k = ulong 0
+for i ulong len t
+c = get t i
+if or eq c 35 eq c 36
+ng = false
+if eq c 36
+if ge p e
+ret false
+end
+c = get L p
+if eq c 45
+ng = true
+else
+if ne c 43
+ret false
+end
+end
+p = add p 1
+end
+v = long 0
+d = ulong 0
+while lt p e bound 4096
+c = get L p
+if or lt c 48 gt c 57
+break
+end
+if ge d 18
+ret false
+end
+v = add mul v 10 long sub c 48
+d = add d 1
+p = add p 1
+end
+if eq d 0
+ret false
+end
+if ng
+v = neg v
+end
+put NV k v
+k = add k 1
+else
+if ge p e
+ret false
+end
+if ne get L p c
+ret false
+end
+p = add p 1
+end
+end
+ret eq p e
+end
+
+note lines matching the D8 template of kind (1 gpu, 0 sim); NV holds the last match
+fn lcntd8 kind ulong to ulong
+c = ulong 0
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if eq kind 1
+if ltpl p e TReG
+c = add c 1
+end
+else
+if ltpl p e TReS
+c = add c 1
+end
+end
+p = add e 1
+end
+ret c
+end
+
+note ---- output rows
+fn padto r ulong w ulong to void
+while lt get Bn r w bound 4096
+bc r 32
+end
+end
+
+note row: bar b, the message in region 1, ok
+fn row b ulong ok bool to void
+bs 2 TSp
+bt 2 TSp
+bc 2 66
+bu 2 b
+padto 2 5
+bt 2 TSp
+bb 2 1
+padto 2 80
+bt 2 TSp
+if ok
+bt 2 TPASS
+else
+bt 2 TFAIL
+bt 14 TBar1
+bu 14 b
+put J 7 or get J 7 long shl ulong 1 b
+end
+bt 2 TNL
+bout 1 2
+end
+
+fn brc r ulong to void
+if eq get Bn 28 0
+bt r TQm
+else
+bb r 28
+end
+end
+
+note ---- the judge. kind 1 gpu, 0 sim. J: 0 verdict (0 PASS, 1 FAIL, 2 NOT_RUN), 1 open set, 2 open, 3 beyond
+note set, 4 beyond, 5 tax set, 6 tax, 7 failed bars (bit b). NV after B2: before, open_kib, with, own, drv_alloc.
+fn judge12 kind ulong to bool
+x = fload 24
+lexit 28
+if or bist 28 T2 gt lcnt TNR 0 0
+bs 2 TRunNR
+brc 2
+bt 2 TRunNR2
+lfirst2 TNAv TNR 2
+bt 2 TNL
+bout 1 2
+put J 0 2
+ret false
+end
+ok = and and bist 28 T0 gt lcnt TChk 0 0 and gt lcnt TPASS 0 0 eq lcnt TFAIL 0 0
+if ok
+bs 1 TB1ok
+row 1 true
+else
+bs 1 TB1a
+brc 1
+bt 1 TCm
+if not lfirst TChkP 1
+bt 1 TNoChk
+end
+row 1 false
+end
+n = lcntd8 kind
+total = lcnt TOvP 1
+if or ne n 1 ne total 1
+bs 1 TB2a
+bu 1 total
+bt 1 TB2b
+bu 1 n
+bt 1 TB2c
+row 2 false
+bs 1 TB3n
+row 3 false
+if eq kind 1
+bs 1 TB4n
+row 4 false
+end
+bs 1 TB5n
+row 5 false
+put J 0 1
+ret false
+end
+ret true
+end
+
+fn judge2 kind ulong to void
+before = get NV 0
+okb = get NV 1
+with = get NV 2
+ownb = get NV 3
+opc = get NV 6
+by = get NV 7
+if eq kind 0
+okb = before
+with = get NV 1
+ownb = get NV 2
+by = get NV 3
+opc = long 0
+put NV 4 0
+end
+put NV 1 okb
+put NV 2 with
+put NV 3 ownb
+ownok = eq ownb 12288
+if eq kind 1
+ownok = and ge ownb 12288 le ownb 12352
+end
+ownok = and ownok gt before 0
+ownok = and ownok gt with 0
+ownok = and ownok eq opc sub okb before
+ownok = and ownok eq by sub sub with before ownb
+if ownok
+bs 1 TB2r
+bl 1 before
+bt 1 TSl
+bl 1 okb
+bt 1 TSl
+bl 1 with
+bt 1 TB2own
+bl 1 ownb
+bt 1 TB2op
+bl 1 opc
+bt 1 TB2by
+bl 1 by
+bt 1 TB2ok
+row 2 true
+else
+bs 1 TB2f1
+bl 1 opc
+bt 1 TB2f2
+bl 1 by
+bt 1 TB2f3
+bl 1 ownb
+bt 1 TB2f4
+row 2 false
+end
+put J 1 1
+put J 2 opc
+put J 3 1
+put J 4 by
+end
+
+fn judge3 to void
+x = fload 25
+lvals TPid 10
+lvals TVm 11
+lvals TDrv 12
+x = fload 24
+lhold 13
+with = get NV 2
+vm = bnum 11
+ok = false
+if and and gt get Bn 13 0 beq 13 10 ge vm 0
+d = sub vm with
+if lt d 0
+d = neg d
+end
+ok = le d 4096
+end
+if ok
+bs 1 TB3a
+bb 1 10
+bt 1 TB3b
+bb 1 11
+bt 1 TB3c
+bl 1 with
+bt 1 TB3d
+row 3 true
+else
+bs 1 TB3f1
+bb 1 13
+bt 1 TB3f2
+bb 1 10
+bt 1 TB3f3
+bb 1 11
+bt 1 TB3f4
+bl 1 with
+row 3 false
+end
+end
+
+fn judge45 kind ulong to void
+opc = get J 2
+rss = get J 4
+if gt opc rss
+rss = opc
+end
+if lt rss 0
+rss = long 0
+end
+drv = bnum 12
+dp = long 0
+if eq kind 1
+if ge drv 0
+bs 1 TB4a
+bb 1 10
+bt 1 TB4b
+bb 1 12
+bt 1 TB4c
+bl 1 get NV 4
+bt 1 TB4d
+row 4 true
+dp = sub mul drv 1024 get NV 3
+if lt dp 0
+dp = long 0
+end
+else
+bs 1 TB4f1
+bb 1 10
+bt 1 TB4f2
+bb 1 12
+bt 1 TB4f3
+row 4 false
+end
+end
+tax = add rss dp
+put J 5 1
+put J 6 tax
+if and eq kind 1 lt drv 0
+bs 1 TB5a
+bl 1 rss
+bt 1 TB4d
+row 5 false
+else
+bs 1 TB5b
+bl 1 tax
+bt 1 TB5c
+bl 1 rss
+bt 1 TB5d
+bl 1 dp
+bt 1 TB5e
+row 5 le tax 262144
+end
+end
+
+fn judge kind ulong nm view uchar * to void
+for i ulong 8
+put J i 0
+end
+bclr 14
+bpath 24 nm TLog
+bpath 25 nm TOut
+if not judge12 kind
+ret
+end
+judge2 kind
+judge3
+judge45 kind
+if eq get J 7 0
+put J 0 0
+else
+put J 0 1
+end
+end
+
+fn bverd r ulong v long to void
+if eq v 0
+bt r TPASS
+end
+if eq v 1
+bt r TFAIL
+end
+if eq v 2
+bt r TNR
+end
+end
+
+fn bkind r ulong kind ulong to void
+if eq kind 1
+bt r TGpuK
+else
+bt r TSim
+end
+end
+
+fn bbars r ulong mask long to void
+for b ulong 6
+if ne and mask long shl ulong 1 b 0
+bt r TBar1
+bu r b
+end
+end
+end
+
+note expect: want 0 PASS, 1 FAIL, 2 NOT_RUN; a FAIL expectation names the bars (bit b) that must be among the failed
+fn expect nm view uchar * kind ulong want long mask long to void
+bs 2 nm
+bt 2 TEx1
+bkind 2 kind
+bt 2 TEx2
+bverd 2 want
+if ne mask 0
+bt 2 TEx3
+bbars 2 mask
+end
+bt 2 TEx4
+bout 1 2
+judge kind nm
+v = get J 0
+bs 2 TArr
+bverd 2 v
+if and eq v want eq and get J 7 mask mask
+bt 2 TAsEx
+else
+if gt get Bn 14 0
+bt 2 TFl
+bb 2 14
+bt 2 TPar
+end
+bt 2 TNot
+bverd 2 want
+if ne mask 0
+bt 2 TEx3
+bbars 2 mask
+end
+bt 2 TNL
+put E 0 add get E 0 1
+end
+bout 1 2
+end
+
+fn notrun t view uchar * to void
+bs 2 TNRc
+bt 2 t
+bt 2 TNL
+bout 1 2
+exit 2
+end
+
+note ---- check-gpu
+fn checkgpu to int
+bpath 24 TNMain TLog
+if not bexists 24
+bs 2 TNRc
+bt 2 TNoMain
+bb 2 4
+bt 2 TNoMain2
+bt 2 TNL
+bout 1 2
+ret 2
+end
+put E 0 0
+say TMainH
+judge 1 TNMain
+mv = get J 0
+tset = get J 5
+tax = get J 6
+bs 2 TArr
+bverd 2 mv
+bt 2 TNL
+bout 1 2
+if eq mv 2
+say TMainNR
+ret 2
+end
+expect TNShort 1 1 2
+expect TNBal 1 1 32
+if and eq get J 1 1 ge get J 2 524288
+bs 2 TBalG
+bl 2 get J 2
+bt 2 TBalS2
+else
+bs 2 TBalGN
+if eq get J 1 1
+bl 2 get J 2
+end
+bt 2 TBalGN2
+put E 0 add get E 0 1
+end
+bout 1 2
+if and eq mv 0 eq get E 0 0
+bs 2 TTaxP
+bl 2 tax
+bt 2 TTaxP2
+bout 1 2
+ret 0
+end
+bs 2 TTaxF
+bverd 2 mv
+if eq tset 1
+bt 2 TTaxF2
+bl 2 tax
+bt 2 TTaxF3
+end
+bt 2 TTaxF4
+bu 2 get E 0
+bt 2 TTaxF5
+bout 1 2
+ret 1
+end
+
+note ---- measure: runs AL and reads it from outside during its hold. kind 1 gpu. Writes NAME.log and NAME.outside.
+note The driver's report for the pid, field 2 of nvidia-smi's "pid, used_memory" rows, into region 12.
+fn smiread pid long to void
+bclr 12
+x = pipefds PF 0 8 524288
+if ne x 0
+ret
+end
+rfd = int or long get PF 0 shl long get PF 1 8
+wfd = int or long get PF 4 shl long get PF 5 8
+alclr
+alb 17
+alt TSmiQ
+alt TSmiF
+c = spawn 2 0 wfd
+x = fclose wfd
+n = ulong 0
+while lt n len L bound 999999
+k = read rfd L n sub len L n
+if le k 0
+break
+end
+n = add n ulong k
+end
+x = fclose rfd
+w = reap c 0
+put Ln 0 n
+bclr 20
+bu 20 ulong pid
+p = ulong 0
+while lt p n bound 999999
+e = lend p
+q = p
+while lt q e bound 4096
+if eq get L q 44
+break
+end
+q = add q 1
+end
+bclr 3
+lcopy p q 3
+if lt q e
+if beq 3 20
+q = add q 1
+while lt q e bound 4096
+if ne get L q 32
+break
+end
+q = add q 1
+end
+s = q
+while lt q e bound 4096
+if eq get L q 44
+break
+end
+q = add q 1
+end
+lcopy s q 12
+ret
+end
+end
+p = add e 1
+end
+end
+
+note VmRSS of /proc/PID/status (sed 's/^VmRSS:[[:space:]]*\([0-9]*\) kB$/\1/p') into region 11
+fn vmread pid long to void
+bs 30 TProc
+bu 30 ulong pid
+bt 30 TStat
+bclr 11
+if not fload 30
+ret
+end
+p = ulong 0
+while lt p get Ln 0 bound 999999
+e = lend p
+if lpre p e TVmP
+q = add p len TVmP
+while lt q e bound 4096
+c = get L q
+if and ne c 32 ne c 9
+break
+end
+q = add q 1
+end
+s = q
+while lt q e bound 4096
+c = get L q
+if or lt c 48 gt c 57
+break
+end
+q = add q 1
+end
+if leq q e TkB
+lcopy s q 11
+end
+end
+p = add e 1
+end
+end
+
+fn holdseen to bool
+x = fload 24
+ret gt lcnt THold 1 0
+end
+
+fn measure nm view uchar * kind ulong to void
+bpath 24 nm TLog
+bpath 25 nm TOut
+bs 26 TCmd
+bcmd 26
+bt 26 TNL
+bt 26 TUs
+bstamp 26 0
+bt 26 TNL
+bfile 24 26 578
+pid = spawn 1 24 0
+rc = neg long 1
+for i ulong 600
+if holdseen
+break
+end
+rc = reap pid 1
+if ge rc 0
+break
+end
+x = sleepns 100000000
+end
+bs 11 TMiss
+bs 12 TMiss
+if holdseen
+if lt rc 0
+rc = reap pid 1
+end
+end
+if holdseen
+if lt rc 0
+vmread pid
+if eq get Bn 11 0
+bs 11 TMiss
+end
+if eq kind 1
+for t ulong 3
+smiread pid
+if gt get Bn 12 0
+break
+end
+bs 12 TMiss
+x = sleepns 300000000
+end
+end
+end
+end
+if lt rc 0
+rc = reap pid 0
+end
+bs 26 TEx
+bl 26 rc
+bt 26 TNL
+bt 26 TUe
+bstamp 26 0
+bt 26 TNL
+bfile 24 26 1089
+bs 26 TPid
+bl 26 pid
+bt 26 TNL
+bt 26 TVm
+bb 26 11
+bt 26 TNL
+bt 26 TDrv
+bb 26 12
+bt 26 TNL
+bfile 25 26 578
+bs 2 TRan
+bt 2 nm
+bt 2 TRanE
+bl 2 rc
+bt 2 TRanV
+bb 2 11
+bt 2 TRanK
+if eq kind 1
+bt 2 TRanD
+bb 2 12
+bt 2 TRanM
+end
+bt 2 TNL
+bout 1 2
+end
+
+note ---- dry run
+note any /dev entry named nvidia* (compgen -G '/dev/nvidia*')
+fn devvis to bool
+fd = fopen TDevD 0 len TDevD 0 0
+if lt fd 0
+ret false
+end
+seen = false
+while true bound 4096
+n = getdnts int fd DE 0 len DE
+if le n 0
+break
+end
+p = ulong 0
+while lt p ulong n bound 8192
+rl = add ulong get DE add p 16 shl ulong get DE add p 17 8
+ok = true
+for i ulong len TNvPre
+if ne get DE add add p 19 i get TNvPre i
+ok = false
+end
+end
+if ok
+seen = true
+end
+if eq rl 0
+break
+end
+p = add p rl
+end
+end
+x = fclose int fd
+ret seen
+end
+
+fn cores to bool
+if envget TCoreV 16
+ret gt get Bn 16 0
+end
+bs 16 TCoreD
+ret true
+end
+
+fn alpin to void
+alt TNice
+alt TN
+alt T10
+if cores
+alt TTask
+alt TC
+alb 16
+end
+end
+
+note a hello run that must refuse with exit 2 (the hold bound, the ballast flag outside the control build)
+fn refuse nm view uchar * arg view uchar * to void
+alclr
+alb 6
+alt TSimA
+alt arg
+bpath 24 nm TLog
+bs 26 TCmd
+bcmd 26
+bt 26 TNL
+bfile 24 26 578
+rc = runwait 1 24
+bs 2 nm
+bt 2 TCol
+bt 2 TGateH
+bt 2 arg
+bt 2 TGateA
+bl 2 rc
+if eq rc 2
+bt 2 TAsEx
+else
+bt 2 TGateE
+put E 0 add get E 0 1
+end
+bout 1 2
+end
+
+note synthetic GPU logs for the judge's self-test. line 0 none, 1 good, 2 bad sum, 3 two lines, 4 ballast
+fn synlog p ulong line ulong bad bool rc view uchar * to void
+bs 26 TSyn1
+if eq line 1
+bt 26 TGood
+bt 26 TNL
+end
+if eq line 2
+bt 26 TBadS
+bt 26 TNL
+end
+if eq line 3
+bt 26 TGood
+bt 26 TNL
+bt 26 TGood
+bt 26 TNL
+end
+if eq line 4
+bt 26 TBall
+bt 26 TNL
+end
+bt 26 TSyn2
+if bad
+bt 26 TSynBad
+else
+bt 26 TSynOk
+end
+bt 26 TEx
+bt 26 rc
+bt 26 TNL
+bfile p 26 578
+end
+
+fn synout p ulong vm view uchar * drv view uchar * to void
+bs 26 TSynO1
+bt 26 vm
+bt 26 TSynO2
+bt 26 drv
+bt 26 TNL
+bfile p 26 578
+end
+
+note drv 0 "40", 1 missing, 2 "5000"; rc 0, 1 or 2
+fn syn nm view uchar * line ulong drv ulong rc ulong to void
+bpath 24 nm TLog
+if eq rc 0
+synlog 24 line false T0
+end
+if eq rc 1
+synlog 24 line false T1
+end
+if eq rc 2
+synlog 24 line false T2
+end
+bpath 25 nm TOut
+if eq drv 0
+synout 25 T15310 T40
+end
+if eq drv 1
+synout 25 T15310 TMiss
+end
+if eq drv 2
+synout 25 T15310 T5000
+end
+end
+
+note check-gpu on OUTDIR/syn-window in a child, stdout to the verdict file; the exit code
+fn verdict vf view uchar * to long
+bclr 27
+bb 27 4
+bt 27 TSynW
+bt 27 vf
+pid = fork
+if lt pid 0
+bfail
+end
+if eq pid 0
+f = bopen 27 578
+if lt f 0
+exit 90
+end
+x = dupfd int f 1 0
+bt 4 TSynW
+exit checkgpu
+end
+ret reap pid 0
+end
+
+fn vline t view uchar * rc long want long to void
+bs 2 t
+bl 2 rc
+if eq rc want
+bt 2 TAsEx
+else
+bt 2 TVNot
+bl 2 want
+bt 2 TNL
+put E 0 add get E 0 1
+end
+bout 1 2
+end
+
+note path region 30 = OUTDIR/syn-window/ nm sx
+fn swpath nm view uchar * sx view uchar * to void
+bclr 30
+bb 30 4
+bt 30 TSynW
+bt 30 TSl
+bt 30 nm
+bt 30 sx
+end
+
+fn selftest to void
+say TSynHd
+syn TSynG 1 0 0
+syn TSynND 1 1 0
+syn TSynDT 1 2 0
+syn TSynBS 2 0 0
+syn TSynTL 3 0 0
+syn TSynNL 0 0 0
+syn TSynE1 1 0 1
+syn TSynNDv 0 1 2
+expect TSynG 1 0 0
+expect TSynND 1 1 48
+expect TSynDT 1 1 32
+expect TSynBS 1 1 4
+expect TSynTL 1 1 4
+expect TSynNL 1 1 4
+expect TSynE1 1 1 2
+expect TSynNDv 1 2 0
+say TVerHd
+bclr 30
+bb 30 4
+bt 30 TSynW
+x = makedir B mul ulong 30 4096 get Bn 30 493
+swpath TNMain TLog
+synlog 30 1 false T0
+swpath TNMain TOut
+synout 30 T15310 T40
+swpath TNShort TOut
+synout 30 T15310 T40
+swpath TNShort TLog
+synlog 30 1 true T1
+swpath TNBal TLog
+synlog 30 4 false T0
+swpath TNBal TOut
+synout 30 T539610 T40
+vline TVGood verdict TVer 0
+swpath TNBal TLog
+synlog 30 1 false T0
+swpath TNBal TOut
+synout 30 T15310 T40
+vline TVBlind verdict TVerB 1
+end
+
+fn dryrun hidden bool to int
+if not hidden
+if devvis
+if ne faccess TBwrap 0 len TBwrap 1 0
+notrun TNoBw
+end
+alclr
+alpin
+alt TBwrap
+alt TDevB
+alt TSl
+alt TSl
+alt TDev
+alt TDevD
+alt TProcA
+alt TProcD
+alt TDDash
+alb 5
+alt TMHid
+alb 4
+alb 6
+alb 7
+put AL 0 uchar get AP 1
+put AL 1 0
+x = execprog AL 0 get AP 0
+bfail
+end
+end
+if devvis
+notrun TDevVis
+end
+mkdirp 4
+alclr
+alb 6
+alt TSimA
+alt TH1000
+measure TSMain 0
+alclr
+alb 7
+alt TSimA
+alt TShort
+alt TH1000
+measure TSShort 0
+alclr
+alb 7
+alt TSimA
+alt TBal512
+alt TH1000
+measure TSBal 0
+alclr
+alb 6
+alt TH1000
+measure THid 1
+put E 0 0
+expect TSMain 0 0 0
+expect TSShort 0 1 2
+expect TSBal 0 1 32
+if and eq get J 3 1 ge get J 4 524288
+bs 2 TBalS
+bl 2 get J 4
+bt 2 TBalS2
+else
+bs 2 TBalN
+if eq get J 3 1
+bl 2 get J 4
+end
+bt 2 TBalN2
+put E 0 add get E 0 1
+end
+bout 1 2
+expect THid 1 2 0
+refuse TBound TH60001
+refuse TBGate TBal64
+selftest
+if eq get E 0 0
+say TDryP
+ret 0
+end
+bs 2 TDryF
+bu 2 get E 0
+bt 2 TDryF2
+bout 1 2
+ret 1
+end
+
+note ---- inside the window and the gpu run
+fn inside to int
+if not envget TSwV 3
+notrun TInNR
+end
+if eq get Bn 3 0
+notrun TInNR
+end
+if not envget TLockV 3
+notrun TInNR
+end
+if not bist 3 T1
+notrun TInNR
+end
+alclr
+alb 6
+alt TH3000
+measure TNMain 1
+alclr
+alb 7
+alt TShort
+alt TH3000
+measure TNShort 1
+alclr
+alb 7
+alt TBal512
+alt TH3000
+measure TNBal 1
+ret 0
+end
+
+fn alenv to void
+alclr
+alt TEnvB
+envkv THomeV
+envkv TPathV
+envkv TUserV
+envkv TLognV
+envkv TOwnV
+alb 18
+end
+
+note runs AL with stdout and stderr to region 29's file; region 3 gets the output without trailing newlines
+fn shafield r ulong to void
+for i ulong get Bn 3
+c = get B add mul ulong 3 4096 i
+if eq c 32
+break
+end
+bc r c
+end
+bt r TNL
+end
+
+note env.txt: the commit, the binaries, the driver, the kernel, the pin and the bar. git and sha256sum are in 19/31.
+fn envtxt to void
+bpath1 29 TCapT
+bs 26 TGHead
+alclr
+alb 19
+alt TRevP
+alt THEAD
+x = capture
+bb 26 3
+bt 26 TNL
+bt 26 TGStat
+alclr
+alb 19
+alt TStatus
+alt TPorc
+alt TDDash
+alt TDot
+alt TNoEv
+x = capture
+c = ulong 0
+if gt get Bn 3 0
+c = ulong 1
+end
+for i ulong get Bn 3
+if eq get B add mul ulong 3 4096 i 10
+c = add c 1
+end
+end
+bu 26 c
+bt 26 TGStat2
+bt 26 TShaH
+alclr
+alb 31
+alb 6
+x = capture
+shafield 26
+bt 26 TShaC
+alclr
+alb 31
+alb 7
+x = capture
+shafield 26
+bt 26 TDrvE
+alclr
+alb 17
+alt TSmiG
+alt TSmiF2
+x = capture
+bb 26 3
+bt 26 TNL
+bt 26 TKern
+bs 30 TKernP
+if fload 30
+n = get Ln 0
+while gt n 0 bound 4096
+if ne get L sub n 1 10
+break
+end
+n = sub n 1
+end
+lcopy 0 n 26
+end
+bt 26 TNL
+bt 26 TCores
+if cores
+bb 26 16
+else
+bt 26 TUnpin
+end
+bt 26 TNL
+bt 26 TBarE
+bpath1 30 TEnvT
+bfile 30 26 578
+end
+
+fn lnote p ulong t view uchar * t2 view uchar * to void
+bs 26 t
+bb 26 15
+bt 26 t2
+bstamp 26 1
+bt 26 TNL
+bfile p 26 1089
+end
+
+fn gpurun to int
+if not bexists 30
+notrun TNoCtl
+end
+if not which TSpark
+notrun TNoSw
+end
+bclr 18
+bb 18 19
+if not which TSmi
+notrun TNoSmi
+end
+bclr 17
+bb 17 19
+if not which TSha
+notrun TNoSha
+end
+bclr 31
+bb 31 19
+if not which TGit
+notrun TNoGit
+end
+mkdirp 4
+envtxt
+bpath1 27 TLeaseT
+bs 26 TOpenR
+bstamp 26 1
+bt 26 TNL
+bfile 27 26 578
+alenv
+alt TOpen
+alt TName
+alt TLedg
+alt TDRA
+alt TLeas
+alt T20
+alt TGb
+alt TExcl
+alt TQuiet
+alt TNone
+alt TWait
+rc = runwait 1 27
+bpath1 29 TCapT
+alenv
+alt TId
+rc = capture
+bclr 15
+if eq rc 0
+bb 15 3
+end
+if eq get Bn 15 0
+catfile 27
+notrun TNoLease
+end
+lnote 27 TLease TStart
+bpath1 29 TWinT
+alenv
+alt TRun
+alpin
+alb 5
+alt TMIn
+alb 4
+alb 6
+alb 7
+bclr 3
+bfile 29 3 578
+pid = spawn 1 29 0
+t0 = monons
+rc = neg long 1
+while lt rc 0 bound 999999
+rc = reap pid 1
+if lt rc 0
+if gt sub monons t0 1080000000000
+x = killpid int pid 15
+rc = reap pid 0
+rc = long 124
+else
+x = sleepns 100000000
+end
+end
+end
+bs 26 TWrc
+bl 26 rc
+bt 26 TEnd
+bstamp 26 1
+bt 26 TNL
+bfile 27 26 1089
+alenv
+alt TClose
+alb 15
+rc = runwait 1 27
+bs 3 TClosed
+lnote 27 TClosed TSp
+catfile 29
+bpath1 27 TVerT
+pid = fork
+if lt pid 0
+bfail
+end
+if eq pid 0
+f = bopen 27 578
+if lt f 0
+exit 90
+end
+x = dupfd int f 1 0
+exit checkgpu
+end
+v = reap pid 0
+catfile 27
+ret int v
+end
+
+fn main to int
+c = argcnt
+if lt c 3
+r = write 2 TUse 0 len TUse
+ret 2
+end
+barg 0 5
+barg 1 3
+barg 2 4
+if ne get B mul ulong 5 4096 47
+k = cwd B mul ulong 31 4096 4095
+if le k 0
+bfail
+end
+put Bn 31 sub ulong k 1
+bt 31 TSl
+bb 31 5
+bclr 5
+bb 5 31
+end
+if ge c 5
+barg 3 6
+barg 4 7
+end
+if bist 3 TMChk
+ret checkgpu
+end
+if lt c 5
+r = write 2 TUse 0 len TUse
+ret 2
+end
+if bist 3 TMDry
+if eq get Bn 4 0
+bs 4 TDDry
+end
+ret dryrun false
+end
+if bist 3 TMHid
+ret dryrun true
+end
+if bist 3 TMIn
+ret inside
+end
+if bist 3 TMGpu
+if eq get Bn 4 0
+bs 4 TDGpu
+bstamp 4 2
+end
+bs 30 TCtl
+ret gpurun
+end
+r = write 2 TUse 0 len TUse
+ret 2
+end
diff --git a/tests/test_graph_residue.c b/tests/test_graph_residue.c
index 89bddccb..cd8dff23 100644
--- a/tests/test_graph_residue.c
+++ b/tests/test_graph_residue.c
@@ -85,6 +85,14 @@ int main(void) {
printf("hello chunk digest %016llx\n",(unsigned long long)digest);
print_work(N_TOTAL*8u,N_TOTAL*4u,N_TOTAL,128.0); target_sm=86;
print_work(N_TOTAL*8u,N_TOTAL*4u,N_TOTAL,128.0); target_sm=121;
+ { /* D8 overhead line: both signs, own and driver bytes on and off a KiB boundary, the unreadable case.
+ * Migration C (pure-Omega directive 2026-11-07): retired with hello_gpu.c by the native .om hello of
+ * aien-dev/CUDApp#79 (OM-GPU-RETIRE); the D8 mutants are tests/d8_mutants.om. */
+ const uint64_t rss[] = {1, 1876, 3120, 15412, 1048576, UINT64_MAX / 4};
+ const uint64_t own[] = {0, 1, 1023, 1024, 12582912, 12583424};
+ for(unsigned i=0;i<6;i++) for(unsigned j=0;j<6;j++) for(unsigned k=0;k<6;k++) for(unsigned o=0;o<6;o++)
+ print_overhead(1, rss[i], rss[j], rss[k], own[o], own[o] * 2u + 1u, o);
+ print_overhead(0, 1876, 1876, 14168, 12582912, 0, 0); print_overhead(1, 0, 1, 1, 0, 0, 0); }
BlackwellIRProgram p;assert(build_vecadd(&p)==0);for(size_t i=0;i<p.count;i++)word(p.insns[i].control);
#ifdef CUDAPP_GRAPH_DIFF_RED
digest ^= 1;