Skip to main content

Mojo module

id

GPU thread and block indexing (deprecated - use gpu package directly).

This module is deprecated. For new code, import these symbols directly from the gpu package instead:

# Deprecated:
from gpu.id import block_idx, thread_idx

# Recommended:
from gpu import block_idx, thread_idx

This module provides GPU thread and block indexing functionality, including aliases and functions for accessing GPU grid, block, thread and cluster dimensions and indices.

Was this page helpful?