By the way, if you want make this permanent in a binary, there is no need to set LD_PRELOAD all the time. You could just add a DT_NEEDED entry to the dynamic section. E.g. something like:
patchelf --add-needed libfakeintel.so yourbinary
Re:Intel's “cripple AMD” function (2019)
by ashleyn on Saturday August 29, 2020 @04:03PM
(#24319008)
Wow. I wasn't quite expecting something as simple as "if CPU is not intel, make everything worse."
Re:Intel's “cripple AMD” function (2019)
by colejohnson66 on Sunday August 30, 2020 @02:50PM
(#24324958)
I’m sure their justification is that (1) they have no obligation to help AMD, and (2) how could you guarantee AMD implements CPUID the same as Intel (as in: what if AMD implements a feature bit differently?)
Of course, the second one makes no sense as x86 programs run just as fine on AMD as Intel with the same feature set (albeit at different speeds)
Make a file with the following content:
Compile Run And it uses the optimized AVX codepaths.Disclaimer: may not be legal in your country. I take no responsibility.