Skip to main content

Mojo struct

ThreadInfo

@register_passable(trivial) struct ThreadInfo

Thread identification within the warp group.

Fields

  • warp_id (UInt):
  • lane_id (UInt):
  • lane_row (UInt32):
  • lane_col (UInt32):

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, Movable, UnknownDestructibility

Aliases

__copyinit__is_trivial

alias __copyinit__is_trivial = True

__del__is_trivial

alias __del__is_trivial = True

__moveinit__is_trivial

alias __moveinit__is_trivial = True

Methods

__init__

__init__(warp_id: UInt, lane_id: UInt, lane_row: UInt32, lane_col: UInt32) -> Self

from_warp_group_thread_idx

static from_warp_group_thread_idx(thread_idx: UInt) -> Self

Was this page helpful?