Live data from Hacker News

Please do not require AVX support for your software

pavel.network

51–54 of 54 posts

Re: Please do not require AVX support for your software

#51
post #48

Earlier quoted context omitted.

> The desktop computer I've been using since 2015 doesn't have a TPM Yeah but it's from 2015. Windows 11 is from, like, 2021. That's over 6 years before the OS started asking for something you don't have. I think this is why people cry laziness, because it does legitimately sound that way from an outside perspective.

That doesn't sound lazy. That sounds like not wanting to replace perfectly good equipment.

For me "perfectly good" means "supporting the capabilities required to run the software I need to run" so once I need to run something that my computer doesn't support, it stops being perfectly good.

Re: Please do not require AVX support for your software

#52

Earlier quoted context omitted.

> very few chips have AVX512 unless you have the latest 11th and 12th gen Intel CPUs 12th gen had AVX-512 physically fused off because the E-cores didn't support it.

No. AVX512 was disabled because the money-men want to force you to buy the far more expensive Sapphire-Rapids which are the same chip. Same old Intel. Learned nothing. They didn't just fuse it off, they also forced microcode updates that permanently disable it for working alderlakes.

It's almost as if people make these throwaway accounts just to post hot takes without affecting their real karma value.

Re: Please do not require AVX support for your software

#53
post #40
post #20

Earlier quoted context omitted.

It’s considerably more onerous than just compiling to a single/multiple microarchitecture(s) though. Plus when you do this, you need to split out this code to be conditionally compiled so that you can support other architectures like ARM.

Here is an example on how to do this using github.com/google/highway: https://gcc.godbolt.org/z/zP7MYe9Yf You write the code only once and do not have to worry about any #pragma/conditional compilation. Just copy-paste about a dozen lines of boilerplate, link with the Highway library, and done. Disclosure: I am the main author; happy to discuss.

That’s great! Never seen this library before. It’s much neater than the other approaches I’ve seen/used.

Re: Please do not require AVX support for your software

#54
post #53
post #40

Earlier quoted context omitted.

Here is an example on how to do this using github.com/google/highway: https://gcc.godbolt.org/z/zP7MYe9Yf You write the code only once and do not have to worry about any #pragma/conditional compilation. Just copy-paste about a dozen lines of boilerplate, link with the Highway library, and done. Disclosure: I am the main author; happy to discuss.

That’s great! Never seen this library before. It’s much neater than the other approaches I’ve seen/used.

Thanks, glad to hear :) Feedback is always welcome, do let us know via Github issue if there is anything you think can be improved.
Post reply on HN