IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

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, ImplicitlyDestructible

Methods

__init__

__init__(out self)

Initialize the PDL control structure.

__enter__

__enter__(self)

Launch dependent grids that were previously configured to depend on the current grid.

__exit__

__exit__(self)

Wait for all dependent grids launched by this grid to complete execution.