Not tested by me (is it safe?)
https://github.com/QuixiAI/nvdriver
(AFAIR Eric is an author of Dolphin models https://huggingface.co/ehartford)
I hope Take Two/Rockstar doesn’t shut them down… oh, wait… /s
(…) for Nvidia cards, spanning from Maxwell to Rubin (…)
nice comment on xda 2 days ago :
I’d rather have an AI generated open source driver, written in a language that checks itself to the point of being obnoxious to write in, than the closed-source shitware Nvidia calls a driver.
It’s easy to make something work when you don’t care what happens when it fails.
IMO this is where Rust shines. Error handling in Rust is much better than in C or C++, you cannot discreetly discard error types or ignore exceptions. You always have to be explicit (puting aside unsafe code). So if you focus on happy path first, your code will be full of
.unwrap()calls which are easy to patch afterwards.That’s great for the software side, but what about the hardware. I would be worried it’s running the chip too hard.
Eh, considering stock nvidia cards catching on fire at the power socket, how much worse could it be really ¯\_(ツ)_/¯
the AI rust rewrite was probably done in reaction to the “NVIDIA driver eating SSD incident” and I don’t see how a memory-safe/error-handling-safe language would have prevented an issue like that
Rust does not have better performance over C. The entire appeal of Rust is memory safety, which I would argue that GPU drivers don’t need as much as performance. This is all Hype-Slop.
I do appreciate that they’ve essentially open-sourced Nvidia’s proprietary driver, however.
Drivers absolutely need memory safety over performance. When drivers crash it’s much worse than when some random app crashes.
When you write drivers in C, it forces you to write them well. When you write them in Rust you lose both performance and a clean codebase.
When was the last time a GPU driver crashed on you in Linux? I have personally never experienced it myself, and I have been using Linux for almost a decade.
GPU drivers are some of the oldest and highest quality software we have. A Rust sloppified project is the antithesis of that.
When you write drivers in C, it forces you to write them well.
🤣 Oh my god…
When you write them in Rust you lose both performance and a clean codebase.
This is so ridiculous I’m assuming it’s satire.
The point isn’t that it’s Rust, the point is that the proprietary drivers put artificial performance restrictions in place which this gets around — real performance gains due to clock speed increase (and nvenc session number increase, among others).
If thats true, then it is great news. I would rather see these improvements be merged into the nouveau driver, rather than a rust sloppified project that will likely be abandoned in a year.
Go ahead and merge it, be the change you want to see in the world
While I think Nvidia drivers for Linux are shitty, I wouldn’t rush with this experimental drivers because these GPUs sometimes burn even with lower clocks 😅
I think they used Rust because it’s easier to deal for LLMs.
But there are some optimizations in Rust that are enabled by default due to borrow checker. For example, basically all variables are marked as restrict. In C nobody uses it because it’s too easy to get UB with this, but with Rust it’s free optimization. However, in Rust when you create arrays, they zero-initialized by default, while in C you can start with garbage and fill them later (you can skip zero-initialization with unsafe, but it’s rarely done).
Cool keyword thanks
yawn




