For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
PDL
struct PDL
Programmatic Dependency Launch (PDL) control structure.
This struct provides a way to manage programmatic stream serialization on NVIDIA GPUs. It includes functions for launching dependent grids and waiting for them to complete.
Note:
- Only supported on NVIDIA SM90+ (Hopper architecture and newer) GPUs.
Implemented traitsβ
AnyType,
Defaultable,
Deinitable,
Movable
Methodsβ
__init__β
def __init__(out self)
Initialize the PDL control structure.
__enter__β
def __enter__(self)
Launch dependent grids that were previously configured to depend on the current grid.
__exit__β
def __exit__(self)
Wait for all dependent grids launched by this grid to complete execution.