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).
block_rank_in_cluster
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_ctarankspecial 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.