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: 1.0.0b1
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).

get_amd_fp8_dtype

get_amd_fp8_dtype() -> DType

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

Returns:

DType: - DType.float8_e4m3fn for CDNA4+ and RDNA4+ GPUs

  • DType.float8_e4m3fnuz for CDNA1-3 GPUs
  • DType.invalid for RDNA3 (no native FP8 support).