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 function

get_amd_bf8_dtype

def get_amd_bf8_dtype() -> Optional[DType]

Gets the appropriate BF8 dtype for the current AMD GPU architecture.

Returns:

Optional[DType]: - DType.float8_e5m2 for CDNA4+ and RDNA4+ GPUs

  • DType.float8_e5m2fnuz for CDNA1-3 GPUs
  • None for RDNA3 (no native BF8 support).