Mojo function
sm_id
sm_id() -> UInt
Returns the Streaming Multiprocessor (SM) ID of the current thread.
The SM ID uniquely identifies which physical streaming multiprocessor the thread is executing on. This is useful for SM-level optimizations and understanding hardware utilization.
If called on non-NVIDIA GPUs, this function aborts as this functionality is only supported on NVIDIA hardware.
Returns:
The SM ID of the current thread.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!