Summary
- nvdriver v0.1 is an AI-assisted, reverse-engineered Rust NVIDIA kernel driver.
- It shows major compute gains on Tesla V100 (up to ~27% memory bandwidth, faster ML ops) but is tested headless only.
- It's not ready for display/gaming GPUs yet; a promising path, but many may distrust AI-made drivers.
Linux is becoming a real winner for gamers, but unfortunately, there's still trouble with Nvidia's drivers. While AMD users enjoy a fully open-source driver stack, Nvidia's have always been a bit more fickle and required extra work to get going.
Now, someone has released nvdriver v0.1, created by using AI to reverse-engineer the Nvidia drivers and rewrite them in Rust. And while the GitHub page claims some pretty good performance gains, there's still a long way for it to go.
nvdriver v0.1 is an AI-generated GPU driver for Linux
It was just released, too
As spotted by Phoronix, the project is called nvdriver and created by Eric Hartford. It's an AI-assisted, reverse-engineered Rust-based kernel driver for Nvidia cards, spanning from Maxwell to Rubin. It acts as a drop-in replacement, but it still relies on Nvidia's userspace libraries to work, like CUDA and nvidia-smi.
Unfortunately, nvdriver hasn't been physically tested on display-attached or gaming GPUs just yet; it has only seen use on headless datacenter compute and AI cards. So, while you can't slap this on your RTX and game with it today, it could build into something bigger down the line.
The creator has only tested it on Tesla V100-SXM2-32GB cards, but given that nvdriver automatically unlocks the GPU's memory clock from 877.5 MHz up to 1107 MHz, it outdoes the proprietary 580.178.04 driver in most of the project's own tests, largely thanks to that higher memory clock:
|
Benchmark |
Proprietary |
|
Delta |
|---|---|---|---|
|
PyTorch STREAM Triad (768 MiB) |
|
|
+26.8% (>1 TB/s!) |
|
HBM2 D2D Copy (512 MiB) |
|
|
+23.8% |
|
FP16 Tensor Core GEMM (8192³) |
|
|
+9.7% |
|
FP32 GEMM (8192³) |
|
|
+1.3% |
|
Memory-Bound LayerNorm + GELU |
|
|
1.23× faster |
|
|
|
|
+12.3% |
|
Transformer Layer Fwd + Bwd |
|
|
+2.7% faster |
|
CUDA Graph 50-op Replay |
|
|
95.0% parity |
|
PCIe Pinned H2D / D2H (256 MiB) |
|
|
100% parity |
|
2-GPU NVLink 2.0 |
|
|
+3.2% (25.781 Gbps) |
Of course, this begs the question: will people want to entrust their Nvidia drivers to an AI-generated project? On one hand, people may opt for human-made drivers to ensure nothing catastrophic happens to their PC; on the other, we've been seeing plenty of Linux projects adopt AI, including for the kernel itself.
Regardless, if you want to check it out, or perhaps even give it a try if you happen to have a spare Tesla V100 lying around (check the attic), head over to the nvdriver GitHub page.