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
omega-mv / gpu / qual / README.md
| 1 | # gpu/qual: Pure-Omega Physical Hardware Qualification Kit (x86-64 Linux & Non-NVIDIA GPUs) |
| 2 | |
| 3 | This directory holds standalone pure-Omega (`seed/out/omc`) qualification binaries designed to prove |
| 4 | **physical hardware execution** for targets that still require physical hardware qualification rather |
| 5 | than emulator or CPU-only checks: |
| 6 | |
| 7 | | File | Target | Purpose | |
| 8 | | --- | --- | --- | |
| 9 | | `x86linux_qual.om` | `target x86linux` | Native x86-64 Linux physical qualification: detects emulation (`qemu-x86_64` / non-x86 kernel) and refuses (`exit 3`, `BLOCKED_HARDWARE`) unless run on real x86-64 Linux hardware; exercises integer/overflow/shift semantics, IEEE-754 `f32`/`f64` + `sqrt` + `bitcast`, NIST SHA-256 vectors, `cpufence`/`cpurelax`/`monons`, and `fork`+`waitpid` trap controls (traps 1, 2, 3, 5 -> exits 101, 102, 103, 105); prints a SHA-256 receipt. | |
| 10 | | `non_nvidia_qual.om` | `aarch64` & `target x86linux` | Non-NVIDIA physical GPU discovery & pre-flight qualification: scans PCI display devices (`0x1002` AMD, `0x8086` Intel, `0x10de` NVIDIA), `/dev/kfd`, `/dev/dri/renderD128`, and `/etc/OpenCL/vendors`; refuses (`exit 3`, `BLOCKED_HARDWARE`) on NVIDIA-only or CPU-only hosts. | |
| 11 | | `qual_test.om` | host | Pure-Omega host classification & negative-control test suite. | |
| 12 | | `gate.sh` | host / target | Compiles all units with `seed/out/omc`, checks synthetic AMD/Intel/NVIDIA-only fixtures, verifies `x86linux_qual` refuses under QEMU (`exit 3`) and passes `--allow-emulated-selftest`, and runs live host inventory. | |
| 13 | |
| 14 | ## Running on physical target hardware |
| 15 | |
| 16 | 1. **Physical x86-64 Linux host**: |
| 17 | ```sh |
| 18 | OMC=seed/out/omc sh gpu/qual/gate.sh |
| 19 | ``` |
| 20 | On a real x86-64 Linux machine, `x86linux_qual` reports `EXEC_CLASS=PHYSICAL_X86_64`, `VERDICT=PASS`, and a `RECEIPT_SHA256=...`. |
| 21 | 2. **Physical AMD (MI300X / gfx942) host**: |
| 22 | `non_nvidia_qual` confirms PCI `0x1002` + `/dev/kfd`, then run `gpu/amd/kfd/launch/` and `tests/gates/run.sh gpu-amd`. |
| 23 | 3. **Physical Intel Xe2/Xe3 (Panther Lake) host**: |
| 24 | `non_nvidia_qual` confirms PCI `0x8086` + `/dev/dri/renderD128`, then run `launch probe` and `launch fence-test` from `gpu/intel/xe/launch.om`. |
| 25 | 4. **Physical OpenCL/SPIR-V non-NVIDIA GPU host**: |
| 26 | Run `OMC=seed/out/omc sh gpu/spirv/check.sh` and `sh gpu/spirv/omega-run.sh`. |
| 27 | |
| 28 | ## Current Hardware Status |
| 29 | |
| 30 | - **x86-64 Linux physical qualification**: `BLOCKED_HARDWARE` / `NOT_RUN` (no physical x86-64 Linux machine attached; verified under `qemu-x86_64` on DGX Spark AArch64 where default invocation properly returns `exit 3` `BLOCKED_HARDWARE` and `--allow-emulated-selftest` passes all 12 checks + 4/4 trap controls). |
| 31 | - **AMD / Intel / non-NVIDIA GPU physical qualification**: `BLOCKED_HARDWARE` / `NOT_RUN` (DGX Spark carries only NVIDIA GB10 `0x10de:0x2e12`; `non_nvidia_qual` confirms `GPU_AMD_PCI count=0`, `GPU_INTEL_PCI count=0`, `GPU_NVIDIA_PCI count=1`, `VERDICT=BLOCKED_HARDWARE`). |