interplane.Get Omega
Read in your language

cuda-crack

I broke CUDA: GB10 sm_121 machine code without the CUDA toolkit - method, encoder tables, receipts

Brought by drakestapleton

branch main Branches Tags History

cuda-crack / FIELD-MANUAL.md

343 lines · 17760 bytes Raw Blame History Source

Field manual: running the DGX Spark (GB10) without the CUDA stack

Each finding gives the symptom, what the documents say, what I measured and with which label, the fix, and where to reproduce it. These are the findings that cost me the most time.

Repositories:

Labels say where the evidence came from:

Lifecycle words are separate from labels: IMPLEMENTED means written, EXERCISED means run. A label is not a production qualification.

RECEIPT PENDING means the finding is real in my notes, but its receipt is not public yet. Treat it as unverified until the receipt is attached.

NVIDIA documents are linked, never copied:


1. The machine

F1. The GB10 is sm_121, not datacenter Blackwell

F2. One 128 GB memory pool; "Memory-Usage: Not Supported" is normal

F4. C2C (345 GB/s per direction) is wider than DRAM (273 GB/s)

F5. NVIDIA's own documents disagree

F6. No C2C performance counter is exposed

F8. CPU first-touch latency ladder

F9. cudaMemGetInfo can under-report free memory

F10. The GPU identifies as PCI 10de:2e12 "NVIDIA GB10", sm_121

2. Driving the GPU without libcuda

F11. Everything goes through ioctls on three device files

F12. The open sequence is 11 steps

F13. Three classes, and a one-store doorbell

F14. The driver ABI is pinned to open module 580.173.02

F15. The driver client is about 900 lines of C

F16. The launch order comes from Mesa NVK

F17. The cost of an extra dependent launch

3. Memory and cache: the trap that cost two days

F18. GPU-cached system memory is not coherent with CPU mappings

F19. Words the CPU polls must be GPU-uncached

F20. The proven release sequence

F21. Stale L2 after the CPU rewrites a buffer (open hypothesis)

F22. "Full cache coherency" means the fabric, not GPU L2 (interpretation)

F23. My runtime refuses a cached host-polled buffer

F24. After one uncertain completion, stop submitting

4. Machine code

F25. SASS encodings are not published, so I recovered them

F26. Instruction size and encoder scope

F27. Reconvergence: BSSY/BSYNC

F28. The tensor-core BF16 MAC model; SFU flushes subnormals

F29. FP32 transcendentals match on all 2^32 inputs

F30. The Omega encoder and the C encoder are byte-identical

5. Limits

F31. The GSP firmware stays NVIDIA's

F32. The GSP boot sequence and RPC table

F33. My replacement for nvidia.ko has not run on the GB10

F34. What other DGX Spark owners report