IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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.