Skip to content
IJK

GPU Fractions in Kubernetes: Roles of CUDA, Operator and Scheduler

By IJK ·

What NVIDIA's post says CUDA, the gpu-fractioning operator and the scheduler each provide for memory-enforced GPU sharing in Kubernetes.

What CUDA provides and what it does not

CUDA provides the memory enforcement capability, but a Kubernetes cluster can’t use it on its own. [1]

NVIDIA GPUs already support several approaches to sharing. [2]

annotationsusesSchedulerselects the GPUs and records the allocation in Po...gpu-fractioning operatorenforces the annotations on the nodeCUDAprovides the memory enforcement capability
Which component selects the GPU, which writes the annotations and which enforces them?

Where gpu-fractioning and the scheduler fit

A new open-source Kubernetes operator, gpu-fractioning, is hosted under the KAI Scheduler organization on GitHub. [3]

It runs next to the NVIDIA GPU Operator, which provides the driver and the container runtime setup. [4]

Then the scheduler selects the GPUs for a workload and records its memory allocation and compute-sharing mode in per-container Pod annotations. [5]

Any Kubernetes scheduler that can write these annotations can enforce GPU fractions with CUDA. [6]

What the scheduler still decides

The scheduler still has its own job: choosing a GPU with enough free memory and never mixing compute modes on one GPU. [7]

KAI Scheduler is the first scheduler integrated with gpu-fractioning. [8]

KAI Scheduler’s other sharing modes stay available, and administrators choose one per cluster. [9]

Sources

  1. The NVIDIA source says: CUDA provides the memory enforcement capability, but a Kubernetes cluster can’t use it on its own. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  2. The NVIDIA source says: NVIDIA GPUs already support several approaches to sharing. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  3. The NVIDIA source says: A new open-source Kubernetes operator, gpu-fractioning, is hosted under the KAI Scheduler organization on GitHub. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  4. The NVIDIA source says: It runs next to the NVIDIA GPU Operator, which provides the driver and the container runtime setup. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  5. The NVIDIA source says: Then the scheduler selects the GPUs for a workload and records its memory allocation and compute-sharing mode in per-container Pod annotations. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  6. The NVIDIA source says: Any Kubernetes scheduler that can write these annotations can enforce GPU fractions with CUDA. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  7. The NVIDIA source says: The scheduler still has its own job: choosing a GPU with enough free memory and never mixing compute modes on one GPU. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  8. The NVIDIA source says: KAI Scheduler is the first scheduler integrated with gpu-fractioning. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4
  9. The NVIDIA source says: KAI Scheduler’s other sharing modes stay available, and administrators choose one per cluster. Memory-Enforced GPU Sharing in Kubernetes with NVIDIA CUDA 13.4

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • kubernetes
  • gpu
  • scheduling
  • nvidia