hn.today

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

github.com939 points465 comments
Screenshot of Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

Nvdriver is a clean-room, open-source Linux kernel driver written in no_std Rust, intended to replace NVIDIA’s proprietary kernel module while working with existing NVIDIA software and companion modules. Its stated compatibility includes CUDA, PyTorch, cuDNN, NCCL, llama.cpp, nvidia-smi, video encoding and decoding, and stock UVM, modeset, and DRM modules. The project’s central argument is that a user-controlled driver can preserve this software compatibility while removing product-tier restrictions imposed by NVIDIA’s closed driver. It lists PCIe and BAR1 peer-to-peer transfers, Resizable BAR1, GPUDirect RDMA, unrestricted NVENC sessions, hardware profiling, and certain virtualization features among its unlocks. It also describes support for x86-64 and ARM64, and for GPU generations from Maxwell through Rubin, though the verification status varies: V100 hardware is reported as tested, while several other families are marked as implemented and offline-verified but still awaiting physical testing.

A major focus is Tesla V100 performance. The driver raises the HBM2 clock from the reported stock limit of 877.5 MHz to 1107 MHz, and adds dynamic GPU clock boosting and live telemetry. The repository reports tests on eight V100 cards, including aggregate memory bandwidth of about 8.33 TB/s, 776 TFLOPS of FP16 GEMM, and large-scale PyTorch and llama.cpp workloads. It also publishes comparisons showing parity or gains over the proprietary driver on selected workloads, while pinned PCIe transfers are effectively equal. Building requires Linux kernel headers and a Rust toolchain; validation scripts cover tests, QEMU, and kernel-hygiene checks. Some clock and voltage settings are tunable, making the project relevant to developers and operators seeking control over GPU features and performance, but its hardware support and benchmark claims should be assessed by device and workload.

Read on github.com465 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.