Skip to main content
Log in

Mojo struct

Info

@register_passable struct Info

Fields

  • name (StringLiteral):
  • vendor (Vendor):
  • api (StringLiteral):
  • arch_name (StringLiteral):
  • compile_options (StringLiteral):
  • compute (SIMD[float32, 1]):
  • version (StringLiteral):
  • sm_count (Int):
  • warp_size (Int):
  • threads_per_sm (Int):
  • threads_per_warp (Int):
  • warps_per_multiprocessor (Int):
  • threads_per_multiprocessor (Int):
  • thread_blocks_per_multiprocessor (Int):
  • shared_memory_per_multiprocessor (Int):
  • register_file_size (Int):
  • register_allocation_unit_size (Int):
  • allocation_granularity (StringLiteral):
  • max_registers_per_thread (Int):
  • max_registers_per_block (Int):
  • max_blocks_per_multiprocessor (Int):
  • shared_memory_allocation_unit_size (Int):
  • warp_allocation_granularity (Int):
  • max_thread_block_size (Int):
  • flops (Flops):

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, UnknownDestructibility, Writable

Methods

__lt__

__lt__(self, other: Self) -> Bool

__le__

__le__(self, other: Self) -> Bool

__eq__

__eq__(self, other: Self) -> Bool

__ne__

__ne__(self, other: Self) -> Bool

__gt__

__gt__(self, other: Self) -> Bool

__ge__

__ge__(self, other: Self) -> Bool

__is__

__is__(self, other: Self) -> Bool

__isnot__

__isnot__(self, other: Self) -> Bool

target

target[index_bit_width: Int = 64](self) -> target

from_target

static from_target[target: target]() -> Self

from_name

static from_name[name: StringLiteral]() -> Self

occupancy

occupancy(self, *, threads_per_block: Int, registers_per_thread: Int) -> SIMD[float64, 1]

write_to

write_to[W: Writer](self, mut writer: W)

__str__

__str__(self) -> String