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

docs: make CUDA++ independently reviewable by external engineers

merged 188279c1d7d22912 #87 · opened 2026-10-26 03:08 UTC · closed 2026-10-26 03:37 UTC · merged 2026-10-26 03:37 UTC

Imported from GitHub aien-dev/CUDApp#87, by drakestapleton

Base b5e0da48ee7b8a64ae0b51068769fa0659b2e33a · Head 79db0603396ee27fc76764851e2e61ba156789f0

Merged on GitHub as 7023bf7b57ddfd5d387588065b574fcf6a90fc91; reachable from main 21d8de285f713adf09e0d6ba6db2b37139d0674e (observed 2026-11-18T16:38:29Z)

drakestapleton wrote on 2026-10-26 03:08 UTC

Why

CUDApp is already public. External engineers need a reliable entry point that distinguishes Linux host tests, simulation, native GB10 qualification and future plans without overstating support.

Changes

  • Add docs/START_HERE.md: reproducible clone/build commands, test meanings, qualified hardware/driver contract, independent evidence checklist and explicit known limits.
  • Add SECURITY.md: avoid public disclosure of exploit details, point to private vulnerability reporting when enabled.
  • Add a PR evidence template: exact commit, host/simulator/GPU PASS/FAIL/NOT RUN distinctions, provenance and negative-control checklist.
  • Repair CONTRIBUTING.md's outdated CUDAplusplus clone URL and missing HOW_WE_DID_IT paths, and distinguish host checks from native chip runs.
  • Amend README.md with first-run entry point, accurate current C versus planned .om status and a fixed historical MIT license link.
  • Repair docs/LICENSING_TRANSITION.md's broken LICENSE-MIT link by pointing at the MIT license in historical commit 232332422bfdc31c8918085b50f13c1e18ab702e. No license terms changed.

Verification

  • GitHub comparison against base commit b5e0da48ee7b8a64ae0b51068769fa0659b2e33a: 6 documentation-only files, 1 commit, no runtime code touched.
  • New files and README verified readable on the PR branch via GitHub.
  • NOT RUN: make, make test, make test-native-artifact, make zero-cuda-gate, figure generation, and make hello-gpu. This was an API-level documentation update; no local checkout or authorized hardware window was used.
  • Existing known limitation: fresh x86-64 host suite reproducibility is tracked in #15; historically stale stack.svg figure check is recorded in AGENTS.md. Neither is claimed resolved.

Out-of-scope blockers

Fresh external checkout validation and CI, current-head history/security audit, private vulnerability-reporting configuration, and release-grade independent benchmarks should be completed before treating this as a general release. #79 separately tracks retirement of first-party C in favor of qualified .om.

Do not merge as evidence of a passing full test suite, a multi-GPU implementation or general CUDA equivalence. No visibility or production runtime settings were changed.

Release gate tracking

  • #88 — External engineer review acceptance gate
  • #89 — Fresh current-history safety/provenance review
  • #90 — Fresh-clone host CI and figure checks
  • #91 — Independent public compatibility/performance evidence

This PR only addresses the documentation entry-point portion. It does not close the other release gates.

Apply it

git checkout -b patch-188279c1d7d22912 b5e0da48ee7b8a64ae0b51068769fa0659b2e33a
curl -fsSL https://interplane.io/drakestapleton/CUDApp/patches/188279c1d7d22912.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/CUDApp
87
79db0603396ee27fc76764851e2e61ba156789f0
{"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":87,"url":"https://github.com/aien-dev/CUDApp/pull/87","export_sha256":"0aafd51b77ff5776d6baaf9b88b48c8b36a6e27c8d829ae8ded561b71712b17a","imported_utc":"2026-11-18T16:38:29Z"}

Changes

diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..a04f7de8
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,26 @@
+## Purpose and scope
+
+Explain the user-visible change and the exact source paths involved. Link the tracking issue; distinguish implemented behavior from planned behavior.
+
+## Evidence on the exact commit
+
+Record `git rev-parse HEAD`, OS/architecture, toolchain, full commands and exit codes, and new receipt path. Mark each item **PASS**, **FAIL**, or **NOT RUN** (with reason); do not check a box for an unexecuted gate.
+
+- [ ] `make test` (host-only)
+- [ ] `make test-native-artifact` (host-only)
+- [ ] `make zero-cuda-gate` (ELF audit and negative control)
+- [ ] `build/hello_gpu --sim` (simulator only)
+- [ ] `make doctor` (diagnostic; NOT READY on unsupported machines is expected)
+- [ ] GB10 hardware tests, **only if an authorized GPU window is available** (otherwise NOT RUN)
+
+## Correctness, compatibility and provenance
+
+- [ ] Negative controls and affected contracts are documented.
+- [ ] API/ABI and Omega consumer effects are identified; source and runtime status claims are not overstated.
+- [ ] Third-party material, licensing, and public-history safety were checked for additions.
+- [ ] No secrets, personal machine paths, private addresses, other processes' logs, vendor binaries, or unauthorized generated artifacts were included.
+- [ ] Existing receipts remain immutable; new results have their own evidence folder.
+
+## Known limitations
+
+List unsupported hardware, missing functionality, pre-existing failures, and tests not performed. Documentation-only changes should explicitly state that no builds or chip tests were run when that is the case.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9023cf9d..ae99d568 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -10,17 +10,24 @@ A failing test means the work is wrong. Find the cause; do not skip the test, lo
 
 ## What you need
 
-A Linux machine with an NVIDIA GPU, NVIDIA's open kernel module, `git`, `make` and a C compiler. No CUDA toolkit. Start here:
-
+For a host-only start, use Linux with `git`, `make`, a C compiler and the build tools described in [START_HERE.md](docs/START_HERE.md). The documented, fully qualified native GPU path is Linux on the GB10 (DGX Spark, sm_121) with NVIDIA's 580.173.02 kernel module. The CUDA toolkit is not needed for the normal runtime or host tests. A fresh x86-64 host checkout is not yet a validated target for the entire suite (see [#15](https://github.com/aien-dev/CUDApp/issues/15)).
+
+```sh
+git clone https://github.com/aien-dev/CUDApp.git
+cd CUDApp
+make
+make test               # host checks; no GPU device opened
+build/hello_gpu --sim   # simulator, not a hardware result
+make doctor             # diagnostic; may report NOT READY on other hosts
 ```
-git clone https://github.com/aien-dev/CUDAplusplus
-cd CUDAplusplus
-make doctor      # is this machine ready? every problem comes with the command that fixes it
-make test        # every host check, no GPU needed
-make hello-gpu   # the first kernel, on the GPU
+
+Only on a qualified GB10 when it is safe to use the GPU (never interrupt a live service):
+
+```sh
+make hello-gpu
 ```
 
-If `make doctor` says your GPU is not qualified, that is not a dead end. It is the first contribution below.
+If `make doctor` says your GPU is not qualified, report the device and driver information using the port-a-chip issue template rather than forcing a hardware run.
 
 ## Four ways to help, easiest first
 
@@ -30,7 +37,7 @@ Something about CUDA or CUDA++ cost you time? Open an issue with the "Pain point
 
 ### 2. Port a chip ("do it on your GPU")
 
-CUDA++ has run on one chip so far, the GB10 in the DGX Spark. Every other NVIDIA GPU needs a port, and the method is written down in `docs/HOW_WE_DID_IT.md`. What changes from chip to chip is listed in `docs/runtime/PORTABILITY.md` section 5. In order:
+CUDA++ has run on one chip so far, the GB10 in the DGX Spark. Every other NVIDIA GPU needs a port, and the method is written down in `docs/HOW_I_DID_IT.md`. What changes from chip to chip is listed in `docs/runtime/PORTABILITY.md` section 5. In order:
 
 1. Run `make doctor` and `make test` and keep both outputs.
 2. Add a target row for your chip (PCI id, architecture, class numbers, launch descriptor version, memory model). Fields nobody has published are marked unknown until you measure them.
@@ -51,7 +58,7 @@ CUDA++'s libraries (matrix multiply, attention, elementwise, mixture-of-experts
 
 The current first-party license is Apache-2.0 WITH LLVM-exception. You may read, disassemble, reverse engineer and translate CUDA++ output, including its machine code, and port CUDA++ to any hardware, subject to the applicable license and retained third-party notices. This is deliberate: CUDA's license restricts reverse engineering its output to target other hardware (`docs/PAIN_POINTS.md`, section 2.8); CUDA++ does not impose that restriction on its own output.
 
