From 9517385b88290cddd8baa176209fa13fe1b9e1c2 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Fri, 6 Nov 2026 14:30:57 -0600 Subject: [PATCH 1/2] docs(torch): state the 66x slowdown and #23 merge; DRA-103 recheck evidence on main d8174ed docs/OMEGA-TORCH.md said "not merged" and did not state the measured slowdown that #23 and DRA-103 require. Add a Speed section from evidence/omega-torch-m1/timings-low.json (paired median ratio 65.9, recomputed in Wolfram) and mark the merge. Add host-local CPU recheck logs on main d8174ed: pytorch tests (22 OK) with a wrong-compiler negative control, native call ABI with zig and go callers, kinds, tools/test.sh, attach/torch CPU-side checks with a build.sh negative control, and the #20 named-length compiler matrix. The #30 GB10 test was not run. Signed-off-by: Drake Stapleton --- docs/OMEGA-TORCH.md | 16 +- evidence/attach-torch-cpu-d8174ed/README.md | 29 +++ .../attach-torch-cpu-d8174ed/attach-cpu.log | 3 + .../attach-torch-cpu-d8174ed/bootstrap.log | 5 + evidence/attach-torch-cpu-d8174ed/kinds.log | 19 ++ evidence/attach-torch-cpu-d8174ed/native.log | 43 ++++ evidence/attach-torch-cpu-d8174ed/test-sh.log | 188 ++++++++++++++++++ .../recheck-main-d8174ed.log | 23 +++ .../tests-main-d8174ed-wrong-omc.log | 53 +++++ .../omega-torch-m1/tests-main-d8174ed.log | 28 +++ 10 files changed, 405 insertions(+), 2 deletions(-) create mode 100644 evidence/attach-torch-cpu-d8174ed/README.md create mode 100644 evidence/attach-torch-cpu-d8174ed/attach-cpu.log create mode 100644 evidence/attach-torch-cpu-d8174ed/bootstrap.log create mode 100644 evidence/attach-torch-cpu-d8174ed/kinds.log create mode 100644 evidence/attach-torch-cpu-d8174ed/native.log create mode 100644 evidence/attach-torch-cpu-d8174ed/test-sh.log create mode 100644 evidence/issue-20-const-length/recheck-main-d8174ed.log create mode 100644 evidence/omega-torch-m1/tests-main-d8174ed-wrong-omc.log create mode 100644 evidence/omega-torch-m1/tests-main-d8174ed.log diff --git a/docs/OMEGA-TORCH.md b/docs/OMEGA-TORCH.md index e1d54c8..3f25f59 100644 --- a/docs/OMEGA-TORCH.md +++ b/docs/OMEGA-TORCH.md @@ -1,8 +1,9 @@ # Omega under PyTorch: `torch.compile(model, backend="omega")` (milestone 1) Status: IMPLEMENTED and EXERCISED on CPU only (AArch64, DGX Spark host), oracle = PyTorch eager, -Omega-native codegen, Python glue. Not qualified, not merged, not a claim that Omega runs PyTorch in -general: it runs the core-ATen ops listed below, float32, static shapes, inference only. +Omega-native codegen, Python glue. Merged in #23 (`4f231fa`). Not qualified, not a claim that Omega +runs PyTorch in general: it runs the core-ATen ops listed below, float32, static shapes, inference only. +It is about 66x slower than eager PyTorch on the same core (see Speed). ## What runs where @@ -34,6 +35,17 @@ Numerics: each dot product and softmax sum is accumulated in f64 and rounded onc written in Omega (`expd` in `softmax.om`): range reduction by ln 2, degree-13 Taylor polynomial (truncation below 5.9e-18 relative), exponent bits for 2^k. +## Speed + +About **66x slower than eager PyTorch** on CPU. `evidence/omega-torch-m1/timings-low.json` (load1 at +most 7.16 for every sample): a 64x256 MLP (5,505,024 multiply-adds), 30 interleaved rounds, both arms +on one core with one thread (`CUDA_VISIBLE_DEVICES= OMP_NUM_THREADS=1 taskset -c 8 nice -n 19 python3 +pytorch/bench.py --rounds 30`). Eager median 0.199 ms (quartiles 0.142 to 0.230); Omega median 13.09 ms +(quartiles 13.08 to 13.13), about 2.38 ns per multiply-add; paired per-round ratio median 65.9 +(quartiles 56.7 to 92.3). Under load (load1 38, `timings-m1.json`) the Omega arm is 13.21 ms. The +kernels are scalar and bounds-checked, with no SIMD or blocking; speeding them up is omega-mv#861 +(PROPOSED), not this attachment. + ## Use ```sh diff --git a/evidence/attach-torch-cpu-d8174ed/README.md b/evidence/attach-torch-cpu-d8174ed/README.md new file mode 100644 index 0000000..09af8ed --- /dev/null +++ b/evidence/attach-torch-cpu-d8174ed/README.md @@ -0,0 +1,29 @@ +# DRA-103 recheck of the framework attachments on main `d8174ed` (2026-11-06) + +Host-local CPU runs on the DGX Spark (AArch64), `CUDA_VISIBLE_DEVICES=` empty, cores 16-17, inside +`bwrap --dev-bind / / --dev /dev --proc /proc`. No run in this directory opened the GB10. + +Compilers (sha256): `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61` (tools/native `PIN`, +AArch64 OM-1), `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` (omega_torch kernels), +`be8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a` (tools/native `X86_PIN`), +`b1d9cff6d765d85159e14d8346ed946704e32e9ca39554fb22a7c3f23fe0cca3` (omega-mv main `fd3751b3` `seed/out/omc`, git blob `bec7cf3e`). +Toolchains: go1.27.3 linux/arm64, zig 0.17.0, torch 2.14.0+cu130, CPython 3.12.3. + +| Check | Command | rc | Last line | Log | +|---|---|---|---|---| +| #23 PyTorch backend | `OMEGA_OMC=<2c82…> python -m unittest -v pytorch/tests/test_omega_torch.py` | 0 | `OK` (22 tests, 3 kernel mutants caught) | `../omega-torch-m1/tests-main-d8174ed.log` | +| #23 negative control | same with `OMEGA_OMC=<734f…>` | 1 | `FAILED (errors=3)`, `omc sha256 … is not the pinned …` | `../omega-torch-m1/tests-main-d8174ed-wrong-omc.log` | +| native call ABI (C, C++, Python, Rust, Zig, Go callers) | `OMEGA_NATIVE_OMC=<734f…> sh tests/native/run.sh` | 0 | `NATIVE-CALL PASS (not run: none)` (35 PASS; zig and go callers 13 lines each; zig and go type mutants caught) | `native.log` | +| native kinds | `OMEGA_NATIVE_OMC=<734f…> sh tests/native/kinds.sh` | 0 | `NATIVE-KINDS PASS` | `kinds.log` | +| bridge suites | `tools/bootstrap.sh` then `tools/test.sh` | 0 | `ALL SUITES RC=0` | `bootstrap.log`, `test-sh.log` | +| #30 `attach/torch` CPU side | `python -m py_compile attach/torch/cudapp_torch.py attach/torch/test_cudapp_torch.py` | 0 | (no output) | `attach-cpu.log` | +| #30 negative control | `sh attach/torch/build.sh ` | 1 | `FAIL … has no omega_gpu_gemm_ex` | `attach-cpu.log` | +| #30 GPU row (`attach/torch/test_cudapp_torch.py`) | not run here: it opens the GB10 | — | NOT_RUN in this recheck; the committed chip receipt is `../attach-gb10-20261027T0726Z/` (verdict PASS, mutant caught, EXERCISED on one GB10) | — | +| #20 named length | `../issue-20-const-length/recheck-main-d8174ed.log` | — | see that log | — | + +#20 on main: `const N ulong 4` as an array length is accepted, with code byte-identical to the literal +form, by `2c824805` and by omega-mv main `b1d9cff6`, and through `tools/native --target x86linux` +(bindings differ from the literal unit only in the signature comment). The AArch64 OM-1 pin `734f0a39` +still refuses it (`omc: line 8: error 9`, rc 9), directly and through `tools/native` (default target). +An undeclared name is refused with error 16 by every compiler. So #20 stays blocked on moving `PIN` past +omega-mv#806 for AArch64 OM-1 units. diff --git a/evidence/attach-torch-cpu-d8174ed/attach-cpu.log b/evidence/attach-torch-cpu-d8174ed/attach-cpu.log new file mode 100644 index 0000000..38bf06b --- /dev/null +++ b/evidence/attach-torch-cpu-d8174ed/attach-cpu.log @@ -0,0 +1,3 @@ +py_compile rc=0 +FAIL /home/drakestapleton/work/hive/BridgeCompiler/W103Attach/empty.a has no omega_gpu_gemm_ex +build.sh-without-gemm_ex rc=1 (expect 1) diff --git a/evidence/attach-torch-cpu-d8174ed/bootstrap.log b/evidence/attach-torch-cpu-d8174ed/bootstrap.log new file mode 100644 index 0000000..72137ee --- /dev/null +++ b/evidence/attach-torch-cpu-d8174ed/bootstrap.log @@ -0,0 +1,5 @@ +om4.bin 14224 bytes +source=29b12760f4c962606411d6bf25032aedef063301 +8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf seed/omc/omc.om +191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 ../omc +bootstrap fixpoint RC=0 diff --git a/evidence/attach-torch-cpu-d8174ed/kinds.log b/evidence/attach-torch-cpu-d8174ed/kinds.log new file mode 100644 index 0000000..2deb21a --- /dev/null +++ b/evidence/attach-torch-cpu-d8174ed/kinds.log @@ -0,0 +1,19 @@ +PASS fsum status 0 +PASS fsum f32 lanes == C oracle +PASS fsum result bits == C oracle +PASS halve status 0 +PASS halve ushort edit == C oracle +PASS f32 view misaligned (2 bytes) refused +PASS f32 view at 4-byte alignment accepted +PASS ushort view misaligned refused +PASS f32 wrong length refused +PASS f32 edit overlapping f32 view refused +PASS ushort view overlapping f32 edit refused +PASS null ushort edit refused +KINDS PASS +PASS python binding: f32/ushort calls and refusals (10 checks) +PASS view uint refused (exit 110), previous output untouched +PASS mutant fsum (add -> sub) caught (1 failing checks) +PASS mutant fsum (add -> sub) caught through the python binding (3 failing checks) +NATIVE-KINDS PASS +kinds rc=0 diff --git a/evidence/attach-torch-cpu-d8174ed/native.log b/evidence/attach-torch-cpu-d8174ed/native.log new file mode 100644 index 0000000..c9fe0df --- /dev/null +++ b/evidence/attach-torch-cpu-d8174ed/native.log @@ -0,0 +1,43 @@ +PASS tools/native: library + six bindings (e82da64e1abb81e5) +PASS tools/native refuses a unit outside the subset by name (exit 110), previous outputs untouched +PASS no caller declares an Omega function by hand +PASS generated header agrees with the hand-written reference prototypes +PASS embedded code == omc output, per unit (85b3add4fe86a894) +PASS c caller (28 lines) +PASS c-bti caller (28 lines) +PASS generator refuses a unit name that is not a C identifier +PASS generator refuses a parameter name ending in _len +PASS generator refuses a repeated unit name +PASS generator accepts the same unit once (control) +PASS generator refuses a last (bound) function with an unsupported parameter type +PASS generator binds only the last function; an earlier helper of any type stays private +PASS generator refuses a missing output word +PASS generator refuses an unknown output word +PASS cpp caller (13 lines) +PASS python caller (19 lines) +PASS rust caller (14 lines) +PASS rust-2024 caller (14 lines) +PASS zig caller (13 lines) +PASS go caller (13 lines) +PASS mutant madd (add -> sub) caught (7 failing checks) +PASS mutant h scalar uint64_t -> uint32_t caught: /home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/build/nati +PASS mutant python scalar c_uint64 -> c_uint32 caught: FAIL madd wraps = 3 +PASS mutant rust scalar u64 -> u32 caught: error[E0308]: mismatched types +PASS mutant zig scalar u64 -> u32 caught: caller.zig:17:62: error: type 'u32' cannot represent integer value '184467440737 +PASS mutant go scalar uint64 -> uint32 caught: ./caller.go:29:44: cannot use ^uint64(0) (constant 18446744073709551615 of type +PASS freestanding epoch increment/MAX trap, nested trap unwind, signed trap and four-thread isolation; GPU_FS_LINK imports and no TLS +PASS freestanding refuses arrays, storage, text, host effects including unused helper and an OM-2 frame without its trailer before any output +PASS pthread-import emitter mutant rejected by freestanding gate, installed object unchanged +PASS failing/missing symbol inspector and failing import filter refuse; installed object unchanged +PASS source-swap control refuses original non-pure snapshot; reread mutant admits mismatched source/code and is caught +PASS pure scalar freestanding transport + import mutant +PRIVATE-SYMBOLS PASS: distinct bindings, trap recovery and concurrent threads +PRIVATE-SYMBOLS PASS: nm public ABI unchanged, private locals; .globl mutant rejected +PASS private linkage and thread isolation +CAPACITY PASS: current input pool exhaustion exits 106 with no output +CAPACITY PASS: current output pool exhaustion exits 106 with no output +CAPACITY PASS: compiler-built frame 10489536 bytes, C 21029704 bytes, both endpoint calls +CAPACITY PASS: old input/output bound mutants and new input/output overflow controls refuse with no output +PASS bounded aggregate frame/output capacity + old-limit mutants +NATIVE-CALL PASS (not run: none) +native rc=0 diff --git a/evidence/attach-torch-cpu-d8174ed/test-sh.log b/evidence/attach-torch-cpu-d8174ed/test-sh.log new file mode 100644 index 0000000..9efb16d --- /dev/null +++ b/evidence/attach-torch-cpu-d8174ed/test-sh.log @@ -0,0 +1,188 @@ +test_each_old_label_mutant_is_detected (__main__.ModeLabelTests.test_each_old_label_mutant_is_detected) ... ok +test_emulated_labels_unchanged (__main__.ModeLabelTests.test_emulated_labels_unchanged) ... ok +test_guest_selection (__main__.ModeLabelTests.test_guest_selection) ... ok +test_native_labels (__main__.ModeLabelTests.test_native_labels) ... ok + +---------------------------------------------------------------------- +Ran 4 tests in 0.002s + +OK +PASS bytecopy +PASS echo +PASS fib +PASS for_expr_once +PASS for_varchange +PASS io_errno +PASS local_array +PASS num_bool +PASS num_byte_add +PASS num_byte_cast +PASS num_byte_div +PASS num_byte_mul +PASS num_byte_neg +PASS num_byte_rem +PASS num_byte_shiftlimit +PASS num_byte_shl +PASS num_byte_shr +PASS num_byte_sub +PASS num_div_negative +PASS num_int_add +PASS num_int_cast +PASS num_int_div +PASS num_int_mul +PASS num_int_neg +PASS num_int_rem +PASS num_int_shiftlimit +PASS num_int_shl +PASS num_int_shr +PASS num_int_sub +PASS num_intmin_literal +PASS num_long_add +PASS num_long_cast +PASS num_long_div +PASS num_long_mul +PASS num_long_neg +PASS num_long_rem +PASS num_long_shiftlimit +PASS num_long_shl +PASS num_long_shr +PASS num_long_sub +PASS num_not +PASS num_rem_negative +PASS num_short_add +PASS num_short_cast +PASS num_short_div +PASS num_short_mul +PASS num_short_neg +PASS num_short_rem +PASS num_short_shiftlimit +PASS num_short_shl +PASS num_short_shr +PASS num_short_sub +PASS num_uchar_add +PASS num_uchar_cast +PASS num_uchar_div +PASS num_uchar_mul +PASS num_uchar_neg +PASS num_uchar_rem +PASS num_uchar_shiftlimit +PASS num_uchar_shl +PASS num_uchar_shr +PASS num_uchar_sub +PASS num_uint_add +PASS num_uint_cast +PASS num_uint_div +PASS num_uint_mul +PASS num_uint_neg +PASS num_uint_rem +PASS num_uint_shiftlimit +PASS num_uint_shl +PASS num_uint_shr +PASS num_uint_sub +PASS num_ulong_add +PASS num_ulong_cast +PASS num_ulong_div +PASS num_ulong_mul +PASS num_ulong_neg +PASS num_ulong_rem +PASS num_ulong_shiftlimit +PASS num_ulong_shl +PASS num_ulong_shr +PASS num_ulong_sub +PASS num_ushort_add +PASS num_ushort_cast +PASS num_ushort_div +PASS num_ushort_mul +PASS num_ushort_neg +PASS num_ushort_rem +PASS num_ushort_shiftlimit +PASS num_ushort_shl +PASS num_ushort_shr +PASS num_ushort_sub +PASS order_calls +PASS order_put +PASS order_trap +PASS r5b_fwd +PASS r5b_mut +PASS sort +PASS t_bounds +PASS t_cmp_unsigned +PASS t_conv +PASS t_conv_sign +PASS t_div0 +PASS t_exit +PASS t_loop +PASS t_ovf +PASS t_rw +PASS t_stack +PASS t_u63 +PASS t_u64max +PASS t_void +PASS t_write_wrap +PASS two_loops +cases=113 failures=0 RC=0 +PASS seed_1 3 +PASS seed_2 7 +PASS seed_3 7 +PASS seed_4 16 +PASS seed_5 16 +PASS seed_6 19 +PASS seed_7 19 +PASS seed_8 20 +PASS seed_9 20 +PASS seed_10 20 +PASS seed_11 20 +PASS seed_12 21 +PASS seed_13 7 +PASS seed_14 22 +PASS seed_15 22 +PASS seed_16 23 +PASS seed_17 23 +PASS seed_18 17 +PASS seed_19 18 +PASS seed_20 9 +PASS seed_21 9 +PASS seed_22 9 +PASS seed_23 9 +PASS seed_24 20 +PASS seed_25 8 +PASS seed_26 8 +PASS seed_27 8 +PASS seed_28 8 +PASS seed_29 6 +PASS seed_30 23 +PASS seed_31 9 +PASS seed_32 9 +PASS seed_33 10 +PASS seed_34 13 +PASS seed_35 15 +PASS seed_36 16 +PASS seed_37 16 +PASS seed_38 6 +PASS seed_39 7 +PASS seed_40 7 +PASS empty 16 +PASS text_target 24 +PASS five_params 24 +PASS long_name 13 +PASS library_io 24 +PASS library_array_width 24 +PASS local_storage_limit 23 +PASS inherited_text_program 24 +PASS r5b_assign 7 +PASS r5b_cycle 9 +refusal cases=50 failures=0 RC=0 +C caller: values, mutation, traps, invalid lengths and recovery OK +Python caller: values, mutation, traps, invalid lengths and recovery OK +attachment cases=2 failures=0 RC=0 +PASS detected c num_ulong_add native_exit 0 mutant_exit 126 +PASS detected python num_ulong_add native_exit 0 mutant_exit 126 +PASS detected c t_bounds native_exit 103 mutant_exit 1 +PASS detected python t_bounds native_exit 103 mutant_exit 1 +PASS detected c order_calls native_exit 1 mutant_exit 105 +PASS detected python order_calls native_exit 1 mutant_exit 105 +PASS deterministic nonempty output +control cases=7 failures=0 RC=0 +robustness cases=225 target_accepts=6 target_refusals=444 failures=0 RC=0 +ALL SUITES RC=0 +test.sh rc=0 diff --git a/evidence/issue-20-const-length/recheck-main-d8174ed.log b/evidence/issue-20-const-length/recheck-main-d8174ed.log new file mode 100644 index 0000000..889bf8a --- /dev/null +++ b/evidence/issue-20-const-length/recheck-main-d8174ed.log @@ -0,0 +1,23 @@ +# omega-bridge#20 recheck on main d8174ed, 2026-11-06T20:30:46Z. Compiler files are named by sha256 prefix: omc-734f = tools/native PIN (AArch64 OM-1), omc-2c82 = omega_torch kernels, omc-b1d9 = omega-mv main fd3751b3 seed/out/omc, omc-be8c = tools/native X86_PIN. Units: evidence/issue-20-const-length/{cnst,lit,unk}.om. The first tools/native x86linux line used the host cc (no x86 assembler) and is not a result; the CC=x86_64-linux-gnu-gcc lines are. +omc-734f cnst.om rc=9 omc: line 8: error 9 bytes=0 +omc-734f lit.om rc=0 bytes=80 +omc-734f unk.om rc=16 omc: line 2: error 16 bytes=0 +omc-2c82 cnst.om rc=0 bytes=80 +omc-2c82 lit.om rc=0 bytes=80 +omc-2c82 unk.om rc=16 omc: line 2: error 16 bytes=0 +2c82 cnst == lit (byte-identical) +omc-b1d9 cnst.om rc=0 bytes=80 +omc-b1d9 lit.om rc=0 bytes=80 +omc-b1d9 unk.om rc=16 omc: line 2: error 16 bytes=0 +b1d9 cnst == lit (byte-identical) +tools/native --target aarch64linux cnst.om rc=9 omc: line 8: error 9 +tools/native --target x86linux cnst.om rc=1 /tmp/ccPHgakn.s:86: Error: unknown mnemonic `jmp' -- `jmp ombr_code_f' +CC=x86_64-linux-gnu-gcc tools/native --target x86linux cnst.om rc=0 tools/native: 1 unit(s) -> /home/drakestapleton/work/hive/BridgeCompiler/W103Attach/tnx-cnst/libomega_native.so + omega_native.{c,h,py,rs,zig,go} (+ work/) +CC=x86_64-linux-gnu-gcc tools/native --target x86linux lit.om rc=0 tools/native: 1 unit(s) -> /home/drakestapleton/work/hive/BridgeCompiler/W103Attach/tnx-lit/libomega_native.so + omega_native.{c,h,py,rs,zig,go} (+ work/) +CC=x86_64-linux-gnu-gcc tools/native --target x86linux unk.om rc=16 omc: line 3: error 16 +omega_native.c identical +omega_native.h differs: 2 lines +omega_native.py differs: 2 lines +omega_native.rs differs: 2 lines +omega_native.zig differs: 2 lines +omega_native.go differs: 2 lines diff --git a/evidence/omega-torch-m1/tests-main-d8174ed-wrong-omc.log b/evidence/omega-torch-m1/tests-main-d8174ed-wrong-omc.log new file mode 100644 index 0000000..f146377 --- /dev/null +++ b/evidence/omega-torch-m1/tests-main-d8174ed-wrong-omc.log @@ -0,0 +1,53 @@ +EEE................... +====================================================================== +ERROR: test_const_f32_bound (pytorch.tests.test_omega_torch.Binding.test_const_f32_bound) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/test_omega_torch.py", line 231, in test_const_f32_bound + rc, c = self.gen("const L ulong 6\nfn k a view f32 L o edit f32 L to void\nput o 0 get a 0\nend\n") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/test_omega_torch.py", line 224, in gen + ot._compile_om(src.encode(), t.name) + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/../omega_torch/__init__.py", line 85, in _compile_om + rc = subprocess.run([_omc()], input=src, stdout=o, stderr=err).returncode + ^^^^^^ + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/../omega_torch/__init__.py", line 79, in _omc + raise OmegaRefused("omc sha256 %s is not the pinned %s" % (got, OMC_SHA256)) +omega_torch.OmegaRefused: omc sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 is not the pinned 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f + +====================================================================== +ERROR: test_const_not_ulong_refused (pytorch.tests.test_omega_torch.Binding.test_const_not_ulong_refused) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/test_omega_torch.py", line 238, in test_const_not_ulong_refused + rc, c = self.gen("const L uint 6\nfn k a view f32 L to void\nret\nend\n") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/test_omega_torch.py", line 224, in gen + ot._compile_om(src.encode(), t.name) + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/../omega_torch/__init__.py", line 85, in _compile_om + rc = subprocess.run([_omc()], input=src, stdout=o, stderr=err).returncode + ^^^^^^ + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/../omega_torch/__init__.py", line 79, in _omc + raise OmegaRefused("omc sha256 %s is not the pinned %s" % (got, OMC_SHA256)) +omega_torch.OmegaRefused: omc sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 is not the pinned 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f + +====================================================================== +ERROR: test_f64_array_refused (pytorch.tests.test_omega_torch.Binding.test_f64_array_refused) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/test_omega_torch.py", line 242, in test_f64_array_refused + rc, c = self.gen("fn k a view f64 4 to void\nret\nend\n") + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/test_omega_torch.py", line 224, in gen + ot._compile_om(src.encode(), t.name) + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/../omega_torch/__init__.py", line 85, in _compile_om + rc = subprocess.run([_omc()], input=src, stdout=o, stderr=err).returncode + ^^^^^^ + File "/home/drakestapleton/work/hive/BridgeCompiler/W103Attach/omega-bridge/pytorch/tests/../omega_torch/__init__.py", line 79, in _omc + raise OmegaRefused("omc sha256 %s is not the pinned %s" % (got, OMC_SHA256)) +omega_torch.OmegaRefused: omc sha256 734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61 is not the pinned 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f + +---------------------------------------------------------------------- +Ran 22 tests in 1.614s + +FAILED (errors=3) diff --git a/evidence/omega-torch-m1/tests-main-d8174ed.log b/evidence/omega-torch-m1/tests-main-d8174ed.log new file mode 100644 index 0000000..82573ec --- /dev/null +++ b/evidence/omega-torch-m1/tests-main-d8174ed.log @@ -0,0 +1,28 @@ +test_const_f32_bound (pytorch.tests.test_omega_torch.Binding.test_const_f32_bound) ... ok +test_const_not_ulong_refused (pytorch.tests.test_omega_torch.Binding.test_const_not_ulong_refused) ... ok +test_f64_array_refused (pytorch.tests.test_omega_torch.Binding.test_f64_array_refused) ... ok +test_array_limit_refused (pytorch.tests.test_omega_torch.FailClosed.test_array_limit_refused) ... ok +test_broadcast_add_refused (pytorch.tests.test_omega_torch.FailClosed.test_broadcast_add_refused) ... ok +test_explicit_fallback_is_counted (pytorch.tests.test_omega_torch.FailClosed.test_explicit_fallback_is_counted) ... ok +test_unsupported_op_raises_and_runs_nothing (pytorch.tests.test_omega_torch.FailClosed.test_unsupported_op_raises_and_runs_nothing) ... ok +test_wrong_length_status_32 (pytorch.tests.test_omega_torch.FailClosed.test_wrong_length_status_32) ... ok +test_mlp_parity_and_all_omega (pytorch.tests.test_omega_torch.Model.test_mlp_parity_and_all_omega) ... ok +test_mutant_linear_caught (pytorch.tests.test_omega_torch.NegativeControl.test_mutant_linear_caught) ... ok +test_mutant_relu_caught (pytorch.tests.test_omega_torch.NegativeControl.test_mutant_relu_caught) ... ok +test_mutant_softmax_caught (pytorch.tests.test_omega_torch.NegativeControl.test_mutant_softmax_caught) ... ok +test_add (pytorch.tests.test_omega_torch.Ops.test_add) ... ok +test_addmm (pytorch.tests.test_omega_torch.Ops.test_addmm) ... ok +test_linear (pytorch.tests.test_omega_torch.Ops.test_linear) ... ok +test_mm (pytorch.tests.test_omega_torch.Ops.test_mm) ... ok +test_mm_exact_integers (pytorch.tests.test_omega_torch.Ops.test_mm_exact_integers) ... ok +test_permute (pytorch.tests.test_omega_torch.Ops.test_permute) ... ok +test_relu (pytorch.tests.test_omega_torch.Ops.test_relu) ... ok +test_softmax (pytorch.tests.test_omega_torch.Ops.test_softmax) ... ok +test_softmax_two_ulp_of_float64 (pytorch.tests.test_omega_torch.Ops.test_softmax_two_ulp_of_float64) ... ok +test_softmax_wolfram (pytorch.tests.test_omega_torch.Ops.test_softmax_wolfram) ... ok + +---------------------------------------------------------------------- +Ran 22 tests in 2.020s + +OK +torch rc=0 From d9791209a3c0b4b6893a7bcdd6ab9d761e232182 Mon Sep 17 00:00:00 2001 From: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> Date: Fri, 6 Nov 2026 20:26:05 -0600 Subject: [PATCH 2/2] crumbs: recompile docs and root after the DRA-103 recheck commit 9517385 changed docs/OMEGA-TORCH.md and added recheck evidence without recompiling the crumbs, so `crumb verify .` on the head reported 2 of 12 crumbs STALE (docs, root) while main d8174ed verifies 12/12 current. `crumb compile .` rewrote only extensions.generated in .crumb and docs/.crumb; no semantic field changed. Agent: t_21b4d119 (Hermes worker, claude-opus-5-5, anthropic) Signed-off-by: Drake Stapleton <213298340+drakestapleton@users.noreply.github.com> --- .crumb | 20 ++++++++++---------- docs/.crumb | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.crumb b/.crumb index b9c7395..4fac145 100644 --- a/.crumb +++ b/.crumb @@ -3,8 +3,8 @@ "generated": { "children": [ { - "digest": "631aae2f6592ff7c71ce09e8de91d0df86c64bdb31380e8696dba24d48e57f16", - "last_commit": "e0c9a8e", + "digest": "627e796ecc2c7c23c61e699a38601cb1d6c44e9c423c20f87bdad0b86b3d88e4", + "last_commit": "9517385", "name": "docs", "purpose": "Native ABI contracts and qualification boundaries" }, @@ -63,15 +63,15 @@ "purpose": "Cross-toolchain ABI v2 qualification under qemu-x86_64; never native hardware evidence" } ], - "children_root": "sha256:1b2dd79450d79cdf42d895cd7ec0db578db08215ad3497eab3c4ba8b56deece7", - "compiled_at": "2026-11-06T14:10:05Z", + "children_root": "sha256:52caf8dd9eeeb5c22f9dd0ccda29b03edc1895a49f879403035eb7fb6932c8d4", + "compiled_at": "2026-11-07T02:25:48Z", "compiler": "crumb-compile/1", - "digest": "sha256:398e04e5ba7be851445b6ee84436122587808cc74e5fbf49bdd04f3a9740d46d", - "evidence_files": 612, - "evidence_root": "sha256:28005a8bbb770eae5aece0faa39f98bce41dde5c25e1d289a116211c76c9e3d3", - "files": 970, - "generated_at_commit": "8e1d5244e3cc1dd6892aa90b214ef508bde3be0e", - "source_tree": "sha256:8c92a6055f34668ee82f7ea132c73a91aba84eeb075ce16d72994a3ae40c8c1f" + "digest": "sha256:d441ecf20780dbe3740f8025f641360333499ff1d07e96329f013b68acec6f8d", + "evidence_files": 621, + "evidence_root": "sha256:8652ffceb7054114f69b4fb186e76ee38489c0aa16752106fd0250cafcd079b8", + "files": 979, + "generated_at_commit": "9517385b88290cddd8baa176209fa13fe1b9e1c2", + "source_tree": "sha256:52d8e5c7c7d0e6276dea453b958bfe76581f8766d712a9098f56ab0824cb3c41" } }, "name": "BridgeHostAienX86", diff --git a/docs/.crumb b/docs/.crumb index 02289e5..e55311b 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-11-06T14:10:05Z", + "compiled_at": "2026-11-07T02:25:48Z", "compiler": "crumb-compile/1", - "digest": "sha256:631aae2f6592ff7c71ce09e8de91d0df86c64bdb31380e8696dba24d48e57f16", + "digest": "sha256:627e796ecc2c7c23c61e699a38601cb1d6c44e9c423c20f87bdad0b86b3d88e4", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 18, - "generated_at_commit": "8e1d5244e3cc1dd6892aa90b214ef508bde3be0e", - "source_tree": "sha256:c07e11105274b150e428e9154ad22157e6066cfc7147879b57209e78730102c1" + "generated_at_commit": "9517385b88290cddd8baa176209fa13fe1b9e1c2", + "source_tree": "sha256:2fa355a83eebe562671e2328e3263994e3407bcd6e2efb11358443764199e9cf" } }, "name": "native-contract",