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]
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
- The NVIDIA source says: One primary use of green contexts is SM partitioning. Control How Your GPU Shares Work with Green Contexts
- 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
- 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
- The NVIDIA source says: In addition to SM partitioning, green contexts can provision workqueue resources. Control How Your GPU Shares Work with Green Contexts
- 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
- 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