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

Mojo struct

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

Was this page helpful?