omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / evidence / device-window / dry-run-L939-w2.log
| 1 | # host spark-b87b 2026-11-07T03:00:56Z cudapp b774723f537cec16a359fe082b8100317a5b5490 |
| 2 | ## 0a build artifact-export |
| 3 | $ make -j2 artifact-export |
| 4 | 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_GEMM_EX=1 -o build/artifact-export tools/artifact_export.c src/omega_native_artifact.c src/omega_cubin.c build/libomega_gpu.a -lpthread -lm |
| 5 | rc=0 |
| 6 | ## 0b export matmul 16x16x8 |
| 7 | $ build/artifact-export matmul --m 16 --k 16 --n 8 --contract-id 647116fc1ba1e1394982fc8ba181ce565293f160a6b56afc0f02b2128a675704 --out build/window-cubins/matmul-16x16x8 --commit b774723f537cec16a359fe082b8100317a5b5490 |
| 8 | artifact_id=5fa1eb86547376a1336be32947b65c313f7401c1091feefc5ef5191b9ece3cb5 |
| 9 | op=matmul |
| 10 | contract_id=647116fc1ba1e1394982fc8ba181ce565293f160a6b56afc0f02b2128a675704 |
| 11 | cubin=build/window-cubins/matmul-16x16x8.cubin |
| 12 | rc=0 |
| 13 | ## 0c export attention hq8 hkv1 |
| 14 | $ build/artifact-export attention --q-heads 8 --kv-heads 1 --contract-id 003696e422bba7274877ba9e01a61076ea0f862f32760cbaa06c60f85a115359 --out build/window-cubins/attention-hd128-gqa8 --commit b774723f537cec16a359fe082b8100317a5b5490 |
| 15 | artifact_id=43645ef61f29ffef503420a2530709333e5d2eee7321f64409e13937be3e532c |
| 16 | op=gqa-causal-attention |
| 17 | contract_id=003696e422bba7274877ba9e01a61076ea0f862f32760cbaa06c60f85a115359 |
| 18 | cubin=build/window-cubins/attention-hd128-gqa8.cubin |
| 19 | rc=0 |
| 20 | ## 0d re-export refuses an existing file |
| 21 | $ build/artifact-export matmul --m 16 --k 16 --n 8 --contract-id 647116fc1ba1e1394982fc8ba181ce565293f160a6b56afc0f02b2128a675704 --out build/window-cubins/matmul-16x16x8 --commit b774723f537cec16a359fe082b8100317a5b5490 |
| 22 | artifact-export refused: IO: |
| 23 | rc=3 |
| 24 | ## 0e smoke (nvdisasm/cuobjdump on our own cubins, 12 sections + tkinfo) |
| 25 | $ sh tools/artifact_smoke.sh build/window-cubins |
| 26 | == build/window-cubins/attention-hd128-gqa8.cubin |
| 27 | nvdisasm: PASS |
| 28 | cuobjdump: PASS |
| 29 | artifact_id=43645ef61f29ffef503420a2530709333e5d2eee7321f64409e13937be3e532c |
| 30 | == build/window-cubins/matmul-16x16x8.cubin |
| 31 | nvdisasm: PASS |
| 32 | cuobjdump: PASS |
| 33 | artifact_id=5fa1eb86547376a1336be32947b65c313f7401c1091feefc5ef5191b9ece3cb5 |
| 34 | ARTIFACT SMOKE PASS |
| 35 | rc=0 |
| 36 | # cubin sha256 |
| 37 | 90b5c752f793d1187485f7dcec0921001443498584075d13cfb47bf9236d2169 build/window-cubins/attention-hd128-gqa8.cubin |
| 38 | 1dac563e82ff3523681261d9fb79d89db74f4081ca0a6328049940fc1c4c007b build/window-cubins/matmul-16x16x8.cubin |
| 39 | 4d8ab7ae60f3550ab90710b2bc87af71e9ffeec91ad0190eb72f004b9d997ab7 evidence/MAX-INTEROP/68/attention-hd128-gqa8.cubin |
| 40 | 7d1306933b67fa24a20dba59d39bf48fbd4aa5cec37e046e3b664e5e0c4b34eb evidence/MAX-INTEROP/68/matmul-16x16x8.cubin |
| 41 | # bridge head 3c5f0902d12388ffe661559e6856b0335a748f3d script sha256 1c52514755e41e2880b59324a1625850e64fed11f4af47889b1e6b04c6bbd926 |
| 42 | ## 1 dry-run (L939-w2) |
| 43 | $ env CUDA_VISIBLE_DEVICES= sh tools/run-device-window.sh --ledger L939-w2 --dry-run |
| 44 | DRY-RUN ledger=L939-w2 window=maxinterop-device-L939-w2 pairs=5 out=evidence/device-window/L939-w2 |
| 45 | WOULD: spark-window open maxinterop-device-L939-w2 --ledger L939-w2 --gb10 exclusive --quiet none --lease 20 --wait |
| 46 | PLAN 01-cubin-matmul: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/matmul-16x16x8.cubin omega_matmul_bf16 16 16 8 |
| 47 | PLAN 02-cubin-gqa-load: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe --load-only ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/attention-hd128-gqa8.cubin omega_gqa_attention_causal 2 8 1 |
| 48 | PLAN 03-cubin-stale-reject: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe --expect-reject ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8.cubin omega_matmul_bf16 16 16 8 |
| 49 | PLAN 04-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 50 | PLAN 05-pair1-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 51 | PLAN 06-pair2-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 52 | PLAN 07-pair3-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 53 | PLAN 08-pair4-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 54 | PLAN 09-pair5-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 55 | PLAN 10-torch-cudapp: spark-window run env CUDAPP_TORCH_LIB=~/work/hive/t_a2d9375e/artifacts/libcudapp_attach.so PYTHONPATH=~/work/hive/t_a2d9375e/omega-bridge/attach/torch ~/work/BridgeAttach/venv/bin/python ~/work/hive/t_a2d9375e/omega-bridge/attach/torch/test_cudapp_torch.py ~/work/hive/t_a2d9375e/omega-bridge/evidence/device-window/L939-w2/torch-receipt.json |
| 56 | INPUTS |
| 57 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe |
| 58 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/matmul-16x16x8.cubin |
| 59 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/attention-hd128-gqa8.cubin |
| 60 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8.cubin |
| 61 | OK ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh |
| 62 | OK ~/work/hive/t_a2d9375e/omega-bridge/conformance/max_runner.py |
| 63 | OK ~/work/hive/t_a2d9375e/omega-bridge/attach/torch/test_cudapp_torch.py |
| 64 | OK ~/work/hive/t_a2d9375e/artifacts/libcudapp_attach.so |
| 65 | OK ~/workspace/maxinterop/venv/bin/python |
| 66 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/libomega_gpu.a |
| 67 | OK torch importable by PYTHON=~/work/BridgeAttach/venv/bin/python |
| 68 | ROWS 10 (3 cubin + 1 conformance + 5 paired + 1 torch); GPU rows NOT_RUN |
| 69 | DRY-RUN PASS: plan complete, no device opened |
| 70 | rc=0 |
| 71 | ## 2 negative: existing ledger dir L939 (window 1 evidence) |
| 72 | $ env CUDA_VISIBLE_DEVICES= sh tools/run-device-window.sh --ledger L939 --dry-run |
| 73 | DRY-RUN ledger=L939 window=maxinterop-device-L939 pairs=5 out=evidence/device-window/L939 |
| 74 | WOULD: spark-window open maxinterop-device-L939 --ledger L939 --gb10 exclusive --quiet none --lease 20 --wait |
| 75 | PLAN 01-cubin-matmul: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/matmul-16x16x8.cubin omega_matmul_bf16 16 16 8 |
| 76 | PLAN 02-cubin-gqa-load: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe --load-only ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/attention-hd128-gqa8.cubin omega_gqa_attention_causal 2 8 1 |
| 77 | PLAN 03-cubin-stale-reject: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe --expect-reject ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8.cubin omega_matmul_bf16 16 16 8 |
| 78 | PLAN 04-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 79 | PLAN 05-pair1-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 80 | PLAN 06-pair2-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 81 | PLAN 07-pair3-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 82 | PLAN 08-pair4-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 83 | PLAN 09-pair5-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 84 | PLAN 10-torch-cudapp: spark-window run env CUDAPP_TORCH_LIB=~/work/hive/t_a2d9375e/artifacts/libcudapp_attach.so PYTHONPATH=~/work/hive/t_a2d9375e/omega-bridge/attach/torch ~/work/BridgeAttach/venv/bin/python ~/work/hive/t_a2d9375e/omega-bridge/attach/torch/test_cudapp_torch.py ~/work/hive/t_a2d9375e/omega-bridge/evidence/device-window/L939/torch-receipt.json |
| 85 | INPUTS |
| 86 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe |
| 87 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/matmul-16x16x8.cubin |
| 88 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/window-cubins/attention-hd128-gqa8.cubin |
| 89 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8.cubin |
| 90 | OK ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh |
| 91 | OK ~/work/hive/t_a2d9375e/omega-bridge/conformance/max_runner.py |
| 92 | OK ~/work/hive/t_a2d9375e/omega-bridge/attach/torch/test_cudapp_torch.py |
| 93 | OK ~/work/hive/t_a2d9375e/artifacts/libcudapp_attach.so |
| 94 | OK ~/workspace/maxinterop/venv/bin/python |
| 95 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/libomega_gpu.a |
| 96 | OK torch importable by PYTHON=~/work/BridgeAttach/venv/bin/python |
| 97 | EXISTS ~/work/hive/t_a2d9375e/omega-bridge/evidence/device-window/L939 (device mode refuses to overwrite evidence) |
| 98 | ROWS 10 (3 cubin + 1 conformance + 5 paired + 1 torch); GPU rows NOT_RUN |
| 99 | DRY-RUN INCOMPLETE: build missing inputs before the window |
| 100 | rc=1 |
| 101 | ## 3 negative: CUBIN_DIR without exported cubins |
| 102 | $ env CUDA_VISIBLE_DEVICES= CUBIN_DIR=~/work/hive/t_a2d9375e/artifacts/no-cubins sh tools/run-device-window.sh --ledger L939-w2 --dry-run |
| 103 | DRY-RUN ledger=L939-w2 window=maxinterop-device-L939-w2 pairs=5 out=evidence/device-window/L939-w2 |
| 104 | WOULD: spark-window open maxinterop-device-L939-w2 --ledger L939-w2 --gb10 exclusive --quiet none --lease 20 --wait |
| 105 | PLAN 01-cubin-matmul: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe ~/work/hive/t_a2d9375e/artifacts/no-cubins/matmul-16x16x8.cubin omega_matmul_bf16 16 16 8 |
| 106 | PLAN 02-cubin-gqa-load: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe --load-only ~/work/hive/t_a2d9375e/artifacts/no-cubins/attention-hd128-gqa8.cubin omega_gqa_attention_causal 2 8 1 |
| 107 | PLAN 03-cubin-stale-reject: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe --expect-reject ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8.cubin omega_matmul_bf16 16 16 8 |
| 108 | PLAN 04-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 109 | PLAN 05-pair1-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 110 | PLAN 06-pair2-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 111 | PLAN 07-pair3-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 112 | PLAN 08-pair4-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 113 | PLAN 09-pair5-conformance-device: spark-window run ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh --device |
| 114 | PLAN 10-torch-cudapp: spark-window run env CUDAPP_TORCH_LIB=~/work/hive/t_a2d9375e/artifacts/libcudapp_attach.so PYTHONPATH=~/work/hive/t_a2d9375e/omega-bridge/attach/torch ~/work/BridgeAttach/venv/bin/python ~/work/hive/t_a2d9375e/omega-bridge/attach/torch/test_cudapp_torch.py ~/work/hive/t_a2d9375e/omega-bridge/evidence/device-window/L939-w2/torch-receipt.json |
| 115 | INPUTS |
| 116 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/cubin_probe |
| 117 | MISSING ~/work/hive/t_a2d9375e/artifacts/no-cubins/matmul-16x16x8.cubin |
| 118 | MISSING ~/work/hive/t_a2d9375e/artifacts/no-cubins/attention-hd128-gqa8.cubin |
| 119 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/evidence/MAX-INTEROP/68/matmul-16x16x8.cubin |
| 120 | OK ~/work/hive/t_a2d9375e/omega-bridge/conformance/run.sh |
| 121 | OK ~/work/hive/t_a2d9375e/omega-bridge/conformance/max_runner.py |
| 122 | OK ~/work/hive/t_a2d9375e/omega-bridge/attach/torch/test_cudapp_torch.py |
| 123 | OK ~/work/hive/t_a2d9375e/artifacts/libcudapp_attach.so |
| 124 | OK ~/workspace/maxinterop/venv/bin/python |
| 125 | OK ~/work/hive/t_a2d9375e/omega-bridge/../cudapp/build/libomega_gpu.a |
| 126 | OK torch importable by PYTHON=~/work/BridgeAttach/venv/bin/python |
| 127 | ROWS 10 (3 cubin + 1 conformance + 5 paired + 1 torch); GPU rows NOT_RUN |
| 128 | DRY-RUN INCOMPLETE: build missing inputs before the window |
| 129 | rc=1 |
| 130 | ## 4 CPU conformance (no --device), max_runner.py with .to(dev) |
| 131 | $ env CUDA_VISIBLE_DEVICES= sh conformance/run.sh |
| 132 | test_hidden_accelerator_proceeds_to_cpu (__main__.CpuRunHidesGpuTests.test_hidden_accelerator_proceeds_to_cpu) ... ok |
| 133 | test_visible_accelerator_is_refused (__main__.CpuRunHidesGpuTests.test_visible_accelerator_is_refused) ... ok |
| 134 | test_invalid_version_is_unknown (__main__.MaxVersionMetadataTests.test_invalid_version_is_unknown) ... ok |
| 135 | test_missing_version_is_unknown (__main__.MaxVersionMetadataTests.test_missing_version_is_unknown) ... ok |
| 136 | test_observed_version_is_preserved (__main__.MaxVersionMetadataTests.test_observed_version_is_preserved) ... ok |
| 137 | test_unavailable_module_is_unknown (__main__.MaxVersionMetadataTests.test_unavailable_module_is_unknown) ... ok |
| 138 | test_unreadable_version_is_unknown (__main__.MaxVersionMetadataTests.test_unreadable_version_is_unknown) ... ok |
| 139 | |
| 140 | ---------------------------------------------------------------------- |
| 141 | Ran 7 tests in 0.054s |
| 142 | |
| 143 | OK |
| 144 | build/fixtures/matmul-v1.json {'a': '3aa39ad076cf6dc08de24cfb31132d2d6adc6444623933786889b2bca15a76cf', 'b': 'ecad04839ce22217a1f5e35def8ceee26fce87819d28a70067574fc4cb7604fe'} |
| 145 | build/fixtures/gqa-causal-v1.json {'q': '1644b426e47bebd43a1c9b91bb11376f07e7a2678e727a43b37a681313e9c729', 'k': 'a621e99db699a04a01876ff78e30f85f4ccdfa6aa2d4507ae6c92db4fdbd4b08', 'v': '4427d100d96dfe263dde83154be5f60ec368d068b86baaea0f02dd878014ddc9'} |
| 146 | build/omega_runner: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=53286a8bc75888ddd484cc22f50a76c85e3c794b, for GNU/Linux 3.7.0, not stripped |
| 147 | {"accelerator_api": "cpu", "compile_seconds": 2.0407582230400294, "contract_id": "647116fc1ba1e1394982fc8ba181ce565293f160a6b56afc0f02b2128a675704", "device": "cpu", "execute_seconds": 0.0004572040634229779, "max_version": "unknown", "numeric_path": "fp32-mul-add (exact for this fixture)", "output_sha256": "60a7f7d46597cfff1cd126df12aa8583f191fc6c64a2a608341608f2de8e70a4", "runner": "modular-max", "shape": [4, 3], "spark_window": null} |
| 148 | {"checks": 11, "contract_id": "647116fc1ba1e1394982fc8ba181ce565293f160a6b56afc0f02b2128a675704", "device": "cpu", "fail": 0, "fixture": "matmul-v1", "max_abs_error": 0, "runner": "modular-max"} |
| 149 | {"accelerator_api": "cpu", "compile_seconds": 2.013016375945881, "contract_id": "003696e422bba7274877ba9e01a61076ea0f862f32760cbaa06c60f85a115359", "device": "cpu", "execute_seconds": 0.0005371239967644215, "max_version": "unknown", "numeric_path": "fp32-softmax", "output_sha256": "4e9b2bf0402156d5a431dce04d46ac8cd62069c9c6193491e0889e39f1f2fcb0", "runner": "modular-max", "shape": [2, 4, 128], "spark_window": null} |
| 150 | {"checks": 12, "contract_id": "003696e422bba7274877ba9e01a61076ea0f862f32760cbaa06c60f85a115359", "device": "cpu", "fail": 0, "fixture": "gqa-causal-v1", "max_abs_error": 2.6951289600063433e-07, "runner": "modular-max"} |
| 151 | {"checks": 11, "contract_id": "647116fc1ba1e1394982fc8ba181ce565293f160a6b56afc0f02b2128a675704", "device": "host-wiring", "fail": 0, "fixture": "matmul-v1", "max_abs_error": 0, "runner": "omega-native"} |
| 152 | DEVICE RUNS: NOT_RUN (pass --device inside an authorized spark-window) |
| 153 | CONFORMANCE HARNESS PASS |
| 154 | rc=0 |
| 155 | # git status --porcelain: [] |