• Sickday@kbin.earth
    link
    fedilink
    arrow-up
    22
    ·
    22 hours ago

    sort of. nvidia open-sourced the kernel modules, so userspace libs like cuda, opengl, vulkan, etc. are all still closed. also nvidia’s open sourced kernel modules only work on Turing+ chips. nvidia probably open sourced the kernel modules because all the juicy logic was moved to the GPU System Processor (closed sourced CPU built into the Turing+ cards).

    The current nvk is mostly a small layer that can talk to the newer GSP. Older cards like Maxwell-era dont have a GSP so the nvk driver doesn’t really apply to them. They still use the closed nvidia.ko blob. nvk itself is a userspace mesa driver though and it runs on nouveau and doesn’t use even use nvidia’s open modules.

    this nvdriver is a clearly reverse engineered “clean room” rust impl of nvidia’s closed kernel module (nvidia.ko). its able to run stuff like libcuda, nvidia-smi, probably even llama.cpp and PyTorch. it’s also doing shit like removing product limits for crytpo miners and vgpu allow-lists. to me, it looks like they’re trying to do this specifically for cuda stuff though. Will it work with nvk? not sure I haven’t spent enough time looking at it to know.

    also anyone more knowledgeable feel free to correct me. this is just cursory glance info so I could be off on my assessment of the repo

    Edit: got a good look. How the fuck is this clean room?? they’ve got their agents using rea in almost every part of the first step lol.

    • ffhein@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      7 hours ago

      How the fuck is this clean room??

      I don’t know if this is how they actually do it, but AFAIK all that is needed to qualify as “clean room” is that the output of those tools is only used to write a specification of how the driver works. And then a different developer/agent, who has never seen Nvidia’s copyrighted code, writes the new driver only based on that specification. The loophole being that the specification your first developer wrote is not copyrighted