News: 0001555311

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

RADV Driver Lands VK_EXT_shader_float8 Support

([Radeon] 6 Hours Ago 8-bit Floating Point)


The Mesa Radeon Vulkan driver "RADV" is now the first Mesa in-tree driver supporting 8-bit floating point use within shaders via the new VK_EXT_shader_float8 extension.

VK_EXT_shader_float8 was introduced earlier this month with the [1]Vulkan 1.4.317 spec update. VK_EXT_shader_float8 enables support for 8-bit floating point operations within shaders in order to support more AI / machine learning workloads with the Vulkan API.

With the open-source RADV driver, the 8-bit floating point support works with AMD RDNA4 / GFX12 GPUs and future hardware. [2]This merge request is what wired up the VK_EXT_shader_float8 support within the RADV driver as well as associated SPIR-V and NIR plumbing.

"This adds support for E4M3FN (4bit exponent, 3bit mantissa, no infinity) and E5M2 (5bit exponent, 2bit mantissa) float formats in vtn, nir and aco.

Only conversions and cmat muladd are supported. Like for bfloat16, all conversions go through fp32."

This 8-bit FP support for the RADV driver will be part of next quarter's Mesa 25.2 release for helping out Vulkan with AI/ML software.



[1] https://www.phoronix.com/news/Vulkan-1.4.317-Released

[2] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35434



davidbepo

V1tol

Ferrum Master

geerge

Anux

kiffmet

schmidtbag

I am changing my name to Chrysler
I am going down to Washington, D.C.
I will tell some power broker
What they did for Iacocca
Will be perfectly acceptable to me!

I am changing my name to Chrysler,
I am heading for that great receiving line.
When they hand a million grand out,
I'll be standing with my hand out,
Yessir, I'll get mine!