Parent: https://github.com/aien-dev/aien-architecture-mv/issues/295 GPU family research / backend tracker: https://github.com/aien-dev/CUDApp/issues/36 Existing GPU and portability work: https://github.com/aien-dev/omega-mv/issues/593 and https://github.com/aien-dev/omega-mv/issues/596
Grounded baseline (main)
src/compiler/osc_ir.{h,c},src/compiler/osc_interp.c: typed lower IR and independent reference interpreter.src/omega_gpu_platform.h/ CUDAppsrc/omega_gpu_platform.h: versioned 1.2 platform services, generation-counted handles, rights, GPU VA vs bus addresses, explicit refusal. Reuse; do not duplicate.- CUDApp
src/omega_gpu_engine.c: chip-independent state machine;src/omega_blackwell_*.c,omega_gpu_session.c,omega_gpu_cmdlist.c: mostly chip-specific. - Existing CUDApp
docs/runtime/PORTABILITY.mdenumerates 87 chip-specific and 15 portable files at recorded baseline, plus repeated Blackwell setup constants. Never assume a Linux-neutral source is GPU-neutral. - Existing AIENIX architecture study
docs/research/repo-topology-unix-vs-monorepo-vs-hybrid.mdrecommends reversible boundary tests: Unix philosophy concerns processes/interfaces, not one Git repo per chip.
Goal
Modularly compose one meaning, many realizations without a universal driver/mega-runtime. Separate responsibilities:
omega-gpu-probe: discover devices and structured capability/provenance metadata, no code execution.omega-gpu-legalize: analyze typed operation, reject unsupported semantics/features, produce obligations.omega-gpu-lower: dispatch to registered target compiler (Blackwell/direct SASS, SPIR-V, AMDGPU, Metal, etc.) with target-specific output; no device open.omega-gpu-check: independently validate program, lowering, required capabilities, code hashes and receipts.omega-gpu-run: negotiate platform ABI then execute only an explicitly selected, validated target, no silent CPU/vendor fallback.omega-gpu-measure: collect results, actual target profile and measurements without re-implementing launch/compile.
These are logical Unix tools. Prototype separate processes for offline compilation, discovery and validation, with versioned structured stream records (JSONL for inspectability, content-addressed binary payloads or length-framed records for bytes). For hot-path execution use a small in-process C ABI: never send large tensors/pointers/driver handles over raw text pipes. Code and data stay local; capabilities are explicit and never gained by piping arbitrary text.
Acceptance
- A golden typed integer vector-add operation flows through independent
probe | legalize | lower | checkstages to produce verified Blackwell realization; the existing approved GB10 launcher executes it unmodified (a real chip run only when scheduled). - The same input is rejected with named diagnostic for unavailable target, wrong driver profile, malformed IR, stale code, unsupported precision, aliasing, synchronization hazards, invalid handle/rights and wrong receipt. Unknown=NOT_RUN, never PASS.
- Show two independent backend plugins using the same interface, one real Blackwell and one nonexecuting mock (must refuse pretending to run on a GPU). Byte-for-byte deterministic stage outputs across processes with pinned environment.
- No unauthorized network, runtime authority bypass, duplicate kernel generation, invented GPU coverage, or breaking change in existing ABI. Add migration notes and per-file ownership table.
- Run Spark's established local gates and request independent review; no repository move until an approved, reversible experiment supports it.
Related reference: https://docs.vulkan.org/guide/latest/compute_shaders.html ; https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html .