INTERPLANE

Breaking the CUDA lock

Reverse Engineering the CUDA Software Stack: An Independently Implemented GPU Machine-Code Toolchain for the NVIDIA GB10

Drake Stapleton2026-10-26preprintZenodo

CUDA++, a research-stage GPU machine-code toolchain and runtime for the NVIDIA GB10 that runs demonstrated workloads without NVIDIA's proprietary CUDA user-space compiler, runtime, driver library or mathematics libraries.

Read at the DOIBibTeXJSON

Ask about this work

Or what evidence supports it?what are its stated limits?

Abstract

I describe CUDA++, a research-stage GPU machine-code toolchain and runtime for the NVIDIA GB10 in a DGX Spark. It provides an execution path for demonstrated workloads without NVIDIA's proprietary CUDA user-space compiler, runtime, driver library or mathematics libraries. It is not a drop-in implementation of the CUDA language, APIs or library ecosystem. The path still uses NVIDIA's open Linux kernel modules and signed GPU firmware. I built the first-party implementation by directing AI coding agents, using public interface headers, vendor tools applied offline to my own probe kernels, Mesa's NAK/NVK sources, published technical references and hardware experiments. The implementation includes a driver client of about 900 lines, a kernel builder with 59 intermediate-representation instruction kinds, register allocation and direct launch-descriptor construction. Archived results include exhaustive GPU/CPU-sequence parity for nine declared FP32 operations, a 1,048,576-element vector-add run whose code and output hashes match its host-simulator record, and a live 35B model-serving process with no matched CUDA-library mappings. Numerical parity is distinct from correctly rounded mathematics: the contracts include error bounds and a restricted SIN/COS domain. Model-output evidence is limited to specified prompts and includes a known near-tie token difference. Throughput and launch timings are reported as workload-specific observations, not physical ceilings. This revision corrects the earlier scope, runtime-gating and evidence terminology; distinguishes historical results from the October 26 source snapshot; and identifies missing M16 raw logs that prevent full re-audit of that qualification. No new hardware measurements are introduced. What changed from version 1. Version 2 narrows the scope to a research-stage execution path for demonstrated GB10 workloads (not a drop-in CUDA replacement), separates numerical bit parity from mathematical accuracy and lists the declared error bounds, distinguishes ELF, process-map and optional submit checks, labels every quantitative claim by evidence class (MEASURED, REPORTED or DERIVED) with its artifact, states the missing M16 raw logs and the dirty-tree bandwidth run, separates the historical MIT licence from the later Apache-2.0 WITH LLVM-exception snapshot, and pins every cited file to a public commit. No new hardware measurements were made and no binaries were rebuilt. Version 1 (10.5281/zenodo.23578453) remains the historical record. Corrections to version 1. "Clean-room". Version 1 called the work a clean-room replacement. No clean-room process was certified, and the work used NVIDIA's open kernel-module headers, NVIDIA's compiler and disassembler applied offline to the author's own probe kernels, and Mesa NAK/NVK sources as references. Version 2 says "independently implemented" and lists these sources. "Signed chip receipts". The receipts are SHA-256 integrity hashes, not signatures. Version 2 calls them hash-addressed receipts. "Output identical to an exact host reference". Three prompts match 32 of 32 token IDs; the fourth matches 31 of 32, with one near-tie difference inside a fixed 0.1-logit band, and its receipt records golden_identical: false. A separate HTTP check matches 24 of 24. Measured "ceilings" of 115.14 TFLOPS and 195.1 GB/s. These are achieved probe throughputs, not ceilings. The same bandwidth log records 207.7 GB/s for a larger working set, and that run had a modified working tree (dirty=3). Launch cost of "about 24 to 31 microseconds". The 24.18 µs value came from run 1, whose verdict is FAIL. The passing run 2 gives 25.09 to 31.97 µs per added launch with wait-for-idle barriers and 2.68 to 9.68 µs without barriers. Use of AI tools. Drake Stapleton directed this work and is responsible for its content. AI coding agents (Anthropic Claude, OpenAI Codex, xAI Grok and Google Gemini models) wrote most of the first-party code and ran the hardware measurements under his direction. AI writing assistants, including Anthropic Claude models used through the omp agent harness, drafted and revised the text under his direction. Every number is tied to a public log, commit or pull request listed in the paper. Files: cudapp-paper.pdf (the paper), cudapp-paper.tex (its LaTeX source), CHANGELOG-v2.md (revision notes).

Cite

Drake Stapleton (2026). Reverse Engineering the CUDA Software Stack: An Independently Implemented GPU Machine-Code Toolchain for the NVIDIA GB10. Zenodo. https://doi.org/10.5281/zenodo.23578452

DOI, all versions
10.5281/zenodo.23578452
DOI, this version
10.5281/zenodo.23677465
License
cc-by-4.0
ORCID record
listed

Versions

  1. 12026-10-2210.5281/zenodo.23578453
  2. 22026-10-2610.5281/zenodo.23677465

Connected work

Files

Keywords

GPU computingreverse engineeringmachine-code generationdevice driversCUDABlackwellreproducibility