# nvdriver — clean-room Rust Linux kernel driver for NVIDIA GPUs

> A Rust kernel driver that aims to replace NVIDIA's proprietary Linux driver without changing CUDA software.

- Org: QuixiAI
- Date: 2026-11-30
- Category: repo, tool
- Source: https://github.com/QuixiAI/nvdriver
- Canonical page: https://ai-tldr.dev/releases/quixiai-nvdriver/

## In short

nvdriver is an open-source, no_std Rust Linux kernel driver for NVIDIA GPUs. It claims to work under unmodified CUDA, PyTorch and llama.cpp, and is verified on eight Tesla V100 cards so far.

## What it is

nvdriver is a Linux kernel module, nvidia_rs.ko, written in Rust as a clean-room replacement for NVIDIA's proprietary kernel driver. The project says CUDA, PyTorch, cuDNN, NCCL, llama.cpp and nvidia-smi run on it unmodified.

## How it works

A pure no_std Rust core is statically linked into a minimal C shim that the kernel loads. The author reports using reverse engineering, including disassembly, rodata tables and struct offsets, and removes limits such as PCIe/BAR1 peer-to-peer restrictions and vGPU licensing checks.

## Why it matters

Linux GPU users have long depended on a closed kernel driver. This project shows a Rust alternative working on Tesla V100 servers, with higher reported memory bandwidth and llama.cpp speed. Support for newer GPUs is still unproven on real hardware.

## Who it's for

GPU server operators and kernel developers

## Try it

git clone https://github.com/QuixiAI/nvdriver && sh nvdriver/tools/validate_all.sh

## Quick facts

- Maintainer: QuixiAI
- Language: Rust (no_std core plus C shim)
- Module: nvidia_rs.ko
- Verified on hardware: 8x Tesla V100-SXM2-32GB, 77/77 parity checks
- Other GPUs: Maxwell to Rubin verified offline only
- Not supported: Tegra SoCs (Jetson Orin, Thor)

## FAQ

### Which GPUs has nvdriver been tested on?

nvdriver has been tested on physical hardware only on Volta, specifically eight Tesla V100-SXM2-32GB cards compared with the stock 580.178.04 driver. Maxwell, Pascal and Turing through Rubin support is verified offline and still awaits real silicon, according to the project's README.

### How fast is nvdriver compared with NVIDIA's driver?

The nvdriver README reports, on V100 against the stock driver, PyTorch STREAM Triad rising from 821.85 to 1,041.72 GB/s, FP16 Tensor Core GEMM from 97.69 to 107.17 TFLOPS, and llama.cpp prompt evaluation from 31,067 to 34,884 tokens per second. These are the project's own numbers.

### What license does nvdriver use?

The nvdriver README does not name a license for the project itself. It mentions a licenses folder and a NOTICE file, and notes that some credited upstream projects are MIT-licensed. Check the repository directly before reusing the code.

### Is nvdriver safe to install on a production machine?

The nvdriver project documents a VFIO guest runner so you can test the driver in a virtual machine first. It lists known limits: GV100 clocks are capped by default, and non-Volta and display-attached GPUs are not yet validated on hardware.

## Links

- [GitHub Repo](https://github.com/QuixiAI/nvdriver)
- [Hacker News Thread](https://news.ycombinator.com/item?id=50698903)
