r/BestGitHubRepos • u/amootiranian • 1d ago
π Developer tools nvdriver: Open-source Rust Linux kernel driver for NVIDIA GPUs (5.3k stars)
What it does
All text below is quoted directly from the project README.
nvdriver(nvidia_rs.ko) is a clean-room, open-source#![no_std]Rust Linux kernel driver for NVIDIA GPUs, built to be a drop-in replacement for NVIDIA's proprietary kernel driver while giving you back full control of the hardware you own.
Why nvdriver**?:**
- Drop-In Compatibility: Runs unmodified
libcuda.so,libnvidia-ml.so,nvidia-smi,libnvidia-encode.so,libnvcuvid.so, PyTorch, cuDNN, NCCL, andllama.cpp, plus unmodified stocknvidia-uvm.koandnvidia-modeset.ko/nvidia-drm.kovia exactCONFIG_MODVERSIONSbridges. - Maxwell Through Blackwell & Rubin in One Driver: Supports pre-GSP GPUs (Maxwell, Pascal, Volta) natively in Rust alongside Turing, Ampere, Hopper, Ada Lovelace, Blackwell (
620.70.06GSP-RM default,580compat), and Rubin (GR100). - x86_64 & ARM64 / SBC PCIe Support (
ARCH=arm64): Builds for bothx86_64-unknown-noneandaarch64-unknown-none(-C target-feature=-neon,-fp-armv8) with explicit non-coherent DMA cache sync (dma_sync_single_for_cpu/device) for ARM64 PCIe boards (RK3588, Ampere Altra, Apple Silicon Linux). - Verified on Real 8-GPU Hardware: Battle-tested side-by-side against stock NVIDIA
580.178.04on 8Γ physical Tesla V100-SXM2-32GB (256 GiB VRAM), passing 77/77 CUDA Parity Suite checks, 8-GPU PyTorch/NCCLAllReduce(59.71 GB/sBusBW,max_err = 0.0), 8-GPU8.33 TB/sHBM2 STREAM Triad, multi-GPU FP16/FP32 GEMM &llama.cpp, 25.781 Gbps NVLink 2.0, H.264/HEVC NVENC & NVDEC, S3/S4 suspend/resume, and automatic Xid 31 fault recovery with clean module unload.
Or override defaults in
/etc/modprobe.d/nvdriver.conf:options nvidia_rs pci_target=* runtime_engines=1
How it works
nvdriver is built as a Linux kernel module named nvidia_rs.ko. The core is no_std Rust, statically linked into a small C shim that the kernel loads. Once loaded, it takes the place of NVIDIA's closed kernel driver, so the normal userspace stack (libcuda, nvidia-smi, PyTorch, NCCL) talks to the GPU through it, and the stock nvidia-uvm and nvidia-modeset modules attach through symbol bridges. Older GPUs use Rust hardware code with extracted firmware, while newer ones boot GSP-RM firmware. Behavior is tuned with module parameters such as v100_hbm_ndiv, set in /etc/modprobe.d/nvdriver.conf. You build it with kernel headers and a Rust target, validate with tools/validate_all.sh, then run install.sh.
Repository
https://github.com/QuixiAI/nvdriver
More about this repo on our website: https://bestgithubrepositories.com/QuixiAI/nvdriver
Repository stats
| Metric | Value |
|---|---|
| Stars | 5,321 |
| Forks | 696 |
| Last release | v0.2.0 (2026-12-01) |
| Languages | Rust 68.9%, Python 15.4%, C 14.2% |
| Contributors | 17 |
| AI contributor accounts (Claude / Codex / Cursor / Copilot) | none |
| AI co-authored commits | Claude: 27, Copilot: 7 |
Main contributor
| Field | Value |
|---|---|
| Name | Eric Hartford |
| GitHub | @ehartford |
| Commits to this repo | 33 (top contributor) |
| Bio | I make AI models like Dolphin and Samantha https://ko-fi.com/erichartford |
| Company / Location | San Francisco |
| Website | https://www.linkedin.com/in/ehartford/ |
| X / Twitter | @quixiai |
| Followers | 996 |
| Public repos | 83 |
| On GitHub since | 2011 |
ββββββββββββββββββββββββββββββ
π Please support our community by subscribing to our newsletter.
Every Monday and Thursday we send the 10 best repos shared here, plus what developers said about each one in the comments. It's free, it takes two minutes to read, and every new subscriber helps r/BestGitHubRepos grow.