Guidance on NVIDIA GPU compute support for a custom operating system

Hello NVIDIA Developer Community,

I am working on a personal research project involving a custom operating system built from scratch.

I would like to understand whether it is technically and legally possible to develop NVIDIA GPU support for such an operating system, with a focus on compute workloads, not graphics, display output, gaming, OpenGL, or Vulkan.

My goal is not to bypass NVIDIA’s official driver stack, decompile proprietary binaries, modify NVIDIA software, or violate any licensing rules. I want to understand the correct and permitted path before going deeper.

My main questions are:

  1. Is there any officially supported or documented path for using NVIDIA GPUs for compute workloads on a custom operating system?

  2. Can CUDA or any NVIDIA compute-related API be used outside supported operating systems such as Windows or Linux?

  3. If a custom OS wants to support NVIDIA GPU compute, what are the recommended starting points or required layers to study?

  4. Are the NVIDIA Open GPU Kernel Modules, CUDA documentation, CUDA Debugger API, public headers, or developer tools suitable references for learning within NVIDIA’s allowed usage terms?

  5. What should a developer avoid in order not to violate NVIDIA licensing, reverse-engineering restrictions, or developer program rules?

  6. Is there any NVIDIA program, documentation area, SDK, or forum category better suited for this kind of low-level operating-system research?

To be clear, I am asking for guidance on the proper technical and legal boundaries. I want to follow the correct path and avoid anything unsupported or prohibited.

Any official direction, documentation references, or recommendations would be greatly appreciated.

Thank you.

I am not working at Nvidia, so just a question for clarification: You directly want to use a PCIe card in the system, as it may also be possible to indirectly connect independently running Nvidia compute hardware, e.g. a Jetson or a Bluefield system. In the latter case it could be connected with USB, Ethernet or PCIe.

Are you willing or allowed (GPL) to use parts of Linux (e.g. parts of the kernel)?

Thank you for the clarification.

My primary question is about directly using an NVIDIA PCIe GPU inside the machine running the custom operating system.

The long-term goal would be to understand whether a custom OS could eventually support NVIDIA GPU compute directly, without Windows or Linux acting as the host OS.

However, I am also open to understanding the alternative architecture you mentioned: using an independently running NVIDIA compute device, such as a Tegra/Jetson-like system, and communicating with it from the custom OS as an external compute node.

So I would separate the question into two cases:

  1. Direct path: custom OS running on the main machine, directly accessing an NVIDIA PCIe GPU for compute.
  2. Indirect path: custom OS communicating with a separate NVIDIA compute system that runs its own supported NVIDIA software stack.

My main interest is to know which of these paths is technically realistic, officially supported, or legally safer, and what NVIDIA documentation or developer resources should be studied for each case.

I am not trying to bypass NVIDIA’s driver stack or reverse engineer proprietary binaries. I am trying to understand the correct architecture and boundaries before going deeper.

Thank you.