Portable host checks and target-only commands
make test is the host suite. It does not need a CUDA toolkit, NVIDIA
userspace tools or a GPU device node. Carried seeded-Omega mutation gates,
including test-codegen-f64, require the pinned compiler and bridge checkouts;
set their environment as described in the f64 host runbook.
Builds and simulations run in the required device-free bwrap namespace;
they must not open /dev/nvidia* or /dev/aien-gpu.
Integration long-run receipts (2026-11-06)
These are host differentials, not chip qualification. All three ran inside
bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10.
| Path | Source | Observed result | Local receipt |
|---|---|---|---|
| QMMA | 62640e93b39ca6a6a33a1795d5463db1297eb81f | rc 0; structure exhaustive NITER bit-basis PASS (94 values, zero refused); NITER-dependence and output mutants caught; CODEGEN QMMA DIFF PASS (714275 cases) | /tmp/integ/codegen-a-qmma-bwrap.log |
| TGEMM exhaustive | 62640e93b39ca6a6a33a1795d5463db1297eb81f | rc 0; mutant caught; CODEGEN TGEMM EXHAUSTIVE DIFF PASS (17276981 accepted cases) | /tmp/integ/codegen-a-tgemm-exhaustive-bwrap.log |
| MoE | #284 262275e | record negative control caught; CODEGEN MOE DIFF PASS (1732053 programs, 10681 refusals) | /tmp/integ/moe-final-diff-262275e-b.log |
QMMA and TGEMM commands were OUT_DIR=build/integ-long-62640 followed by the
wrapper above and respectively make -j3 test-codegen-qmma-diff and
make -j3 test-codegen-tgemm-exhaustive. MoE is Main's recorded differential
receipt. These results do not substitute for the integrated full host suite.
On x86-64, when you did not set CC, make uses gcc. GNU make's built-in
CC=cc is left alone on AArch64, so a GB10 make still invokes cc.
make CC=clang test still uses the compiler you named. Engine simulator
recipes that name gcc directly keep that compiler.
The default CUDAPP_MEM_RESERVE_MIB is 4096. It is not changed. On the x86-64
VM in evidence/HOST-X86-20261030, make CC=gcc -j4 test exits 2 at that
default and passes only with CUDAPP_MEM_RESERVE_MIB=0. The failing check
refuses a 741.9 MiB serving upload because 4.6 GiB is free and the runtime
keeps 4.0 GiB free. A host that cannot keep 4096 MiB free fails the same way.
GitHub Actions runs CUDAPP_MEM_RESERVE_MIB=0 make CC=gcc -j4 test and
make CC=gcc gpu-engine-freestanding on ubuntu-24.04
(.github/workflows/host-x86.yml). The AArch64 host-tests job is unchanged.
GB10 stays NOT_RUN.
On x86-64, make test does not count checks that execute the seeded AArch64
binding or the pinned omc. Those targets still exist. Invoking one directly
exits 2 and names the requirement. make test-omega-target-only prints one
line per name in CUDAPP_TARGET_ONLY_TESTS and exits 0; that exit is the
report, not a pass of the named checks. On AArch64 those checks stay inside
make test. The list includes test-qmma-probe-rest-mutants,
test-core-residue-mutants, test-c5-policy, test-dagsim-jstr-om,
test-disasm-words, test-graph-table-perm, test-graph-headscale,
test-numeric-om-mutants, test-numeric-rest-om-mutants, test-nvrm-alloc,
test-platform-linux-fake-device, test-prefill-host-rest, test-codegen-fixture-rest,
test-gpu-attn-any-mutants, test-codegen-pfhost-admit-mutants, test-codegen-tc-mutants,
test-codegen-tc-host-mutants, test-gpu-conv2d-mutants, test-core-mutants,
test-gpu-dnn-activations-mutants, test-dnn-half-mutants, test-gpu-dnn-rows-mutants and
test-engine-fixture-rest.
test-gpu-imadhi-rc and test-dagsim stay in make test on x86-64. They are
host programs and do not open a device. On the VM in
evidence/HOST-X86-20261030, after main b4f0480 was merged,
CUDAPP_MEM_RESERVE_MIB=0 make CC=gcc -j4 test exited 0 and ended
CUDA++ HOST TESTS PASS (57 targets). Inside that run test-gpu-imadhi-rc
printed PASS for bw_warp_sim.h, bw_warp_sim_tc.h, bw_warp_sim_k.h and
bw_warp_sim_pa.h. test-dagsim printed dagsim_unit: 171 checks, 0 failed.
The same make CC=gcc test-gpu-imadhi-rc command by itself also exited 0.
GB10 stays NOT RUN.
Three targets in that suite are the fresh-checkout contract:
make test-omega-slice-runner # missing compiler, missing slice, wrong pin
make test-omega-arch-guard # x86-64 production refusal
make test-omega-barrier-contract # dsb sy stays on AArch64; x86-64 keeps a real fence
make test-omega-binding-portable # revision and epoch vectors
make test-omega-target-only # names the checks this host does not run
Binary64 codegen
test-codegen-f64 is registered in CARRIED_HOST_TESTS by
mk/codegen-f64.mk. It runs independent C/seeded byte differentials,
IEEE binary64 edge vectors, register-pair pressure/refusal, the append-only
replay bound, a simulated DFMA/DSETP probe and six compiled seeded mutants.
The codegen_f64_probe --chip mode is never a host-suite dependency and is
NOT_RUN without a current exclusive window. See [the encoding facts and
chip runbook](CODEGEN_F64.md).
Ternary row-major simulation
The ternary test-gpu-tern-sched target also runs an independent row-major
warp-simulator regression. Its packed weights and expected row values do not
use the API packer or Omega's algebra oracle.
When reusing the pinned Omega tests/gpu_tern_test.c battery, pre-include
CUDA++'s tests/bw_warp_sim_k.h in the test translation unit. Quoted includes
otherwise select the simulator beside the external test, which at Omega
e5b32567 ignores scalar LDG.E immediate offsets. That stale simulator fails
row-major cases even with the unchanged C builder. Do not alter the generator,
packing, or expected values to accommodate it. The integration
test-codegen-tern-sim target already uses a current-simulator adapter.
Memory ordering
nvrm/cpu_barrier.h is the publication barrier.
- On AArch64 the instruction is
dsb sy. That is the GB10 host barrier. The production backend is not rebuilt with a no-op, an emptyasm, or a dropped fence. - On x86-64 the instruction is a sequentially consistent fence. The object contains that fence. It is how the portable host suite compiles the same sources.
OMEGA_BLACKWELL_HOST_SIMULATORis a compile definition for the fake-driver engine tests (test-gpu-engine-simandtest-gpu-engine-backend-mutants). It lets those tests call the backend on a non-AArch64 host. It does not enable a real device. The production library is built without it. On x86-64 that library's Blackwell open and the direct matmul and vector entries returnENOTSUPand the textrequires AArch64 Linux, and they do not call the driver.
make test-omega-arch-guard runs that refusal on x86-64. On AArch64 the same
target prints NOT_RUN and does not build the binary, because a cross
compile is not an x86-64 runtime result and the production path must not be
asked to open a device from this check. CROSS_COMPILE_ONLY=1 records the
same NOT_RUN after a cross compile.
make test-omega-barrier-contract rejects a raw dsb sy outside
#if defined(__aarch64__), checks the header split, and disassembles a tiny
caller. A one-line unguarded fixture must fail. If aarch64-linux-gnu-gcc is
absent on an x86-64 host, the AArch64 object row prints NOT_RUN. The source
contract still runs.
Seeded binding on a non-AArch64 host
om/units.sh emits every seeded unit as checked portable C through the pinned
omega-bridge (om/omega-bridge.lock): src/cudapp_om_<unit>.c for the hosted
units and src/cudapp_freest_<unit>.c for the import-free scalar units. They
are generated and not edited. Every host compiles the same files, so x86-64
runs bw_enc_sm121.om, cubin_elf.om and the native units through the same C
that AArch64 links. make test-om-encoder, make test-om-cubin,
make test-codegen-freestanding and make test-gpu-native-runtime run on
x86-64.
make test-omega-binding-portable checks the revision and epoch vectors
against the generated src/cudapp_freest_revision.c and
src/cudapp_freest_epoch.c on every host.
The pinned compiler omc is an AArch64 binary. These commands execute it, so on
x86-64 they exit 2 unless OMEGA_OMC is given explicitly and executes there
(.github/workflows/ampere-x86.yml registers the pinned QEMU provenance oracle
for that job). They run for real on AArch64 when their other tools are
present:
make test-om-spec-encoder
make test-portable-receipts
make test-model-capacity
make test-prof
make test-codegen-freestanding on x86-64 still runs the freestanding C
encoder checks. The hosted .om comparison prints NOT_RUN and is not
performed. CUDAPP_ENCODER=diff on x86-64 is an error: that mode executes the
seeded binding.
make test-gpu-session-mutants on x86-64 still runs the nine session-shell
mutants. Its seven Omega-unit mutants regenerate .om through om/units.sh,
so they print NOT_RUN there unless OMEGA_OMC is given and executes on that
host. The final line counts only the mutants that ran. The same split applies
to test-chip-enum-om (differential, controls and fixture scan run; seven
.om mutants print NOT_RUN), test-codegen-base-om (the C comparison runs;
om/units.sh --check prints NOT_RUN), test-regalloc-om (same split) and
test-codegen-rest (differential and coverage run; the Omega mutants print
NOT_RUN). CUDAPP_OMC_STEP (Makefile) gives the same split to one recipe
line: test-cm-route, test-dagsim, test-nvrm-policy, test-nvrm-struct,
test-codegen-f64, test-platform-linux-rest and test-gpu-resident run
their C and host checks and print <target>: <what> NOT_RUN for the step that
executes the pinned omc.
Omega slice gate
The eight slices stay in omega/slices/: doorbell.osc, sequencer.osc,
nvrm.osc, va.osc, open_plan.osc, kmod.osc, mesa.osc, launch.osc.
A missing name fails before any compiler is required.
The compiler checkout is explicit. There is no default directory.
OMEGA_OSC_COMPILER_DIR=/path/to/omega-osc-cubin tests/omega/run.sh 120
# or: tests/omega/run.sh 120 /path/to/omega-osc-cubin
# or: make test-omega-slices OMEGA_OSC_COMPILER_DIR=/path/to/omega-osc-cubin
make test-omega-slices is not part of make test. A fresh checkout has no
sibling compiler, so the portable suite only runs the refusal checks.
The harness must be a clean Git checkout of source commit
1accb93164ce68a2ac2e2c680acf54782f260d62 (the pin recorded on
roadmap/15-reproducible-host). The runner then uses
build/compiler/test_osc_compiler and builds that target when the binary is
absent. Failures:
| Condition | Exit | Diagnostic |
|---|---|---|
OMEGA_OSC_COMPILER_DIR unset and no directory argument | 2 | compiler harness not configured plus the required commit |
| Directory is not a Git checkout | 2 | harness directory is not a Git checkout |
HEAD is a different commit | 2 | wrong harness source with expected and found revisions |
| Tracked or untracked changes | 2 | harness checkout is modified |
| A named slice file is absent | 1 | missing required slice and the path |
| Binary still absent after the build | 2 | compiler binary still missing |
The 2026-10-22 receipt on that branch recorded an AArch64 binary SHA-256 of
a007283780347dd4a4b024844dc0c81fc09e0926f27f83e50c07d42508886f23 and a
passing eight-slice run. This tree does not re-measure that binary. A run
prints the source commit and the binary SHA-256 of whatever it actually
executed.
What is portable, and what is not
Portable, included in make test:
make
make test
make test-omega-slice-runner
make test-omega-arch-guard
make test-omega-barrier-contract
make test-omega-binding-portable
build/hello_gpu --sim
make doctor
make doctor reads /proc, /sys and /dev. It does not open a GPU. On a
machine that is not a DGX Spark it reports the missing pieces. That report is
the result.
Target-only, not a silent pass inside make test:
make test-omega-slices # needs the pinned OSC compiler above
make test-om-encoder # AArch64; seeded encoder binding
make test-om-cubin # AArch64; seeded cubin packer
make test-gpu-native-runtime # AArch64; seeded native units
make test-om-spec-encoder # pinned omc; samples read by Omega's own sm121dis
make test-om-spec-encoder-nvdisasm-oracle # same, read by NVIDIA nvdisasm (oracle)
make test-om-disasm-mutants # pinned omc and bridge; four .om decoder mutants, each caught by the .om vs C differential
make test-sm121dis # pinned omc and nvdisasm; oracle agreement and .om vs C corpus
make test-sm121dis-opmove # pinned omc and nvdisasm; BlackwellIR ops 64..79 encoded, read by ours and the oracle
make test-portable-receipts # pinned omc
make test-model-capacity # pinned omc
make test-prof # pinned omc; profiler host and simulator tiers, chip stays NOT_RUN
make test-expert-coder # pinned omc; ERC1 expert-weight coder on generated matrices, every negative control (not in make test)
make test-expert-coder-mutants # pinned omc; each ERC1 check broken once, the suite must fail each time (not in make test)
make test-expert-coder-real # pinned omc and the Qwen3.8-Flash-Next checkpoint; real expert matrices (not in make test)
make hello-gpu # GB10, opens the NVIDIA device nodes
./build/gpu_<name>_test --out receipt.json
make test-gpu-engine-gb10-compile only compiles the Phase B chip source. It
does not run it. make test-gpu-scan runs the existing frozen-order reduction
host checks and both warp-simulator scheduling orders. Its numeric substrate
defaults to the seeded units in om/numeric/; retained native C/assembly is
an opt-in differential oracle. make test-gpu-gemm is the separate GEMM host
and simulator target. Neither simulator target opens a GPU.
make test-gpu-scan-mutants needs OMEGA_MV and OMEGA_BRIDGE_DIR and is
outside make test.
Numeric remainder migration
make test-numeric-rest-om-diff compares bulk reference/CPU realization, FTZ,
parity and seed traces, patch encoding/checking, launch admission, IEEE
predicates and the general reduction hierarchy against the retained C oracle.
Non-NaN floats compare by bits; NaNs compare by class. The reducer preserves
the declared warp tree at every level, including padding and final MEAN
division. Sequential summation is deliberately not that contract.
The production numeric archive objects also force -ffp-contract=off, including
when a caller supplies CFLAGS; see the
archive build/control receipt.
make test-numeric-rest-om-mutants regenerates disposable copies, requires a
passing control, kills six changed Omega algorithms and rejects omission of
each of the five strong remainder units at link time. The earlier scalar
test-numeric-om-diff and test-numeric-om-mutants remain unchanged contracts.
Set OMEGA_OMC and OMEGA_BRIDGE to the pins checked by om/units.sh.
The independent native implementations compile only with
CUDAPP_MIGRATION_PENDING_C_NUMERIC_REST (oracle-only) or
CUDAPP_MIGRATION_PENDING_C_NUMERIC_REST_DIFF (both implementations, distinct
symbols). The default has no weak-symbol fallback. C adapters transport
bits/addresses, allocate reduction buffers and render diagnostics; the .om
units decide the computation and admission.
On the shared Spark, run every command above under:
bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10.
Build with at most -j3. These checks are host/simulator evidence only; the
chip runbook and limitations are in
numeric-rest-20261106.
An AArch64 host build of this tree keeps dsb sy in nvrm_cpu_barrier. A
GB10 run of the device path is a separate receipt. A host or simulator pass
does not qualify it.
QMMA builder migration
make test-codegen-qmma-diff is host-only and part of make test. The default
QMMA probe, peak and F2E4 probe builders execute om/codegen/cg_qmma.om
through checked portable Omega IR replay. cg_qmma_patch.om owns placeholder
validation and rewriting. CUDAPP_MIGRATION_PENDING_C_CODEGEN_QMMA=1 selects
the old C oracle; it defaults to zero.
The differential is exhaustive over structure, bit-basis over niter.
For every supported peak chain count, issue stall and thread count it tests
the unique union of {1,7,UINT32_MAX} and
{2^k,2^k-1,2^k+1 | k=0..31}. Zero is a matched refusal.
It also checks both probe variants at every supported wait count and F2E4.
Each accepted case compares encoded bytes, patched bytes, patch counts and
packed cubins between C and Omega. For each structural configuration, both
implementations' patched bytes must differ from their niter=7 baseline only
in the same MOVI word-1 immediate field, whose decoded value must equal niter.
The field is located from the baseline IR, not a hard-coded instruction index.
A parity-dependent stall mutant must fail this confinement check independently
of C/Omega equality; a separate corrupted-control-word mutant must fail byte equality.
Unsupported configurations, null outputs, corrupt placeholders and short
buffers are also compared with C.
Source-level scalar dependence: src/omega_blackwell_codegen_qmma.c:110-122
rejects zero and copies iters only into movi(e,cnt,iters).
On the peak path, om/codegen/cg_qmma.om:416-419 copies the scalar into spec
slot 1, :98-101 rejects zero, and :294-297 copies it into the single MOVI
immediate. No other peak emission depends on that scalar. The executable
confinement checks strengthen this source argument; they do not claim literal
enumeration of every uint32 iteration count.
Domain query:
WolframLanguageEvaluator: v=Union[Join[{1,7,2^32-1},Flatten[Table[{2^k,2^k-1,2^k+1},{k,0,31}]]]]; {Length[v],Count[v,_?(#>0&)],Length[v]*16*15*32}
→ {94,93,721920} (including the refused-zero probes).
The strengthened matrix/confinement target is NOT_RUN to completion:
its focused run was cancelled at the operator's wrap-up directive. The initial
receipt below predates this strengthening and must not be cited as its PASS.
Initial pre-confinement receipt:
The focused command exited zero and printed
CODEGEN QMMA DIFF PASS (7748 cases) on 2026-11-06, after printing
CODEGEN QMMA MUTANT CAUGHT. This is host parity, not chip qualification.
make test-codegen-qmma-host also exited zero on 2026-11-06 UTC:
the patch oracle-bit self-test and model checks passed, ending
GPU_QMMA_PROBE: PASS.
Constants were transcribed from the existing C oracle and checked with
WolframLanguageEvaluator: AssociationMap[FromDigits[#,16]&,{"51303832","46453433","38383838","fc000","358","380","388","ffff","7209","723e","07800000","048070ff","723c","727a","41800","2c00","ffffff00","ffff0000"}]
→ respectively
1362114610,1178940467,943208504,1032192,856,896,904,65535,29193,29246,125829120,75526399,29244,29306,268288,11264,4294967040,4294901760.
Chip tier is NOT_RUN. In a separately authorized exclusive GB10 window,
build taskset -c 10-14 nice -n 10 make -j3 build/gpu_qmma_probe_test,
then run ./build/gpu_qmma_probe_test --host-only and
./build/gpu_qmma_probe_test using that window's required device authorization
and receipt capture procedure. The default command exercises arithmetic,
the dropped-C negative control, and the peak sweep. Do not run it outside
that window.
Tiled BF16 training GEMM builder migration
The default omega_blackwell_codegen_tgemm_prog executes the first-party
cg_tgemm.om builder and cg_tgemm_spec.om admission/query unit through
checked portable IR replay. cg_tgemm_emit.om shares the QMMA allocator,
record packer and scoreboard-control primitives. The old C oracle remains
behind CUDAPP_MIGRATION_PENDING_C_CODEGEN_TGEMM=1, default zero.
Native portable view lengths count elements, not bytes.
make test-codegen-tgemm-diff checks every structural shape and supported
mutant along the full independent K and N axes, compares all public query
results and refusals, and compares complete IR plus allocator state.
Each structural baseline also compares encoded bytes and packed cubins.
Equal complete IR and allocator state feed the same deterministic encoder;
this is stronger than comparing only encoded bytes.
The independent-axes command is not an exhaustive Cartesian-product receipt.
make test-codegen-tgemm-exhaustive visits the complete supported bounded
K/N/RT/warps/AQN/mutant product, including C refusals.
Both modes require detection of an independently corrupted Omega control word.
make test-codegen-tgemm-sim runs the carried budget checks and warp simulator
with its arithmetic reference and mutant controls; it opens no GPU.
Host receipt (2026-11-06 UTC, pinned omc e5b32567 and Bridge bc11b30b):
taskset -c 10-14 nice -n 10 make -j3 test-codegen-tgemm-diff
returned zero with CODEGEN TGEMM MUTANT CAUGHT and
CODEGEN TGEMM AXES DIFF PASS (55295 accepted cases).
The printed first-instruction control-word mismatch belongs to the deliberate
mutant, not a positive-case failure. The carried reference command
taskset -c 10-14 nice -n 10 make -j3 test-codegen-qmma-host test-codegen-tgemm-sim
also exited zero on 2026-11-06 UTC. QMMA ended GPU_QMMA_PROBE: PASS;
TGEMM budget checks ended GPU_TGEMM: PASS; TGEMM simulation ended
GPU_TGEMM: PASS, with both fragment orders matching the arithmetic reference
and mutants 1–4 caught. Full-product and chip verdicts remain separate.
Constant transcription query:
WolframLanguageEvaluator: {AssociationMap[FromDigits[#,16]&,{"21","25","26","d8","100","10000","ffff0000","fffffffe"}],2^32,2^17,2^23}
→ {<|"21"->33,"25"->37,"26"->38,"d8"->216,"100"->256,"10000"->65536,"ffff0000"->4294901760,"fffffffe"->4294967294|>,4294967296,131072,8388608}.
Chip tier is NOT_RUN. In a separately authorized exclusive GB10 window,
build taskset -c 10-14 nice -n 10 make -j3 build/gpu_tgemm_test,
run ./build/gpu_tgemm_test --host-only and
./build/gpu_tgemm_test --sim, then capture
./build/gpu_tgemm_test --chip under the current device authorization and
receipt procedure. Only the last command opens the device. Its carried chip
path checks both uncached and cached buffers, output poisoning, repeat
identity, arithmetic reference and mutant 4. Host parity is not chip qualification.
Seeded attention IR builders
The decode and tensor-prefill attention builders use
om/codegen/cg_attn*.om and om/codegen/cg_pattn*.om by default. Omega owns
configuration loops, RMSNorm/RoPE instruction selection, scoreboard scheduling,
branch fixups, and loop metadata. The C adapter only validates the public spec
and invokes omega_gpu_om_ir_replay; the public headers are unchanged.
The original builders remain differential oracles behind
CUDAPP_MIGRATION_PENDING_C_CODEGEN_ATTN and
CUDAPP_MIGRATION_PENDING_C_CODEGEN_PATTN (both off by default).
make test-codegen-attn, carried by make test, builds those oracles separately
and enumerates every accepted spec: decode depth 1 through 4 and mutant 0 through
4; prefill warps 4 or 8 and mutant 0 through 4, with FUSED/APPEND/ATTEND and
mirror permitted only for APPEND. These spec guards define a finite complete
accepted space; invalid-boundary and null cases are checked separately.
The differential checks the full IR, register allocation, and padded encoded
bytes. Every accepted spec also runs a one-record negative control and an
Omega scheduling mutant (kind=1, changing the first load's stall).
Production adapters always use kind=0. Runtime launch parameters, including
sequence length and pointer addresses, do not change the generated program.
Regenerate and check the committed bridge output with the pins in
om/units.sh:
OMEGA_OMC=/path/to/omega-mv/seed/out/omc \
OMEGA_BRIDGE=/path/to/omega-bridge sh om/units.sh
OMEGA_OMC=/path/to/omega-mv/seed/out/omc \
OMEGA_BRIDGE=/path/to/omega-bridge sh om/units.sh --check
make test-codegen-attn
build/gpu_decode_attn_test --host-only
build/gpu_decode_attn_test --sim
build/gpu_prefill_attn_test --host-only
build/gpu_prefill_attn_test --sim
The compiler pin is omega-mv e5b32567, as checked by om/units.sh. These are
host/simulator checks, not chip qualification. A separately authorized GB10
window is required before running either test binary without --host-only or
--sim. During that window, follow the current hardware authorization and
service-safety procedure, then run build/gpu_decode_attn_test --out decode.json
and build/gpu_prefill_attn_test --out prefill.json. Both default modes open the
GPU; neither is run by the migration tests. Preserve the receipts separately
from the host evidence and perform the window's required closeout checks.
Prefill host-work builders in Omega
Router logits and MoE weighted combine default to om/codegen/cg_pfhost*.om.
CUDAPP_MIGRATION_PENDING_C_CODEGEN_PFHOST=1 selects the retained C builder
oracle; it is off by default. Public APIs and spec layouts are unchanged.
The Omega phases construct the records, virtual-register shapes, schedule,
loop boundaries and branch displacements. C only replays the generic tape.
make test-codegen-pfhost
make build/gpu_pfhost_test
build/gpu_pfhost_test --sim
The differential enumerates every k, e, t, h, top_k and mutant
selector accepted by the C spec validators. It compares return values, every
IR field, solved register allocation and encoded bytes, including configurations
whose builders refuse. A flipped instruction is the comparator's negative
control. Separate router-address and combine-address Omega source mutants
are regenerated with the pinned compiler and converter, linked in isolation,
and must fail the same differential. Generation requires OMEGA_OMC and
OMEGA_BRIDGE as documented above; it does not install a fallback compiler.
Without an executable pinned compiler on non-AArch64 hosts, source mutation
checks are NOT_RUN; the exhaustive checked-C differential still runs.
The existing simulator checks both warp scheduling orders and the numerical
mutants against the host references.
Chip qualification is separate and needs a current exclusive GPU window.
Only after obtaining that authorization, build build/gpu_pfhost_test and
run its --chip mode using the current machine's window procedure. Never
interpret the host differential or simulator as a hardware receipt.
FP8 MoE builder migration
make test-codegen-moe-diff test-codegen-moe-sim is host-only and carried by
make test. The default MoE step/deep and row-pipelined builders execute
om/codegen/cg_moe*.om using the existing checked Omega IR replay.
cg_moe_sched.om owns the optional physical-register stall pass. The public
headers are unchanged. CUDAPP_MIGRATION_PENDING_C_CODEGEN_MOE=1 and
CUDAPP_MIGRATION_PENDING_C_CODEGEN_MOE2=1 select independent handwritten C
oracles; both default to zero.
The differential exhausts the structural domain accepted by the C guards, including every supported mutation selector, and compares exact return codes, IR/allocation state, SASS and packed cubin bytes in memory. Variant 2 ignores the four free uint32 depth/scheduling/coalescing/weight-first fields: every bit and all-ones are checked independently for every accepted structural tuple, not the entire uint32 Cartesian product. Boundary and bit-basis invalid inputs must retain the C rejection code. A corrupted record must be caught.
The differential covers the plain entry points only (the domain the frozen C guards accept). The ragged-K entry points
(omega_blackwell_codegen_fp8_gemv_ragged_prog, any k that is a multiple of 128 and not of 32 * lane_bytes) have no C oracle:
they are checked by the simulator, the double-precision oracle and their own source mutants (see the Flash-Next section below),
and by a direct comparison of base and head output on every spec the plain entry points accept.
python3 om/codegen/moe_mutants.py (with OMEGA_OMC and OMEGA_BRIDGE set)
requires each altered Omega source to compile and then fail the ordinary
differential. tests/codegen_moe_sim_test.c uses bw_warp_sim_k.h against an
independent all-one e4m3 reference, both builders and fragment/warp orders,
with a scale-drop negative control. Neither host path opens a device or
models scoreboard timing. The exact structural domain, compiler pin,
arithmetic provenance and separately authorized chip runbook are in
evidence/codegen-moe-20261106/REPORT.md. Chip qualification is NOT_RUN.
Launch these host checks inside the device-free namespace:
bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 <command>.
This also isolates the mutation runner's child builds and test processes.
API-rest seeded runtime views
The API-rest migration uses omega-bridge 79e8c36 runtime views and the seeded
compiler SHA-256 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f.
The handwritten algorithms live in om/apirest/; generated checked C is a
bridge artifact, not a second handwritten implementation. Canonical MoE
fragment packing and row compaction come from om/codegen/cg_pack_len.om,
cg_pack_h.om and cg_mrow.om. Their byte/element extents are distinct:
packing accepts source bytes and destination ushort elements; compaction
accepts source/destination f32 elements. Runtime views refuse read/edit overlap.
Four tern segments require four endpoint and scale elements, even though the
launch contains only three interior boundaries.
Run each command through this isolation prefix on the shared Spark:
bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 sh tests/api_rest_run.sh
bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 python3 tests/api_rest_mutants.py
bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 env OMEGA_ROOT=/path/to/pinned/omega-mv sh tests/api_rest_families.sh
The mutant runner also requires OMEGA_OMC, OMEGA_SEED and OMEGA_BRIDGE
as used by om/units.sh. The family runner builds at most three jobs, links
the standalone tgemm test and the external tern algebra oracle, and runs only
host/simulator modes. It preincludes the current CUDApp simulator for the
external tern test: allowing that test's quoted include to select its stale
external simulator gives false row-major failures. None of these receipts
qualifies the GPU.
tests/api_rest_diff.c and tests/api_rest_partitions.h contain independent
source-loop oracles, checked-view refusal cases and deliberately corrupted
controls. tests/api_rest_bench.c records three host samples for matched
packing, compaction, descriptors, FP8 rows, permutation/gather, tern packing,
slot transitions and prefill copy/ratios. The FP8 Omega reference uses
separate f64 accumulator/magnitude passes; its measured cost is reported, not
hidden by replacing it with the original C reference. Benchmark medians and
ratios must be evaluated by Wolfram, with the query retained in the receipt.
MoE shapes of Qwen3.8-Flash-Next (host only, chip NOT_RUN)
Hidden 2560, 512 routed experts, 10 picks plus the shared expert (11 contributions), expert intermediate 640, E4M3 bytes with BF16
weight_scale_inv in 128 x 128 blocks. Receipts: evidence/FLASH-NEXT-MOE-SHAPES-20261118/. Every command runs through the device-free
wrapper of evidence/codegen-moe-20261106/REPORT.md; none opens a device.
make test-codegen-moe-ragged test-fp8-ragged-api test-codegen-dec-group-sim(all inmake test): the ragged-K FP8 GEMV (omega_blackwell_codegen_fp8_gemv_ragged_prog, k a multiple of 128 and not of 32 * lane_bytes, for example the expert down_proj k = 640) on the warp simulator against the double-precision oracle, its negative controls, the API selection and the seeded host-policy op 25 against its frozen C oracle, and the GROUP kernel at S = 9 and S = 11 with 512 experts.make test-moe-wide(NOT_RUN, exit 2, without the pinned toolchain; not part of the portable suite) andmake test-moe-wide-mutants: the_wideplanning, serializer, GROUP-request, window and admission units (om/moe/*_wide.om).make test-codegen-moe-ragged-mutants: source mutants of the ragged builder and policy, each killed by wrong results.make test-flash-expert-real(needs the checkpoint andpython3;NOT_RUNwithout them): one routed expert of one layer read from disk and compared with an independent Python float64 computation.
A host simulator result is not a chip result. The simulator runs at most 8 warps per CTA; the launch uses 32.