interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / PROVENANCE.md

74 lines · 4904 bytes Raw Blame History Rendered
1# Provenance of hardware knowledge in omega-mv
2
3The rule for adding hardware facts (instruction encodings, container layouts, launch descriptors) to
4Omega's NVIDIA back ends, and a record of the NVIDIA tool output already stored here. It is an engineering
5record, not legal advice. The same rule is in aien-dev/CUDApp `PROVENANCE.md`, which quotes the licence
6clauses it follows: CUDA Toolkit EULA (https://docs.nvidia.com/cuda/eula/index.html, January 2025
7revision) §1.2(1), §1.2(8), §1.1.2(4) and §2.1; NVIDIA driver licence §2.1 and §2.2; MAX License §1.4
8(https://www.modular.com/legal/max-license, October 21, 2026).
9
10## Allowed sources
11
12- **Class A, use freely and cite:** public NVIDIA documentation (PTX ISA, CUDA Binary Utilities,
13 open-gpu-doc); open source under permissive licences (NVIDIA open kernel module headers MIT, Mesa
14 NAK/NVK MIT, LLVM `BinaryFormat/ELF.h` Apache-2.0 WITH LLVM-exception, CUTLASS BSD-3-Clause); my own
15 bytes run on my own NVIDIA GPU.
16- **Class B, oracle only:** NVIDIA's `nvcc`, `ptxas`, `cuobjdump` and `nvdisasm` installed on my own
17 machine, run only on inputs I wrote (probe kernels I authored, bytes my encoders emitted), only for
18 NVIDIA-GPU targets, with the tool version recorded. The tools are never shipped or invoked by an Omega
19 program; `tools/sm121dis` replaces `nvdisasm` in the checks (C6).
20
21## Not allowed
22
231. Reading, disassembling or extracting the machine code or containers of any NVIDIA binary: `libcuda`,
24 cuBLAS, cuDNN, TensorRT, NCCL, the compiler binaries, driver files, firmware, or cubins embedded in
25 NVIDIA libraries. This applies to rented machines as well as the Spark.
262. Using a fact learned from class B output for a non-NVIDIA target (SPIR-V, Vulkan, AMD, any other).
27 Those back ends take facts from that vendor's class A sources only.
283. Committing SDK files, NVIDIA binaries, firmware, or NVIDIA headers other than the MIT open-module
29 headers.
304. Giving MAX source or binaries to an AI system to produce software that reimplements or substitutes
31 for MAX.
32
33## What a new fact records
34
35Class and exact source (document and section, file and commit, or tool and version); for class B the
36probe input path and command; the chip receipt or NOT_RUN. A golden copied from class B output is a
37regression pin, not independent evidence; a golden written from class A and confirmed on the chip is
38independent.
39
40## Corrections
41
42- 2026-10-27: cubin ABI 7 notes for `seed/sm80/cubin.om` (PR #864, branch `ck/cubin-om`) had cited CUDA
43 12.8 cuBLAS cubins, which were extracted from `libcublas.so` on a rented machine. That is not allowed
44 (rule 1). The extracts were deleted and the notes now cite only nvcc 13.0 probe kernels and LLVM
45 `ELF.h` (commit `76639738a`). The emitted bytes did not change, so the knowledge was re-sourced, not
46 re-derived independently; this is listed as an open question for counsel.
47
48## NVIDIA tool output stored in this repository
49
50`evidence/` is additions-only, so these files stay. Each is class B output.
51
52| File | Input | Tool |
53|---|---|---|
54| `evidence/gpu-reconv-308/oracle/cf.sass` | `cf.cu`, a probe kernel I wrote, compiled by nvcc 13.0 | `cuobjdump -sass` |
55| `evidence/OWN30B-T3-HMMA-MODEL-38fe3d98-20261013T2204Z/oracle.sass` | `oracle.cu`, my probe, nvcc 13.0 | `cuobjdump -sass` |
56| `evidence/OWN30B-T3-TC-PEAK-BW-5faa0f70-20261013T2236Z/fa_ops.sass` | `fa_ops.cu`, my probe, nvcc 13.0 | `cuobjdump -sass` |
57| `evidence/SEED-0/sm121/vecadd.sass.txt` | `seed/sm121/vecadd.bin`, made by `asm2` | `nvdisasm` |
58| `evidence/SEED-0/sm121/forms-nvdisasm.tsv`, `nvdisasm-refused*.txt` | edge cases generated from `seed/sm121/sm121.tbl` | `nvdisasm -b SM121` |
59| `evidence/C6-DISASM/11-*.log`, `12-*.log` | `tools/sm121dis/zero_nvdisasm.sh` (11: no file outside the oracle harness looks up `nvdisasm`; 12: red run with planted calls) | not an NVIDIA listing |
60| `evidence/E1-SIMT-C3/20261002T211613Z/ldst/nvdisasm.log` | encoder output, 148 kernels | `nvdisasm` 13.0 (verdict only) |
61
62`bench/prime_race/tests/encoding_oracle.md` documents an nvcc + cuobjdump oracle procedure on probe kernels.
63`tools/divsqrt_nvdisasm_check.sh` and `tools/ldst_nvdisasm_check.sh` run `nvdisasm` on encoder output.
64`evidence/C5-ISOLATION/04-never-ending-kernel.sass.txt` is `sm121dis` output, not NVIDIA's.
65
66## Open questions for counsel
67
681. Does deriving NVIDIA instruction encodings from nvcc output of my own probe kernels, for an
69 NVIDIA-only toolchain, fall within the CUDA EULA (§1.2(8) is limited to non-NVIDIA targets)?
702. `tools/sm121dis` was built to print exactly what `nvdisasm` prints, checked by comparing outputs over
71 many inputs. Is systematic black-box comparison with an SDK tool "reverse engineering" of the SDK under
72 §1.2(1)?
733. May the class B listings above be published?
744. Does re-sourcing the ABI 7 notes after the cuBLAS extraction (Corrections) cure it?