Skip to content
IJK

Green Contexts: Partitioning SMs and Provisioning Workqueues

By IJK ·

What NVIDIA's post says SM partitioning with green contexts enables and how it says explicit workqueue provisioning reduces unintended serialization.

Partitioning the compute units

One primary use of green contexts is SM partitioning. [1]

By assigning a specific subset of SMs to a green context, applications can target work submitted through that green context to those SMs. [2]

This can enable multiple workloads to run concurrently on the GPU without competing for the same compute units. [3]

Green contextA subset of SMswork submitted through it targets those SMsWorkqueue resourcesprovisioned explicitly
What can a green context assign to an application's work?

How workqueues cause serialization

In addition to SM partitioning, green contexts can provision workqueue resources. [4]

In the traditional model, independent stream-ordered workloads may map to the same underlying workqueues, introducing unintended serialization even when sufficient execution resources are available. [5]

What explicit provisioning changes

By provisioning workqueues explicitly, green contexts allow applications to express expected concurrency and reduce false dependencies. [6]

Sources

  1. The NVIDIA source says: One primary use of green contexts is SM partitioning. Control How Your GPU Shares Work with Green Contexts
  2. The NVIDIA source says: By assigning a specific subset of SMs to a green context, applications can target work submitted through that green context to those SMs. Control How Your GPU Shares Work with Green Contexts
  3. The NVIDIA source says: This can enable multiple workloads to run concurrently on the GPU without competing for the same compute units. Control How Your GPU Shares Work with Green Contexts
  4. The NVIDIA source says: In addition to SM partitioning, green contexts can provision workqueue resources. Control How Your GPU Shares Work with Green Contexts
  5. The NVIDIA source says: In the traditional model, independent stream-ordered workloads may map to the same underlying workqueues, introducing unintended serialization even when sufficient execution resources are available. Control How Your GPU Shares Work with Green Contexts
  6. The NVIDIA source says: By provisioning workqueues explicitly, green contexts allow applications to express expected concurrency and reduce false dependencies. Control How Your GPU Shares Work with Green Contexts

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

  • cuda
  • gpu
  • concurrency
  • nvidia