flashinfer.green_ctx¶
This module provides utilities for creating CUDA green contexts.
Green context creation¶
|
Split the device into multiple green contexts, return the corresponding streams and CUdevResource for each group and the remaining SMs. |
|
Split the device into multiple green contexts, each with a fixed number of SMs, return the corresponding streams and CUdevResource for each group and the remaining SMs. |
uGPU localization (multi-die GPUs)¶
On GPUs built from several dies (Rubin), each die is a locality domain with its own SMs and memory. A kernel on a domain’s green-context stream that reads memory placed in that domain keeps its DRAM traffic off the die-to-die link.
Number of locality domains (uGPUs, one per die) of |
|
Create one green context per locality domain (uGPU) of |
|
|
Allocate an uninitialized tensor of shape |