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 / evidence / MAX-INTEROP / G1 / README.md

110 lines · 7347 bytes Raw Blame History Rendered
1# Gate 1 — MAX pin and file-level licence inventory
2
3Written 2026-10-30. Status: EXERCISED (host inventory run). This is not a legal opinion.
4
5## Pins
6
7| item | value |
8|---|---|
9| release pin | `max/v26.7.0` = modular/modular `527d069ee11a41ac5320af1f9402db0a66b2b868` (committed 2026-10-22T17:37:22Z). This is the newest `max/v*` tag (`git ls-remote --tags`, 2026-10-30). |
10| experimental reference | modular/modular `main` = `8ed65fc6ac15950ce62da1f8e8d50c2c7c528065` (2026-10-29T19:28:33Z). It is in no tagged release. |
11| wheels | max, max-core, max-mojo-libs, modular 26.7.0; mojo, mojo-compiler, mojo-compiler-mojo-libs, mojo-lldb-libs 1.2.0. Installed in venv `~/workspace/maxinterop/venv`. |
12| pin licence | `Licenses/LICENSE` "Modular MAX Community License", last modified August 18, 2026, sha256 `f35ac2dfeb4a3e9482468874a50ce4dfb16fc11c3aefd2a1b4d51c44515ed02d` (blob bytes at the pin) |
13| main licence | `Licenses/MAX_LICENSE` sha256 `5ee0ef8838bb7eb212daad69e88f0230f6af822c27d25570ef1eb331d3742ac4` |
14
15## Method
16
17`license_inventory.py REPO REV OUT` (in this directory) reads every blob of `REV` from git objects, not from the working tree. For each file it records the SPDX tag, the licence header, or "no header"; for files without a header it also records the nearest governing `LICENSE` file. `wheel_inventory.py` does the same for every file in the installed wheels' RECORD.
18
19`~/workspace/maxinterop/max-source` is a `blob:none` partial clone, so every missing blob is fetched lazily one at a time. The first run against it (bg_21) timed out after 900 s. The counts below come from a shallow bare clone, `/dev/shm/modular-v26.7.0.git` (depth 1, tag `max/v26.7.0`, plus `main` at depth 1). That run took 1.5 s.
20
21Raw files (all rows, one file per row; gzip -n, `zcat` to read):
22- `max-source-527d069e.tsv.gz`: release pin, 11906 files
23- `max-source-main-8ed65fc6.tsv.gz`: main, 14866 files
24- `wheels-max-26.7.0.tsv.gz`: installed wheels
25
26## Released set (pin 527d069e, source)
27
28| count | kind | licence | governing file |
29|---:|---|---|---|
30| 9388 | header | Apache-2.0 WITH LLVM-exception | – |
31| 2168 | no header | → root `LICENSE` (Apache-2.0 WITH LLVM-exception) | `LICENSE` |
32| 297 | binary | → root `LICENSE` | `LICENSE` |
33| 25 | no header | MIT | `Mojo/tools/mblack/LICENSE` |
34| 11 | SPDX | Apache-2.0 WITH LLVM-exception | – |
35| 4 | no header | → `mblib2to3` LICENSE | `Mojo/tools/mblack/src/mblib2to3/LICENSE` |
36| 4 | SPDX | Apache-2.0 | – |
37| 2 | no header | MAX licence directory | `Licenses/LICENSE` |
38| 2+2 | header/SPDX | MIT | – |
39| 1 | SPDX | BSD-2-Clause (`AsyncRT/include/AsyncRT/Support/ConcurrentMPMCQueue.h`) | – |
40| 1 | header | MAX License (the licence text itself) | – |
41| 1 | header | Apache-2.0 | – |
42
43At the pin, no source file outside `Licenses/` carries a MAX License header.
44
45Pin files without a header, by extension: bazel 675, md 413, mlir 257, json 171, mdx 165, rst 149, bzl 79, patch 36, toml 32, txt 27, lock 21, test 20, other.
46
47## Released set (wheels 26.7.0)
48
49Every distribution's metadata declares `LicenseRef-MAX-Platform-Software-License`. Only `max` ships `LICENSE` and `Third-Party-Notices`. File headers inside the wheels:
50
51| dist | Apache-2.0 WITH LLVM-exception | Apache-2.0 | MIT | no header |
52|---|---:|---:|---:|---:|
53| max | 1958 | 3 | 1 | 1876 (1852 .pyc, 3 .so) |
54| max-core | 9 | – | – | 10 (6 .so) |
55| max-mojo-libs | – | – | – | 36 (32 .mojoc) |
56| mojo-compiler | 6 | – | – | 20 |
57
58Shared objects and `.mojoc` files without a header fall under the MAX Platform licence of their wheel. The wheel's Mojo sources keep their own Apache-2.0 WITH LLVM-exception headers (MAX licence §1.4).
59
60## Experimental set (main 8ed65fc6, not released)
61
62- 3578 paths exist only on main and 618 only at the pin.
63- Main-only paths by top-level directory: GraphCompiler 1429, max 1292, Mojo 384, MLRT 283, Target 112, bazel 35, Support 15, SDK 15, Kernels 10, Licenses 2, AsyncRT 1.
64- On main, 988 files carry a **MAX License** header. Their top-level directories:
65
66| files | path |
67|---:|---|
68| 206 | GraphCompiler/lib |
69| 185 | GraphCompiler/include |
70| 98 | Target/lib (includes 75 files in `Target/lib/CUDA/`) |
71| 85 | max/mojo |
72| 78 | MLRT/lib |
73| 61 | max/python |
74| 61 | MLRT/include |
75| 53 | GraphCompiler/test |
76| 51 | MLRT/unittests |
77| others | rest |
78
79- Main-only paths matching HAL or driver: 282 have a MAX License header, 23 have no header, 7 are Apache-2.0 WITH LLVM-exception, 2 are binary. This includes the whole Driver SDK, `SDK/include/HAL/M_driver_*.h` (13 headers, all with a MAX License header). Its README calls it the ABI-safe C interface for hardware vendors' driver plugins, "developed against (SDK versions corresponding to) one of our (stable) releases". No stable release ships it yet.
80
81## Files on our execution path
82
83| component | pin | main |
84|---|---|---|
85| `max/mojo/max/gpu/host/device_context.mojo` (`DeviceExternalFunction`, `load_function`) | Apache-2.0 WITH LLVM-exception | same; plus `_legacy/device_context.mojo`, same licence |
86| `max/python/max/graph/ops/custom.py` (`ops.custom`) | Apache-2.0 WITH LLVM-exception | same |
87| `max/tests/integration/Inputs/kernel_verification_ops/__init__.mojo` (`op_with_external_cubin` pattern) | Apache-2.0 WITH LLVM-exception | same |
88| `AsyncRT_DeviceContext_loadFunction` implementation | no source at the pin; binary only: `libAsyncRTMojoBindings.so` sha256 `ebefd2e8…830c` in the max-core wheel, MAX Platform licence | `MLRT/lib/Driver/DeviceContext/MojoBindings.cpp`, MAX License header |
89| CUDA backend | binary only at the pin | `Target/lib/CUDA/*` (75 files), MAX License header |
90
91Gates 2 and 3 call the released Apache-licensed Mojo/Python API and the released MAX-licensed binary. They do not modify or redistribute MAX.
92
93## AI-use clause that applies to this work
94
95- Pin: `Licenses/LICENSE` §1.3(d), lines 81–86.
96- Main: `Licenses/MAX_LICENSE` §1.4(d), lines 65–71. Main adds a new §1.3 "Contributions", so every later section number moves up by one: Additional Requirements is §1.4, Separately Licensed Components §1.5, Patent License §1.6. The clause text is the same at both revisions, except that the pin contains a stray "is prohibited,".
97
98Clause text: "You shall not use MAX, or any portion of it, as training data, fine-tuning data, or input to any AI system in order to produce software that reimplements or substitutes for MAX … This does not restrict using AI tools to read, analyze, improve, or explain MAX, or to develop Your own software that runs on or interoperates with MAX."
99
100Consequences for this work stream:
101
102| item | status |
103|---|---|
104| Gates 2–4: an Omega kernel loaded and run by MAX | interoperation; allowed |
105| Gate 5: an Omega-backed device plugin written against the MAX-licensed HAL Driver SDK | interoperation by its stated purpose; experimental, main only |
106| Using MAX-licensed GraphCompiler, MLRT or Target sources as AI input to build an Omega graph compiler, runtime or scheduler that replaces MAX's | forbidden; keep MAX's model, graph and serving layers |
107
108Section headings checked against both blobs: pin lines 65/88 are §1.3/§1.4; main lines 45/50/73 are §1.3/§1.4/§1.5.
109
110Upstream contributions also fall under modular `AI_TOOL_POLICY.md`: a human reviews and submits, and only bug fixes are accepted.