by brucethemoose2 · 3y ago · 0 comments
CachyOS and Clear Linux already do this.
Base Arch Linux and openSUSE are working on it. Maybe Fedora too, but I can't remeber
And it wouldn't be totally insane for Windows to do this either.
I'm honestly a little amazed that more people don't either use Gentoo or adopt its model, given the smorgasbord of mutually incompatible instruction set extensions. It seems very strange that people will buy a CPU that has 32 64-byte ZMM registers with 3 operand instructions, and then use that CPU to run code that operates on 8 16-byte XMM registers with 2 operand instructions.
This also means "riskier" methods (like LTO) have to be omitted by default.
Gentoo is great for libre software, security, manual patches, embedded computing and such. But for pure desktop performance, the Clear Linux way is best: aggressive compilation flags/libraries, tested by the package maintainers, shipped in 3-4 tiers. And as the Clear Linux devs said, most of the native instructions dont even matter, as the compilers can't use them.
https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Function-Multi...
And there are different schemes for multiple architectures in the same program, like hwcaps.
https://developers.redhat.com/blog/2021/01/05/building-red-h...
There is discussion of a fifth level. Someone in the Intel Clear Linux IRC said a fifth level wasn't "worth it" for Sapphire Rapids because most of the new AVX512 extensions were not autovectorized by compilers, but that a new level would be needed in the future. Perhaps they were thinking of APX, but couldn't disclose it.
the hardware is the same design for cost saving purposes, but different features are unlocked for $$$ by a software license key.
You want AVX-512? pay up and unlock feature in your CPU and you can now use the feature. This could also enable pay-as-you-go license scheme for CPUs, creating recurring revenue for Intel
from the hardware perspective - the same silicon, but different features sold separately