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

sync

GPU synchronization primitives package.

This package provides GPU synchronization operations including:

  • barrier: Block-level synchronization barriers
  • syncwarp: Warp-level synchronization
  • mbarrier: Memory barrier operations (arrive/wait)
  • named_barrier: Named barriers for flexible synchronization
  • schedule_barrier: AMD instruction scheduling barriers
  • Semaphore: Device-wide semaphore implementation
  • cp_async_bulk: Bulk async copy synchronization

These primitives enable coordination of execution and memory operations across threads, warps, and blocks in GPU kernels.

Modulesโ€‹

  • โ€‹semaphore: This module provides a device-wide semaphore implementation for NVIDIA GPUs.
  • โ€‹sync: This module provides GPU synchronization primitives and barriers.