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 package

primitives

GPU primitives package - block, cluster, and grid-level operations.

This package provides low-level GPU execution primitives at various levels of the GPU hierarchy:

  • block: Block-level operations (reductions across thread blocks)
  • cluster: Cluster-level synchronization (SM90+)
  • grid_controls: Grid dependency control (Hopper PDL)

These primitives form the foundation for GPU kernel development.

Modules​

  • ​block: GPU block-level operations and utilities.
  • ​cluster: This module provides low-level NVIDIA GPU cluster synchronization primitives for SM90+ architectures.
  • ​grid_controls: Grid Dependent Control primitives for NVIDIA Hopper (SM90+) GPUs.