IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

AcceleratorArchitectureFamily

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, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable