4 ms·
> buyers of AMD products demand that Intel would release their software optimized for AMD products as well, No, not at all. They want to run the Intel-optimiz
by Dylan16807 7y ago
> buyers of AMD products demand that Intel would release their software optimized for AMD products as well,
No, not at all.
They want to run the Intel-optimized version. But instead it checks CPUID and runs a deoptimized version.
- neonate 7y agoWow. Are you sure? How do you know this?
- aidenn0 7y agoCentaurTechnologies ran benchmarks against ICC with the CPUID set to the default and then with it set to the name of an Intel chip with equivalent CPU flags. Intel's response was roughly "We don't trust CPU flags, so we have kernels for each specific Intel chip, and a generic kernel for non-Intel chips"
- acqq 7y agoLuckily, from Agner's CPU blog linked above: "[Update 2019:] The newest versions of Gnu and Clang C++ compilers are now optimizing better than the Intel compiler in my tests." Good reason to avoid Intel compiler even more.
- loeg 7y agoNewest ICC is an LLVM frontend anyway. Maybe some special sauce, maybe not.
- Dylan16807 7y agoThe link in the post above is a reasonable intro: https://www.agner.org/optimize/blog/read.php?i=49 https://www.agner.org/optimize/blog/read.php?i=49
- neonate 7y agoThank you!
- omikun 7y agoTo play devil's advocate, why would Intel spend money to allow their competitor to leverage speedups from their compiler?
- wtallis 7y agoIntel spent money to prevent their competitor from leveraging speedups from their compiler. It would have been less work for them to simply use feature detection on AMD chips, since Intel already has to implement feature detection for their own chips.
- 7952 7y agoBecause it would benefit the user of the compiler, their customer.
- ivanhoe 7y agoBecause in many countries, including US, it's illegal to leverage one product to ensure unfair market advantage for your other products, and this is very close to that...
- Dylan16807 7y agoIt took slightly more effort for them to put in the anti-optimization feature than to do the feature detection correctly. So the answer to your question is "they don't need to", but your question has nothing to do with the problem.