News for hackers. Stuff that matters.
Re:NVIDIA Transitions Fully Towards Open-Source Linux GPU Ke... by matheusmoreira on Thursday July 18, 2024 @10:16AM (#40995778)
Why is the user space component required? Won't they provide sysfs interfaces to control the hardware?
Re:NVIDIA Transitions Fully Towards Open-Source Linux GPU Ke... by cesarb on Thursday July 18, 2024 @10:27AM (#40995876)
It's something common to all modern GPUs, not just NVIDIA: most of the logic is in a user space library loaded by the OpenGL or Vulkan loader into each program. That library writes a stream of commands into a buffer (plus all the necessary data) directly into memory accessible to the GPU, and there's a single system call at the end to ask the operating system kernel to tell the GPU to start reading from that command buffer. That is, other than memory allocation and a few other privileged operations, the user space programs talk directly to the GPU.