The NVIDIA driver rewritten in Rust, with the locks removed

1 min read #Youtube #Linux #Opensource #Ai

Someone rewrote the Linux driver for NVIDIA graphics cards from scratch. In Rust, with no standard library, under the MIT license.

What it is

It’s called nvdriver (nvidia_rs.ko) and it runs CUDA, PyTorch, cuDNN, NCCL and llama.cpp unchanged, without touching NVIDIA’s userspace.

The locks it removes

The interesting part isn’t just the language: the driver removes the software locks NVIDIA uses to separate consumer cards from datacenter ones.

  • no block on PCIe P2P between GeForce cards;
  • Resizable BAR1 on by default;
  • NVENC with no session limits;
  • CMP mining cards unlocked for compute.

+26% bandwidth on the V100

On Tesla V100s it pushes the HBM2 memory from 877 to 1,107 MHz, the V100S factory spec: in the author’s benchmarks on 8 real V100s, bandwidth goes from 822 to 1,042 GB/s per card, +26% and over 1 TB/s.

A word of caution: so far it has only been tested on physical hardware on Tesla V100s; the other architectures (Maxwell to Blackwell) are only verified offline for now. But more than 3,000 GitHub stars in four days show how much people want back control of the hardware they bought.

Would you try it on your card? Tell me under the video.

Source: QuixiAI/nvdriver on GitHub (MIT license).