All News
nvidialinuxrustgpu-driversai-generated-code

A Rust rewrite of NVIDIA's Linux driver reports 26% more bandwidth. The clock did that, not the code

A clean-room Rust replacement for NVIDIA's Linux kernel driver reports 26% more memory bandwidth on Tesla V100. Its README names the clock cap as the source.

Vlad MakarovVlad Makarovreviewed and published
7 min read

A repository called QuixiAI/nvdriver appeared on 27 November: a clean-room Rust replacement for NVIDIA's proprietary Linux kernel driver, MIT licensed. Five days later it carried 3,882 stars, 458 forks, a Reddit thread with 1,443 points and a write-up on XDA, which credits Eric Hartford and notes that Phoronix spotted the project first. Two claims travelled with it, usually printed as one: that it is faster than NVIDIA's driver, and that an AI wrote it. Neither is false. Neither means what the reposts imply.

What the thing actually is

The module builds as nvidia_rs.ko in Rust without a standard library. It presents itself as a drop-in kernel-side replacement: NVIDIA's own userspace runs unmodified, including CUDA, PyTorch, cuDNN, NCCL, llama.cpp, nvidia-smi, NVENC and NVDEC, and the stock companion modules nvidia-uvm.ko, nvidia-modeset.ko and nvidia-drm.ko stay in place. That is the harder engineering claim of the two, because the vendor's binary stack never has to know it is talking to different code.

Beyond parity come liberties NVIDIA's driver either lacks or gates behind licences: Resizable BAR1 on by default, PCIe and BAR1 peer-to-peer, no NVENC session limit, no vGPU allowlist, compute unlocked on CMP mining cards, an opt-in Ada Lovelace tensor-core unlock, unprivileged profiling, a runtime ECC toggle. Each is a policy decision about hardware the vendor would rather segment, and each is documented in the project's parity notes.

The 26% is a clock divider, and the arithmetic says so

Headline numbers come from a benchmark table against NVIDIA's proprietary driver 580.178.04 on a Tesla V100-SXM2-32GB. Memory-bound throughput rises by roughly a quarter. Compute throughput barely moves.

BenchmarkNVIDIA 580.178.04nvdriverDelta
PyTorch STREAM Triad821.85 GB/s1,041.72 GB/s+26.8%
HBM2 device-to-device copy819.01 GB/s1,013.65 GB/s+23.8%
FP16 Tensor Core GEMM97.69 TFLOPS107.17 TFLOPS+9.7%
FP32 GEMM14.18 TFLOPS14.37 TFLOPS+1.3%
llama.cpp prompt eval, pp51231,067 tok/s34,884 tok/s+12.3%
CUDA Graph replay, 50 ops76.17 us80.20 us95.0% parity
Pinned PCIe H2D / D2H12.39 / 13.16 GB/s12.40 / 13.16 GB/sparity

The multiplier explains it. nvdriver raises the HBM2 memory clock from 877.5 MHz, where NVIDIA's driver caps it, to 1107 MHz, the frequency V100S shipped with. That ratio is 1.2615. Measured STREAM bandwidth rose 26.8%. When a software change produces exactly the number a clock change predicts, the honest description is that it removed a limit, not that it moves data more efficiently.

Look at the rows where engineering would have to show up. FP32 GEMM improves 1.3%, which is noise with a decimal point. CUDA Graph replay, the measurement most sensitive to scheduling and launch overhead, sits at 95% of the proprietary driver. Pinned PCIe copies are level. Where NVIDIA's kernel code does real work rather than enforcing policy, this driver is about as good; one memory-bound LayerNorm+GELU kernel dropped from 2.612 to 2.126 milliseconds, a genuine but modest gain.

None of that makes the unlock worthless: 26% more bandwidth on hardware you already own is a real result if it holds. It is not evidence of a better-written driver.

The README reports its own failure first

Below the benchmark table is a field report the maintainers chose to publish. On a V100-PCIe-32GB, a user saw inference hangs and NaN outputs at 1107 and 1053 MHz, including with the divider set at module load. The same machine ran the workload at stock clocks without incident. The README says results vary by card and links the issue.

That is the setting responsible for the headline speed-up. The failure is not in the Rust path, which either works or does not; it is in pushing a memory clock past where a board is stable, and the symptom is silent numerical corruption rather than a crash. The mitigation is decent: the clock divider is a runtime-writable module parameter, so an operator can step down to 1080, 1053 or stock 877.5 MHz. The burden of finding instability lands on whoever runs the workload, and NaNs in a training run can cost a day of debugging before anyone suspects the driver.

Eight identical cards is not a fleet

Physical verification is far narrower than the feature list. The README says the driver was battle-tested on eight Tesla V100-SXM2-32GB cards, 256 GiB of HBM2 in total, all headless datacenter compute, reaching 8,334.1 GB/s aggregate STREAM Triad and 59.71 GB/s of NCCL AllReduce bus bandwidth. That is a respectable rig. It is also one GPU model, one board design, one workload shape and no monitor.

Everything else is emulator work. Maxwell and Pascal are implemented and Unicorn-verified offline, awaiting physical silicon. Turing through Rubin is GSP-RM wired and verified offline, awaiting physical silicon. An emulator runs firmware; it does not tell you what a card does under load, at temperature, across a suspend cycle, or with a display attached. XDA's coverage adds the obvious consequence: no gaming GPUs, no display-attached machines.

So "an AI rewrote NVIDIA's driver" describes what generated the code, not what has been run. Authorship and validation are separate axes, and this project sits far along one and barely onto the other.

What 3,882 stars actually measure

The Reddit thread that pushed the project into view is instructive for its skepticism. The poster, u/jacek2023, wrote that he had not tested it and asked whether it was safe. The most repeated objection was not about any specific card but about the economics of reviewing machine-written kernel code: one highly rated comment said the author would not be surprised if it beat the company driver, but would be wary of using it, because reviewing and testing is the hardest part of AI-generated work. Another asked who would maintain it.

The repository implicitly concedes the point. The README asks for co-maintainers and ships a 115 KB HANDOFF.md, a size that measures how much context lives outside the source tree. Stars and forks are attention and intent; neither reviews a memory clock path.

Who should touch this, and when

If you run headless V100s and can validate per card, the unlock is worth one node's benchmark run, with the divider treated as a production setting rather than a default. The 12.3% llama.cpp prompt-evaluation gain is the kind that shows up in serving numbers, not only in synthetic ones.

For a workstation, gaming card, laptop or anything with a monitor attached, the repository's status lines say wait. Turing through Rubin exists as code verified against firmware in an emulator: a starting point for testers, not a driver to install before a deadline. No physical test above Pascal is the largest unknown, and it covers the hardware most readers own.

What would change the verdict is unglamorous: independent runs on several V100 board variants, one Turing or Ada desktop with a display, and a review of the memory clock and ECC paths by people who did not write them. Hartford asking for co-maintainers is the same request in other words. Until then, the accurate summary is that a small team plus AI produced a working kernel driver for one generation of datacenter silicon, that it buys about a quarter more bandwidth by removing a vendor cap, and that NVIDIA's refusal to let anyone touch that cap is why the result exists. The 3,882 stars measure how badly people want an open driver. They do not measure whether this one is ready.

Related Articles

Scroll down

to load the next article