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 / LICENSING_TRANSITION.md

149 lines · 9042 bytes Raw Blame History Rendered
1# CUDA++: why Apache-2.0 WITH LLVM-exception, and how to use the MIT version
2
3**First-party CUDA++ material in this revision is offered under Apache-2.0 WITH LLVM-exception**, except where a file carries a different explicit notice. The license applies to this revision whether obtained from a branch or a release. Earlier MIT grants remain valid; this change does not revoke them.
4
5## Why I built it, and why the license changed
6
7I built CUDA++ to give people an independently implemented path to their NVIDIA GPU without depending on NVIDIA's proprietary user-space compiler, runtime, driver library or math libraries. The goal was to remove that software dependency, not to distribute NVIDIA's proprietary implementation under my name.
8
9The foundation came from my own implementation and interoperability research. I wrote probe kernels, inspected their outputs using vendor tools offline, compared one-variable changes, consulted public technical references and permissively licensed projects, and tested my own encodings and runtime on hardware. I acknowledge that reverse engineering openly. The method and source references are documented in [HOW_I_DID_IT.md](HOW_I_DID_IT.md); the scoped provenance review is in [LICENSE_PROVENANCE.md](LICENSE_PROVENANCE.md).
10
11Understanding hardware behavior and writing my own implementation is different from taking proprietary source code. The documented provenance identifies my implementation work separately from the third-party material I actually include. I do not claim NVIDIA's open-source headers, Mesa's contributions, NVIDIA's firmware, or anyone else's work as mine. The audit records evidence and its limits, not a universal legal guarantee.
12
13The MIT foundation remains available to everyone at the exact revision below. Going forward, my first-party improvements build on that foundation under Apache-2.0 WITH LLVM-exception. The LLVM exception lets a developer compile proprietary models or GPU kernels with CUDA++ and ship the resulting object code under terms of their choosing; it also resolves the GPLv2 patent/indemnity conflict at the kernel boundary. It does not license NVIDIA's firmware, the vendor driver, or third-party notices.
14
15This is not a claim that every NVIDIA component has been replaced: the documented working path still uses NVIDIA's open kernel modules and signed firmware. Omega is relicensed under the same terms in its own repository.
16
17## What remains under its original terms
18
19- NVIDIA's open-kernel-module interface headers retain their MIT notices in `third_party/nvidia-open-580.173.02/`.
20- 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.
21- Attributed quotations remain third-party text, not my newly authored work.
22- The first-party AGPL-3.0-only transition is complete as of 2026-11-02. Drake Stapleton decided to relicense those files to Apache-2.0 WITH LLVM-exception. Before the edit, `git grep -l 'SPDX-License-Identifier: AGPL-3.0-only' -- ':!evidence' ':!third_party'` listed 57 files. CUDApp#89 had counted 48 on 2026-10-27 (`tests/learn53` 9, `native/learn53` 5, and the other directories below at the same counts). Nine files were added after that count: `tests/learn53` grew from 9 to 17 and `native/learn53` from 5 to 6. Each of the 57 SPDX lines changed from `AGPL-3.0-only` to `Apache-2.0 WITH LLVM-exception`. Those 57 files had no copyright line. The same edit normalized 26 first-party SPDX lines that said plain `Apache-2.0` to `Apache-2.0 WITH LLVM-exception` and left their copyright lines in place. The pull request is https://github.com/aien-dev/CUDApp/pull/263. Directory counts for the 57: `tests/learn53` 17, `tests/speculation` 10, `tests/host-trace` 9, `native/learn53` 6, `native/speculation` 5, `native/blackwell` 3, `native/trace` 2, `native/gsp` 1, `native/nvrm` 1, `tests/device-trace` 1, `tests/gsp` 1, `tools/omtrace` 1.
23- Receipts under `evidence/` keep the terms they were recorded with and are not edited. 33 receipt files still contain a historical `SPDX-License-Identifier: AGPL-3.0-only` line. `evidence/LEARN53-L777-CONTINUATION/{author,review}/omega-core.om` carry no licence header.
24- `native/learn53/omega653.lock` still records `"license": "AGPL-3.0"` for the pinned omega-mv object `84d03c5523f39ca1045d1c313c5f62597779462b` at `src/learning/benchmark/core.om`. That field is the upstream object's licence at that revision, not a CUDA++ SPDX header. `docs/learn53/CATALOG.md` and `docs/learn53/CONTINUATION-PLAN.md` describe that same upstream LICENSE. Those three texts were not changed.
25- `CITATION.cff` keeps `license: "Apache-2.0"`. The Citation File Format accepts SPDX license identifiers only, and the file's comment says `LICENSE` is authoritative for the LLVM exception.
26- `tools/localrouter/setup.py`, `tests/localrouter/test_setup.py`, and `tests/localrouter/negative_control.py` keep `SPDX-License-Identifier: MIT`. They were neither AGPL nor plain Apache-2.0.
27- 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.
28
29## Files changed on 2026-11-02
30
31AGPL-3.0-only SPDX headers, 57 files:
32
33```text
34native/blackwell/launch.om
35native/blackwell/trace-emit.om
36native/blackwell/vector.om
37native/gsp/fwimage.om
38native/learn53/catalog.om
39native/learn53/moe-closure.om
40native/learn53/omega-adapter.om
41native/learn53/stream.om
42native/learn53/task.om
43native/learn53/wire.om
44native/nvrm/context.om
45native/speculation/costs.om
46native/speculation/policy.om
47native/speculation/replay.om
48native/speculation/report.om
49native/speculation/service.om
50native/trace/htlaunch.om
51native/trace/htrec.om
52tests/device-trace/emitter-test.om
53tests/gsp/run-fwimage-host.sh
54tests/host-trace/badfrag.om
55tests/host-trace/fakedev.om
56tests/host-trace/fakenv.om
57tests/host-trace/launch-test.om
58tests/host-trace/lossy.om
59tests/host-trace/overhead-absent.om
60tests/host-trace/overhead-traced.om
61tests/host-trace/overhead.om
62tests/host-trace/recorder-test.om
63tests/learn53/catalog-check.om
64tests/learn53/catalog-export.om
65tests/learn53/catalog-fixtures.om
66tests/learn53/catalog-unit.om
67tests/learn53/fixtures.om
68tests/learn53/moe-export.om
69tests/learn53/moe-fixtures.om
70tests/learn53/moe-observe-export.om
71tests/learn53/moe-observe-fixtures.om
72tests/learn53/moe-observe-unit.om
73tests/learn53/moe-series-export.om
74tests/learn53/moe-series-unit.om
75tests/learn53/moe-unit.om
76tests/learn53/omega-unit.om
77tests/learn53/stream-check.om
78tests/learn53/stream-fixtures.om
79tests/learn53/stream-input.om
80tests/speculation/cost-test.om
81tests/speculation/oracle-test.om
82tests/speculation/packet-fixture.om
83tests/speculation/policy-test.om
84tests/speculation/reply-test.om
85tests/speculation/report-test.om
86tests/speculation/run-teardown-host.sh
87tests/speculation/service-test.om
88tests/speculation/support.om
89tests/speculation/teardown-host-test.om
90tools/omtrace/omtrace.om
91```
92
93Plain `Apache-2.0` SPDX lines normalized to `Apache-2.0 WITH LLVM-exception`, 26 files:
94
95```text
96src/omega_blackwell_codegen.h
97src/omega_canonical.c
98src/omega_canonical.h
99src/omega_core.c
100src/omega_core.h
101src/omega_numeric.c
102src/omega_numeric.h
103src/omega_numeric_lifecycle.h
104src/omega_numeric_reduce.c
105src/omega_numeric_reduce.h
106src/omega_path_check.h
107src/omega_types.h
108src/omega_vector.c
109src/omega_vector.h
110src/runtime/rx_costmodel.c
111src/runtime/rx_costmodel.h
112src/sha256.c
113src/sha256.h
114tests/bw_warp_sim.h
115tests/bw_warp_sim_k.h
116tests/bw_warp_sim_pa.h
117tests/bw_warp_sim_tc.h
118tests/omega/run.sh
119tests/runtime/rx_costmodel_unit.c
120tests/test_omega_gpu_decode_attn_maxpos.c
121tools/mutation_runner.sh
122```
123
124## Get the MIT foundation
125
126Use this exact historical commit:
127
128`232332422bfdc31c8918085b50f13c1e18ab702e`
129
130These checkout commands were tested against the public repository:
131
132```sh
133git clone --no-checkout https://github.com/aien-dev/CUDApp.git CUDApp-mit-snapshot
134cd CUDApp-mit-snapshot
135git fetch origin main
136git checkout --detach 232332422bfdc31c8918085b50f13c1e18ab702e
137git rev-parse HEAD
138head -1 LICENSE
139```
140
141The final commands show that exact commit and `MIT License`. To develop your own fork from this foundation, create a branch there:
142
143```sh
144git switch -c my-mit-development 232332422bfdc31c8918085b50f13c1e18ab702e
145```
146
147You can push that branch to a repository you control. GitHub's fork button alone does not select the historical version: explicitly check out the pinned commit. This is an existing MIT snapshot, not a claim that I created a separate hosted fork or that it was the final MIT commit.
148
149Keep the MIT license and third-party notices when redistributing that version. Later Apache-2.0 WITH LLVM-exception contributions do not become MIT merely because you copy them onto this branch. The terms attached to the material you actually use continue to apply.