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 module

grid_controls

Grid Dependent Control primitives for NVIDIA Hopper (SM90+) GPUs.

This module provides low-level primitives for managing grid dependencies on NVIDIA Hopper architecture and newer GPUs. It enables efficient orchestration of multi-grid workloads by allowing grids to launch dependent grids and synchronize with them.

The module includes functions that map directly to CUDA grid dependency control instructions, providing fine-grained control over grid execution order:

  • launch_dependent_grids(): Triggers execution of grids that depend on the current grid
  • wait_on_dependent_grids(): Blocks until all dependent grids complete execution

These primitives are essential for implementing complex GPU execution pipelines where multiple kernels need to execute in a specific order with minimal overhead. They eliminate the need for host-side synchronization when orchestrating dependent GPU work.

Structs​

  • ​PDL: Programmatic Dependency Launch (PDL) control structure.
  • ​PDLLevel: Programmatic Dependency Launch (PDL) level.

Functions​