Not tested by me (is it safe?)
https://github.com/QuixiAI/nvdriver
(AFAIR Eric is an author of Dolphin models https://huggingface.co/ehartford)
Not tested by me (is it safe?)
https://github.com/QuixiAI/nvdriver
(AFAIR Eric is an author of Dolphin models https://huggingface.co/ehartford)
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.
Beating the original driver isn’t hard though. It’s known that Nvidia doesn’t care about Linux and has extremely shitty drivers.
Meanwhile AMD embraces their opensource driver and works with the community to make it better.
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.
🤣 Oh my god…
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
Can’t just merge rust with c code
However, if you merge Rust with C and Python, you get delicious, flaky PyCRust
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