logoalt Hacker News

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

163 points • by rreyes1979 • today at 12:24 PM • 134 comments • view on HN

Comments

diydsp • today at 1:21 PM

Having worked briefly on GPU drivers (amd ex-ati) I'm curious how this can be done. There were myriad details inside that code that related directly to particular controls deep in the basics (micro cache enables, chicken bits, N-1 toggles, memory access radices, etc). Many of them were set once, not dynamically. And clearly not documented anywhere outside HQ. And almost none had a visible effect...until a long chain of operations caused a fantastic crash, or trivial one. Experienced people spent months with the manual, fancy tooling, and the hdl and the designers downstairs to get it shippable and then time was spent after shipping.

I would say you can scan 100s of games to see how they operate the hw...but many games have individual engs assigned to work w game devs to hash out configs down long trees of operations... this feels like learning Chinese with almost no feedback. There are so many parts/corners of the internals that get manipulated.

I could see moving from "one clone of every apps' code" to "common parts distilled," but what are the chances it could be reliable with code it hasn't been trained on that uses a novel feature?

➕ show 5 replies
mootothemax • today at 1:12 PM

All of my Christmases have come at once!

A while back I built up a 4u supermicro system with 8x GV100 32GB cards in it, plus a bunch of power, RAM and disk.

It is the single noisiest server I've ever encountered. Even by server standards, it sounds monsterous, and I feel sorry for my neighbours sitting inside other buildings when it's first starting up.

Noise aside, it's been an absolute blast to test and experiment with, but the GV100 limitations have been extremely painful to live with, and it _sounds_ like this project makes all of that disappear. I will report back... eventually.

➕ show 2 replies
mattr03 • today at 12:59 PM

Genuine question: how can you claim your code is a clean-room re-implementation when you're using LLMs?

➕ show 9 replies
ttul • today at 1:51 PM

Frontier LLMs are extremely good at hill-climbing tasks like this, where the outcome is fully measurable (e.g. full parity with an existing kernel module’s behavior and interface).

For the last week, I’ve had a swarm of agents working on a new Rust back-end for T3 Code. It reached full parity quite rapidly and the last ten days have been spent finishing off the edge cases that are encountered rarely in real use. The Rust version loads 22x faster, uses 11x less RAM, and blows away the Typescript original (already no slouch) on nearly every metric.

But, toppling Nvidia’s ivory tower? That’s impressive AND useful!

➕ show 1 reply
faldore • today at 1:15 PM

Eric Hartford (QuixiAI) here, author of nvdriver. Happy to answer any questions.

➕ show 5 replies
coldblues • today at 2:10 PM

Lots of peeps in this thread talking about the legality of clean-room.

I'm a proponent for abolishing intellectual property altogether.

https://cdn.mises.org/Against%20Intellectual%20Property_2.pd...

MitPitt • today at 1:00 PM

Proprietary drivers were a problem for running consumer-tier Nvidia GPUs (like RTX series) in datacenters. Open-source drivers will make renting compute cheaper, hopefully.

➕ show 3 replies
LastTrain • today at 2:10 PM

Can an AI driven, or even AI assisted project be considered clean really room?

samiv • today at 1:24 PM

Why not put your effort into noveau?

➕ show 1 reply
tuananh • today at 1:48 PM

anyone tries it yet? is the number claimed in the readme correct?

nonestdeus • today at 1:10 PM

Looks cool, but I'll wait for some tech youtubers to test it first.

xorcist • today at 1:16 PM

An extremely verbose project description yet no mention of other nVidia drivers such as Nova. How are the goals and/or implemention different?

rickdeckard • today at 1:56 PM

"clean-room" usually defines two distinct isolated teams, one to document the implementation of a product, and another one to implement it based on that documentation.

A very odd idea if both roles are taken by an AI agent:

1. Decompile driver, translate machine code into human language.

2. Translate human language back into code.

3. Test against original driver, restart at #1 if error

It's more like a sport.

Like asking Agent #1 to only use animal sounds to instruct Agent #2 and then compare how well the result matches the source...

EmmEff • today at 1:39 PM

Port to macOS and get native NVIDIA support (for select cards...) back? ;)

➕ show 1 reply
silentkat • today at 1:39 PM

Ah, "clean room". The new "No copyright infringement intended".

forgotpwd16 • today at 1:34 PM

Great if actually works. (Because tbh I don't trust much AI-written READMEs.)

verti • today at 1:27 PM

blows my mind how people can make a README.md that looks like absolute slop (with generated banner as well) made of huge walls of almost incomprehensible walls of text and make it public.

"read me" suggests it's all important information i should know, but how is: >zero GOT relocations, zero SIMD/x87, zero memcpy/memset/memmove, zero unwind sections, every stack frame <= 1,024 bytes important to me that i HAVE to read this?

➕ show 2 replies
thatsabadlook • today at 1:23 PM

This is going to be one of those projects where the downsides become immediately obvious to anyone who tries to actually depend on this isn't it? Solo author LLM repo, scant details on support, etc

It's something we all want. But it sounds too good to be true doesn't it?

➕ show 2 replies
Starlevel004 • today at 1:23 PM

Obvious vibeslop but I don't even care. If it lets me use my old-ass Pascal card at proper speeds without all the buginess of the 580 driver I'll take it.

➕ show 2 replies
throw1234567891 • today at 1:03 PM

MIG? No. Still needs a license.

paaloeye • today at 1:31 PM

I'm so tired of those so-called clean room Rust projects on the front page. Can't even be bothered to open it tbh.

➕ show 1 reply
m00dy • today at 1:04 PM

.

➕ show 1 reply