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

79 lines · 5942 bytes Raw Blame History Rendered
1# Third-party material in CUDA++
2
3The first-party material in the transition candidate is Apache-2.0 WITH LLVM-exception (`LICENSE`). This repository also contains and cites third-party material under separate terms. Those grants and notices remain in force; they are not replaced by the project license.
4
5## 1. NVIDIA open GPU kernel module headers (copied, unchanged)
6
7`third_party/nvidia-open-580.173.02/` holds 67 header files from NVIDIA's open-gpu-kernel-modules,
8release 580.173.02 (the driver version on the GB10 this was built on). They describe the ioctl
9interface of the open kernel module, the object classes and the control calls. `SHA256SUMS` in that
10folder lists every file; `make verify-vendored` (part of `make test`) checks every hash and refuses
11any unlisted file. Each file keeps its own NVIDIA copyright and MIT notice (60 carry
12`SPDX-License-Identifier: MIT`; 7 older ones carry the MIT permission text without the SPDX line).
13`third_party/nvidia-open-580.173.02/COPYING` is NVIDIA's licence file: the files are MIT, and only
14when linked together into a Linux kernel module is the result dual MIT/GPLv2. CUDA++ builds no kernel
15module from them; it uses them as user-space interface definitions.
16
17 Copyright (c) 1993-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
18 (full MIT notice in each file and in COPYING)
19
20## 2. Mesa (NVK Vulkan driver and NAK compiler): facts cited in comments, no code copied
21
22Some comments in `src/` cite Mesa's open NVIDIA driver as the source of a hardware fact: instruction
23opcodes and bit positions (`nak/sm70_encode.rs`), instruction latencies (`nak/sm120_instr_latencies.rs`),
24the QMD layout (`nak/qmd.rs`), reconvergence scopes (`nak_nir_lower_cf.c`), the compute dispatch and
25cache-invalidate sequence (`nvk_cmd_dispatch.c`), the shader-heap prefetch note (`nvk_device.c`), and
26class method offsets (`clcec0.h`). The encoder, scheduler and command-list code in CUDA++ is my own;
27the latency values used by `src/omega_gpu_elementwise_api.c` were taken from Mesa's tables. These
28Mesa files are MIT (checked 2026-10-21 at gitlab.freedesktop.org/mesa/mesa, branch main, first lines of
29each file):
30
31 nak/sm70_encode.rs, nak/qmd.rs, nak_nir_lower_cf.c Copyright (c) 2022-2024 Collabora, Ltd. SPDX-License-Identifier: MIT
32 nak/sm120_instr_latencies.rs Copyright (c) 2025 Red Hat. SPDX-License-Identifier: MIT
33 vulkan/nvk_device.c, vulkan/nvk_cmd_dispatch.c Copyright (c) 2022 Collabora Ltd. and Red Hat Inc. SPDX-License-Identifier: MIT
34
35 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
36 associated documentation files (the "Software"), to deal in the Software without restriction,
37 including without limitation the rights to use, copy, modify, merge, publish, distribute,
38 sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
39 furnished to do so, subject to the following conditions: The above copyright notice and this
40 permission notice shall be included in all copies or substantial portions of the Software.
41 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
42
43## 3. Other open sm_12x work
44
45These projects map the same instruction set or the same driver interface in the open. Apart from the
46Mesa facts and latency values in section 2, no code or data from them is in CUDA++; they're listed so
47readers can find and compare them. Cross-checking CUDA++ against them is PROPOSED.
48
49 Mesa NAK SM120 encoder gitlab.freedesktop.org/mesa/mesa (src/nouveau/compiler) MIT
50 cubit github.com/kacper-daftcode/cubit MIT
51 blackwell-isa github.com/kacper-daftcode/blackwell-isa MIT
52 nvidia-sass-document github.com/cicuvc/nvidia-sass-document no licence shown
53 tinygrad NV backend github.com/tinygrad/tinygrad (tinygrad/runtime/ops_nv.py) MIT
54
55## 4. aien-gpu.ko interface header (first-party AIEN, separate licence, copied unchanged)
56
57`third_party/aien-gpu-abi1/aien_gpu_uapi.h` is the `/dev/aien-gpu` interface (compute ABI 1) of AIEN's own GB10
58kernel module, copied from aien-gpu commit `eab436b052d8cd92ec8d471bafe51e76c84b8b7b` (`kmod/aien_gpu_uapi.h`;
59sha256 in `third_party/aien-gpu-abi1/README.md`). It is `MIT OR GPL-2.0-only`, as its SPDX line says, so the
60module and user space can share it; the CUDA++ licence does not apply to it.
61
62## Public-source quotations
63
64`docs/PAIN_POINTS.md` contains attributed quotations from the public sources listed there. They remain third-party text; the repository license does not relicense them.
65
66## Not in CUDA++
67
68- No NVIDIA firmware, no libcuda, no NVIDIA cubin or fatbin, no PTX. The two cubins under
69 `evidence/MAX-INTEROP/68/` were written by CUDA++'s own cubin writer. The GPU's signed GSP firmware is
70 loaded by NVIDIA's kernel module from the system's own firmware folder; CUDA++ never ships it.
71- Some host tests print a listing through NVIDIA's `nvdisasm` when it happens to be installed, as a
72 cross-check. No listing made by NVIDIA tools is stored at the tip of `main`: #84 stored one
73 (`tests/device-trace/expected.sass`, an `nvdisasm 13.0` decode of the trace emitter's own words) and
74 #93 removed it; the runner now checks hand-written expectations. It remains in `main`'s history, and the
75 branch `recovery/orphaned-work-20261023-l755` holds ten more (`build-l478-decoder-green/*.nv`) plus
76 committed build outputs; that branch is not part of a release (CUDApp#89). An earlier file was kept out
77 of the history at extraction, see `docs/AUDIT.md`. `PROVENANCE.md` lists which sources and tools may be
78 used and records stored tool output. Listings under `evidence/` such as
79 `C5-ISOLATION/04-never-ending-kernel.sass.txt` come from CUDA++'s own disassembler (`tools/sm121dis`, C6).