Blogs / Why Old GPU Contexts Fit Sharing Poorly and What Replaces Them

Why Old GPU Contexts Fit Sharing Poorly and What Replaces Them

Why NVIDIA's post says traditional CUDA contexts were not designed for sharing a GPU and what it says green contexts do instead.

  • Learning
  • 1 min read

For: Learners curious about how GPUs are shared.

What goes wrong when components share

Components can interfere unpredictably, and existing tools offer limited ability to partition resources.[1]

Green contexts address this by letting applications explicitly select a subset of GPU execution resources and target work to those resources directly.[1]

Why traditional contexts fit poorly

Traditional CUDA contexts weren’t designed for this usage model.[1]

They are heavyweight, incur hardware context-switch overhead, and reflect assumptions from an earlier era, when GPUs were smaller and applications typically ran as a single dominant workload.[1]

Traditional CUDAcontextheavyweight, with hardwarecontext-switch overheadGreen contextlightweight to create anddestroy
How does the post contrast traditional and green contexts?

What green contexts cost to create

Green contexts are lightweight to create and destroy, and creating or destroying one doesn’t implicitly synchronize unrelated GPU work.[1]

Sources

  1. Control How Your GPU Shares Work with Green Contexts (developer.nvidia.com · checked )

More articles