<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GPU workloads on DRA Driver for NVIDIA GPUs</title><link>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/</link><description>Recent content in GPU workloads on DRA Driver for NVIDIA GPUs</description><generator>Hugo</generator><language>en</language><atom:link href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/index.xml" rel="self" type="application/rss+xml"/><item><title>View available GPU resources</title><link>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/view-resources/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/view-resources/</guid><description>&lt;p&gt;This guide shows how to inspect the &lt;code&gt;ResourceSlice&lt;/code&gt; objects and pools the DRA
Driver for NVIDIA GPUs publishes, so you can see which GPU, MIG, and VFIO devices
are allocatable on your cluster and confirm each node is advertising the devices
you expect.&lt;/p&gt;
&lt;p&gt;For what each device attribute and capacity field means and the exact names to
use in CEL selectors, refer to
&lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/reference/resourceslice-attributes/"&gt;ResourceSlice device attributes&lt;/a&gt;.
For details on how the driver publishes ResourceSlices, refer to
&lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/concepts/gpu-allocation/#publishing-gpus-in-resourceslices"&gt;Publishing GPUs in ResourceSlices&lt;/a&gt;.
For the generic DRA model (what ResourceSlices, DeviceClasses, and ResourceClaims
are and how the scheduler uses them), refer to the
&lt;a href="https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/"&gt;Kubernetes DRA documentation&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Request full GPUs</title><link>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/allocating-gpus/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/allocating-gpus/</guid><description>&lt;p&gt;This guide covers how to request full GPUs (&lt;code&gt;gpu.nvidia.com&lt;/code&gt;) for workloads, from requesting any available GPU to targeting a specific model or memory size with CEL selectors.&lt;/p&gt;
&lt;p&gt;A &lt;code&gt;ResourceClaimTemplate&lt;/code&gt; defines the GPU request. You reference it from a pod in
&lt;code&gt;spec.resourceClaims&lt;/code&gt;. Kubernetes creates one &lt;code&gt;ResourceClaim&lt;/code&gt; per pod when it is
scheduled. Refer to the &lt;a href="https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/"&gt;Kubernetes DRA documentation&lt;/a&gt; for more details on the &lt;code&gt;ResourceClaim&lt;/code&gt; and &lt;code&gt;ResourceClaimTemplate&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For an overview of GPU allocation, refer to the &lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/concepts/gpu-allocation/"&gt;GPU allocation&lt;/a&gt; concept documentation.&lt;/p&gt;</description></item><item><title>Time-slicing</title><link>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/time-slicing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/time-slicing/</guid><description>&lt;p&gt;Time-slicing lets multiple containers share one physical GPU by scheduling their
CUDA contexts in turns. CUDA preempts each context at a configurable interval
and switches to the next one, similar to CPU time-sharing on a single-core
machine.&lt;/p&gt;
&lt;p&gt;Use time-slicing when you want to increase GPU utilization across workloads
that do not run continuously — for example, multiple batch jobs or development
containers that would otherwise sit idle waiting for their own dedicated GPU.
For how time-slicing compares to MIG and the other sharing modes, refer to
&lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/concepts/gpu-allocation/#choosing-a-resource-type"&gt;Choosing a resource type&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>MIG (Multi-Instance GPU)</title><link>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/mig/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/mig/</guid><description>&lt;p&gt;MIG lets you partition a single NVIDIA GPU into multiple isolated GPU instances,
each with a fixed allocation of compute resources, memory, and memory bandwidth.
Unlike time-slicing, MIG instances have hardware-level isolation. Each
instance&amp;rsquo;s memory and compute are fully separate.&lt;/p&gt;
&lt;p&gt;Use MIG when you need predictable, isolated GPU resources for multiple concurrent
workloads on the same physical GPU. For how MIG compares to time-slicing and the
other sharing modes, refer to
&lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/concepts/gpu-allocation/#choosing-a-resource-type"&gt;Choosing a resource type&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>KubeVirt VFIO GPU passthrough</title><link>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/kubevirt-vfio-gpu-passthrough/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/kubevirt-vfio-gpu-passthrough/</guid><description>&lt;p&gt;KubeVirt can attach VFIO GPU devices to virtual machines through Kubernetes Dynamic Resource Allocation (DRA). This guide covers the DRA Driver for NVIDIA GPUs configuration needed for KubeVirt passthrough workloads.&lt;/p&gt;
&lt;p&gt;For KubeVirt feature gates, VM fields, and VM examples, refer to the &lt;a href="https://kubevirt.io/user-guide/"&gt;KubeVirt user guide&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="feature-status"&gt;Feature status&lt;/h2&gt;
&lt;p&gt;This guide uses two Alpha feature gates, both disabled by default:&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Feature gate&lt;/th&gt;
 &lt;th&gt;Default&lt;/th&gt;
 &lt;th&gt;Stage&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;PassthroughSupport&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Alpha&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;DeviceMetadata&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Alpha&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Refer to the &lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/reference/feature-gates/"&gt;feature gates reference&lt;/a&gt; and &lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/reference/feature-gates/#constraints"&gt;constraints&lt;/a&gt; for details.&lt;/p&gt;</description></item></channel></rss>