-Do not send us NVIDIA's code or binaries. CUDA++ stores no NVIDIA binary, cubin, PTX or firmware, and no listing printed by NVIDIA's tools (`docs/AUDIT.md`). If you used NVIDIA's compiler or disassembler on your own small kernels to learn an encoding, say so in the code comment, as the existing code does (`docs/HOW_WE_DID_IT.md`, step 2).
+Do not send us NVIDIA's code or binaries. CUDA++ stores no NVIDIA binary, cubin, PTX or firmware, and no listing printed by NVIDIA's tools (`docs/AUDIT.md`). If you used NVIDIA's compiler or disassembler on your own small kernels to learn an encoding, say so in the code comment, as the existing code does (`docs/HOW_I_DID_IT.md`, step 2).
 
 ## How a change gets in
 
diff --git a/README.md b/README.md
index fbf7380a..5081cdcd 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,8 @@ CUDA++ keeps growing until every NVIDIA part on the Spark is replaced, and then
 
 CUDA++ is not affiliated with or endorsed by NVIDIA; CUDA is NVIDIA's trademark.
 
+**New to CUDA++?** Start with the [first-run and independent verification guide](docs/START_HERE.md). It separates host-only tests from real GB10 execution, documents the current support boundary, and explains how to interpret receipts. See [contributing](CONTRIBUTING.md), [security reporting](SECURITY.md), and [the readiness roadmap](ROADMAP.md) before relying on it in a deployment.
+
 **On this page:** [the stack](#the-stack) · [how I did it](#how-i-did-it) · [the machine code](#what-the-machine-code-looks-like) · [the driver, part by part](#the-driver-part-by-part) · [one launch, start to finish](#one-launch-start-to-finish) · [CUDA, piece by piece](#cuda-piece-by-piece) · [speed](#speed-against-the-ceiling) · [run your first kernel](#run-your-first-kernel)
 
 ## The stack
@@ -360,7 +362,7 @@ make doctor   # is this machine ready? one line per check, each problem with its
 
 ## How it fits with Omega
 
-[Omega](https://github.com/aien-dev/omega-mv) (Apache-2.0 WITH LLVM-exception) is AIEN's language for all computing: the languages Omegese and OSC, their checker and the CPU backends. CUDA++ is the part of the Omega runtime that drives the GPU. Omega uses CUDA++ at a pinned commit (`cudapp.lock` in Omega), the same way it pins its other parts. The code was split out of Omega on 2026-10-21 with its full history; `docs/AUDIT.md` records how, and what was checked before it was published.
+[Omega](https://github.com/aien-dev/omega-mv) owns AIEN's seeded `.om` language and its compiler/runtime work. CUDA++ is the GPU toolchain and runtime component it consumes. The currently shipped CUDApp implementation still contains first-party C; the planned, test-gated replacement with native `.om` is tracked in [#79](https://github.com/aien-dev/CUDApp/issues/79). Omega uses CUDA++ at a pinned commit (`cudapp.lock` in Omega), the same way it pins its other parts. The code was split out of Omega on 2026-10-21 with its full history; `docs/AUDIT.md` records how, and what was checked before it was published.
 
 ## Names
 
@@ -368,4 +370,4 @@ The C names still carry the `omega_` prefix they had inside Omega, so Omega's wo
 
 ## Licence
 
-Apache-2.0 WITH LLVM-exception for first-party material in this candidate (`LICENSE`). Historical MIT grant: `LICENSE-MIT`. Third-party terms and notices: `THIRD_PARTY.md`.
+First-party material at this revision is Apache-2.0 WITH LLVM-exception ([LICENSE](LICENSE)); third-party terms and notices are in [THIRD_PARTY.md](THIRD_PARTY.md). The earlier MIT grant is documented in [the licensing transition](docs/LICENSING_TRANSITION.md) and the [license at the pinned historical MIT commit](https://github.com/aien-dev/CUDApp/blob/232332422bfdc31c8918085b50f13c1e18ab702e/LICENSE).
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 00000000..73a069cd
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,15 @@
+# Security policy
+
+CUDA++ is a research-stage GPU toolchain with direct access to low-level device interfaces. No general production-security certification, bug-bounty program, or fixed security-response time is claimed.
+
+## Reporting a vulnerability
+
+**Do not include exploit details, credentials, host addresses, confidential logs, or proof-of-concept payloads in a public issue or pull request.**
+
+Use GitHub's private **Report a vulnerability** option on this repository's Security tab **if it is enabled**. If private reporting is not enabled, open a public issue asking maintainers to provide a private reporting channel **without including any vulnerability details**. A maintainer should agree on a private channel before evidence is shared.
+
+For ordinary bugs that do not expose a security vulnerability, use the regular issue templates. Please include the affected commit and environment, a minimal non-sensitive reproduction, expected and actual behavior, and any verified mitigations.
+
+Security fixes must preserve existing negative controls, do not silently relax device or memory protections, and should be qualified through the relevant host and approved hardware gates before being called resolved. Never run proof-of-concept tests on a shared GPU service without authorization.
+
+See [CONTRIBUTING.md](CONTRIBUTING.md), [the provenance audit](docs/AUDIT.md), and [the runtime contract](docs/runtime/API.md).
diff --git a/docs/LICENSING_TRANSITION.md b/docs/LICENSING_TRANSITION.md
index 1d1a4749..17499881 100644
--- a/docs/LICENSING_TRANSITION.md
+++ b/docs/LICENSING_TRANSITION.md
@@ -19,7 +19,7 @@ This is not a claim that every NVIDIA component has been replaced: the documente
 - NVIDIA's open-kernel-module interface headers retain their MIT notices in `third_party/nvidia-open-580.173.02/`.
 - Mesa/NVK/NAK hardware facts and references retain their attribution in [THIRD_PARTY.md](../THIRD_PARTY.md). The historical audit reports no copied Mesa source code.
 - Attributed quotations remain third-party text, not my newly authored work.
-- The original first-party MIT license is preserved verbatim in [LICENSE-MIT](../LICENSE-MIT). It documents prior grants, not a blanket MIT option for future Apache-2.0 WITH LLVM-exception contributions.
+- The original first-party MIT license can be read in [LICENSE at the pinned MIT revision](https://github.com/aien-dev/CUDApp/blob/232332422bfdc31c8918085b50f13c1e18ab702e/LICENSE). That prior grant remains effective for material covered by it; it is not a blanket MIT option for later Apache-2.0 WITH LLVM-exception contributions.
 
 ## Get the MIT foundation
 
diff --git a/docs/START_HERE.md b/docs/START_HERE.md
new file mode 100644
index 00000000..5e1dc66c
--- /dev/null
+++ b/docs/START_HERE.md
@@ -0,0 +1,69 @@
+# Start here: run and verify CUDA++
+
+This is the shortest route for someone who has not worked on AIEN. The repository is named `CUDApp`; the project is called **CUDA++**. It is a research-stage GPU machine-code toolchain and runtime, not yet a drop-in replacement for all of CUDA. Read [the roadmap](../ROADMAP.md) for the tested, partial, and missing components.
+
+## 1. Know what is supported
+
+| Path | What it establishes | Current boundary |
+| --- | --- | --- |
+| Build and host tests | Compiles the library and checks host references, simulators, negative controls and API contracts. | Linux is the documented build environment. The full suite has previously passed on the DGX Spark host; fresh x86-64 portability remains tracked in [#15](https://github.com/aien-dev/CUDApp/issues/15). |
+| `build/hello_gpu --sim` | Runs the example through the **host simulator** and checks its answers. | No GPU is opened; this is **not** hardware qualification or a performance result. |
+| `make doctor` | Reports whether the current Linux host matches the supported native GPU path. | Read-only diagnostic; a non-GB10 host is expected to report NOT READY. |
+| `make hello-gpu` | Runs the vector-add example on the actual GPU and checks output against the CPU. | Qualified target: NVIDIA GB10 (DGX Spark, sm_121), Linux, kernel driver 580.173.02. Requires safe, authorized GPU access. |
+
+The current runtime bypasses NVIDIA's **user-space** CUDA toolkit and `libcuda` API. It still relies on NVIDIA's **kernel module** and signed GPU firmware. This is not a CUDA-compatibility guarantee for unmodified CUDA applications or for arbitrary NVIDIA/AMD/Intel GPUs. See [the compatibility roadmap](../ROADMAP.md) and [portability contract](runtime/PORTABILITY.md).
+
+## 2. Clone and run host-only checks
+
+On a Linux host with `git`, GNU `make`, `gcc`, and `python3` for the optional figure check:
+
+```sh
+git clone https://github.com/aien-dev/CUDApp.git
+cd CUDApp
+git rev-parse HEAD
+uname -s -m
+
+make -j4
+make test
+make test-native-artifact
+make zero-cuda-gate
+build/hello_gpu --sim
+```
+
+`make test` is the host-only suite. On a qualified build environment its success marker is `CUDA++ HOST TESTS PASS (33 targets)`. The suite contains intentional failure/mutation cases: judge the **exit code and final result**, not the presence of the words FAIL/ERROR in intermediate logs. It can take several minutes. `make zero-cuda-gate` inspects ELF metadata and runs its own negative control; it is **not** a proof that kernel drivers or firmware have disappeared.
+
+If an x86-64 checkout fails on an architecture-specific instruction, record the full error and compare with [the existing reproducibility issue #15](https://github.com/aien-dev/CUDApp/issues/15). Do not suppress the memory-ordering instruction or call a partial host run a passing full suite.
+
+Optional: `python3 tools/figures/make_figures.py --check` verifies that README diagrams match the generator. A previously observed `stack.svg` mismatch is documented in [AGENTS.md](../AGENTS.md); check it again on your exact commit rather than assuming it is resolved.
+
+## 3. Diagnose a native GPU machine
+
+```sh
+make doctor
+```
+
+The doctor inspects the host and reports compatibility. It does not open a GPU device. **NOT READY is an expected result** on unsupported chips, absent driver/device nodes, or mismatched driver releases. Do not bypass its refusal to try hardware.
+
+Only when the machine is a qualified GB10 and you are authorized to use it without interrupting a serving workload:
+
+```sh
+make hello-gpu
+```
+
+The example adds one million floats and checks its answer against the CPU. Exit 0 and PASS describe that run, on that machine and commit. Do not run chip tests on a shared DGX Spark without a coordinated quiet window.
+
+## 4. How to evaluate the evidence
+
+- The primary implementation is under [`src/`](../src/), with the driver client in [`nvrm/`](../nvrm/) and [`m16/`](../m16/). The hello-world implementation is [`examples/hello_gpu/hello_gpu.c`](../examples/hello_gpu/hello_gpu.c).
+- Read [the actual runtime API](runtime/API.md) and [driver explanation](DRIVER.md), then inspect the code and [provenance audit](AUDIT.md). The third-party licenses are described in [THIRD_PARTY.md](../THIRD_PARTY.md).
+- Published results and numbers apply to the exact documented workload, commit, hardware and driver. A host simulator PASS does not prove machine-byte correctness on another GPU; a GB10 receipt does not establish general GPU support or performance superiority.
+- `evidence/` contains experimental receipts. A dated or historical receipt does not prove an unrelated later commit passed the same gate. Preserve existing receipts; create a new folder for new evidence.
+- Current runtime implementation is primarily C. Migration toward an exclusively first-party `.om` implementation is **planned, not complete** ([#79](https://github.com/aien-dev/CUDApp/issues/79)). Do not present a future compiler or driver as already shipped.
+
+To help, follow [CONTRIBUTING.md](../CONTRIBUTING.md) and use an existing issue template. If you find a vulnerability, follow [SECURITY.md](../SECURITY.md) instead of posting exploit details publicly.
+
+## 5. What to attach to an independent review
+
+Report the full source commit (`git rev-parse HEAD`), OS and architecture (`uname -s -m`), compiler (`gcc --version`), commands with exit codes, and the relevant output. For a permitted GB10 test, include chip/driver identity and the immutable evidence path. Clearly mark each gate **PASS**, **FAIL** or **NOT RUN**; a skipped hardware gate is never PASS.
+
+For the first public release bar and feature gaps, use [ROADMAP.md](../ROADMAP.md), [host reproducibility #15](https://github.com/aien-dev/CUDApp/issues/15), and [native `.om` migration #79](https://github.com/aien-dev/CUDApp/issues/79).