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_idxThis 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?
Thank you! We'll create more content like this.
Thank you for helping us improve!