interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / docs / superpowers / plans / 2026-10-26-shader-pilot-foundation.md

61 lines · 4875 bytes Raw Blame History Source

Offline compute pilot implementation plan

For agentic workers: Use superpowers:executing-plans. Follow the checked steps in order.

Goal: Make a reproducible, non-launching seeded .om specimen for CUDApp #86.

Architecture: Reuse the unchanged gbvec emitter and #53 CUL1 catalog/evaluator. A small selector and complete-byte matcher admit only the two existing dense unsigned32 add cases. An offline exporter writes either the canonical task or the code, never a runnable GPU submission or an authenticated cache entry.

Tech Stack: Seeded Omega, existing public CUL1, existing Linux development tools.

Spec: https://github.com/aien-dev/CUDApp/issues/86, bounded stage-one increment only.

Global constraints

Review focus

Task 1: offline selector and matcher

Files: native/shader-pilot/core.om, tests/shader-pilot/core-test.om. Interfaces: spload(id:ulong)->ulong prepares canonical kt, gbcode, gblen and returns task length, or zero. spmatch(id:ulong,tn:ulong,cn:ulong)->int compares separate caller-owned sptask[232] and spcode[512] against freshly prepared bytes. Status 0 matches, 65 bad lengths, 77 unsupported, 1 byte mismatch. Neither function launches anything.

Task 2: bounded exporter and repeatable evidence

Files: native/shader-pilot/export.om, docs/shader-pilot/README.md, tests/shader-pilot/stream-check.om, new evidence folder. Interfaces: exporter stdin exactly two bytes [catalog_id, selector], selector 1 emits existing CUL1, selector 2 emits unchanged native bytes. Invalid length 65, unsupported ID/mode 77, I/O failure 74. No payload on validation refusal; I/O failure may leave a partial stream and the nonzero status invalidates it.

Execution record