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

And he climbed with the lad up the Eiffelberg Tower. "This," cried the Mayor,
"is your town's darkest hour! The time for all Whos who have blood that is red
to come to the aid of their country!" he said. "We've GOT to make noises in
greater amounts! So, open your mouth, lad! For every voice counts!" Thus he
spoke as he climbed. When they got to the top, the lad cleared his throat and
he shouted out, "YOPP!"
And that Yopp... That one last small, extra Yopp put it over!
Finally, at last! From the speck on that clover their voices were heard!
They rang out clear and clean. And they elephant smiled. "Do you see what
I mean?" They've proved they ARE persons, no matter how small. And their
whole world was saved by the smallest of All!"
"How true! Yes, how true," said the big kangaroo. "And, from now
on, you know what I'm planning to do? From now on, I'm going to protect
them with you!" And the young kangaroo in her pouch said, "ME TOO! From
the sun in the summer. From rain when it's fall-ish, I'm going to protect
them. No matter how small-ish!"
-- Dr. Seuss "Horton Hears a Who"