Unofficial Hacker News client - receive Push Notifications on replies.

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs (opens external site)

884 points by rreyes1979 21 hours ago | github.com | 437 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (41)

  1. Eric Hartford (QuixiAI) here, author of nvdriver. Happy to answer any questions.
    Replies (11)
    1. From a former GPU wrangler: Congrats on your first release!
      Replies (1)
      1. thank you Mr. David!
    2. This submission is an hour old, there are tons of questions around in the thread already, why not answer the existing questions instead of creating a new sub-thread?

      I see this in lots of posts. The submission is N hours old, then someone related to the company pops up, ignores all existing posts but creates their own comment asking for feedback, more people ask the same questions, some gets answered, more gets ignored. Why not just answer existing questions instead?

      I'm more confused about this than anything else, doesn't really hurt anyone, but gets worse when questions gets asked multiple times in different places because of this.

      Replies (1)
      1. It's much more practical to monitor one thread for new questions than to monitor all of them.
        Replies (1)
        1. They just have to monitor one more level of the tree. It's not that hard.
          Replies (1)
          1. Many of the things in that level are not a question and therefore you are asking them to do extra labour for no real reason. I'm acknowledging the irony that this subtree is also not really a question.
            Replies (1)
            1. There weren't so many comments back then; it's ok to ask to post new questions under your own comment, but it wouldn't have taken that much time to also answer the existing ones
    3. Do you intend to add the hardware hacks for others in the series like Pascal (e.g. the HBM2 one)?

      Also thanks, you're doing God's work making sure there's a future for old data centre GPUs in a world where modern GPUs are artificially constrained by price, availability and abandoned support.

      Replies (1)
      1. I've added all the hacks I'm aware of - If I've missed any, give me links, happy to add it!
        Replies (1)
        1. I'd assumed the V100 HBM2 memory clock could be backported, that the earlier Tesla series would have the same capability.
    4. As several others already said, how can you call it clean-room when it was made by reverse-engineering Nvidia drivers?
      Replies (2)
      1. Reverse engineering and clean-room development aren't mutually exclusive. Reverse engineering, including decompilation, can be part of a clean-room process. The relevant question is whether there's sufficient separation between the analysis of the original implementation and the development of the replacement, not whether reverse engineering occurred at all.
        Replies (1)
        1. So did you have one team reverse engineer the drivers, write a specification and have a completely separate team build software based on that specification?

          Who were in the two different teams? How did you ensure separation?

          Replies (4)
          1. These are very valid questions.
            Replies (1)
            1. For Claude, I guess
          2. Two different sandboxed AI agents who went to the same university (training data), instructed not to talk directly to each other
            Replies (2)
            1. Except they do talk to each other one-way and no one's checking what they're saying

              Continue this thread (1 replies) →

            2. In this case it's not even that, from its AGENTS.md every function is reverse-engineered, and the same agent (supposedly) reimplements it again.

              Besides it being the same agent with all the reverse-engineering context still there, reverse-engineering always means "inventing" code akin to the original source code, this methods basically just uses a second shot of inventing that code.

              And it might well be that there's not even this attempt of indirection: the instructions say "REA the exact algorithm step-by-step for each function" and then "Implement the full algorithm faithfully".

              Will the agent interpret the first step as writing the algorithm in pseudo-code, or will it use an actual programming language?

              If it's the second case, the succeeding step might well reuse the output of the first step directly.

              But most of all, to my understanding clean room requires extracting a higher level specification to reimplement, and your code must not be influenced by the original product's implementation details; re-implementing each function faithfully, yeah, doesn't exactly abide by these rules...

          3. > one team ... separate team

            Claude and ChatGPT working in separate directories ;-)

          4. What is software, if not a very precise specification?
            Replies (1)
            1. A specific implementation of a precise specification, with lots of arbitrary choices; which are, I believe, what makes it literary work that can be afforded copyright protection.
      2. By the way, the Nvidia terms that you accepted if you downloaded the driver forbid reverse engineering; and in any case, the drivers are likely to be employing some patent, for which even a true, legal, clean room process would require a grant.
    5. How do real time graphic api support factor into this 'driver', like DX and Vulkan?
    6. Does the P2PDMA mean I can pull weights off of an nvme array straight into VRAM without crossing RAM/CPU? Does this unlock SR-IOV/vGPU on cards that don't expose it normally or just remove licence checks?
    7. How do you define "clean-room"? It appears that you started by decompiling the existing driver, which is almost the exact opposite of clean-room. The exact opposite would be having access to the original source code, but this is pretty close.

      I would describe this approach as reverse engineered rather than clean room. Maybe just semantics here, but why add the clean room labelling if not to imply that it uses no NVidia IP?

      Replies (1)
      1. Would be fairly trivial with LLMs no?

        Hey Claude, decompile this driver and write a detailed spec of how it works. Don't include any code.

        Hey codex, write a driver based off this spec.

        Replies (2)
        1. What exactly would be fairly trivial? To make it hard to prove that the implementation was not clean-room safe?

          In that case, sure, I guess, but the question is what are we trying to do here. If the goal is just to evade a takedown notice because of IP infringement, this makes it harder to obtain evidence that there was IP infringement.

          If the goal is to actually not engage in any IP infringement, then you have to not decompile.

        2. No. Clean room engineering means that the team implementing the thing are, to quote Wikipedia, “demonstrably uncontaminated by any knowledge of the proprietary techniques used by the competitor”. You can make no such guarantee with an LLM that has been trained on unknown sources.
    8. tough crowd?

      amazing work, thank you for sharing!

      Replies (1)
      1. If you're used to Twitter/reddit where 90% of the "feedback" someone receives is "Wow, cool work, thank you author!" and similar empty platitudes, I know I much more prefer HNs way of providing actual feedback instead of just "happy vibes", since I want to actually improve.
        Replies (1)
        1. Are you open then to feedback on your message to me?
    9. How did you do this?
    10. I don't see any mention of GB10, so will trial it out on the Sparks we run at https://enverge.ai. Unsure what kind of improvements to expect though.

      [disclaimer: I'm one of the co-founders]

    11. Are there any technical limitations that limit the reverse engineering to Maxwell and later, or could it also support Kepler in the future?