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 function

block_rank_in_cluster

def block_rank_in_cluster() -> UInt32

Returns the unique identifier (rank) for the current thread block within its cluster.

Note:

  • Only supported on NVIDIA SM90+ GPUs.
  • Maps directly to the %cluster_ctarank special register in CUDA PTX.

Returns:

UInt32: A unique identifier in the range [0, cluster_size-1] where cluster_size is the total number of thread blocks in the cluster.