Skip to main content

Mojo struct

AcceleratorArchitectureFamily

@register_passable(trivial) struct AcceleratorArchitectureFamily

Defines common defaults for a GPU architecture family.

This struct captures the shared characteristics across GPUs in the same architecture family, reducing redundancy when defining new GPU models.

Fields

  • warp_size (Int): Number of threads in a warp/wavefront.
  • threads_per_multiprocessor (Int): Maximum number of threads per streaming multiprocessor.
  • shared_memory_per_multiprocessor (Int): Size of shared memory available per multiprocessor in bytes.
  • max_registers_per_block (Int): Maximum number of registers that can be allocated to a thread block.
  • max_thread_block_size (Int): Maximum number of threads allowed in a thread block.

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, Movable, UnknownDestructibility

Aliases

__copyinit__is_trivial

alias __copyinit__is_trivial = Int.__copyinit__is_trivial

__del__is_trivial

alias __del__is_trivial = Int.__del__is_trivial

__moveinit__is_trivial

alias __moveinit__is_trivial = Int.__moveinit__is_trivial

Was this page helpful?