TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Intel's “Cripple AMD” Function (2019)

294 点作者 phab大约 3 年前

14 条评论

phkahler大约 3 年前
Worth noting that Intel has dropped their &quot;old&quot; compiler and the newer &quot;Intel&quot; compilers are LLVM based. IMHO they will likely be pulling similar anti-AMD tricks with it and they are keeping their paid version closed source - which is allowed by LLVMs license.<p>RMS was right that compilers should be GPL licensed to prevent exactly this kind of thing (and worse things which are haven&#x27;t happened yet).<p>On another compiler related note, I find it insane that GCC had not turned on vectorization at optimization -O2 for the x68-64 targets. The baseline for that arch has SSE2, so vectorization has always made sense there. The upcoming GCC 12 will have it enabled at -O2. I&#x27;d bet the Intel compiler always did vectorization at -O2 for their 64bit builds.
评论 #30936898 未加载
评论 #30936741 未加载
JoshTriplett大约 3 年前
If Intel had shipped a library&#x2F;compiler that <i>did</i> just use feature flags and didn&#x27;t check the CPU vendor, and the resulting code used features that on AMD ran much more slowly than the equivalent unoptimized code, would people blame AMD for the slow instructions, or blame Intel for releasing a library&#x2F;compiler that they didn&#x27;t optimize for their competitor&#x27;s processor?<p>This isn&#x27;t a hypothetical; quoting <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;X86_Bit_manipulation_instruction_set" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;X86_Bit_manipulation_instructi...</a> :<p>&gt; AMD processors before Zen 3[11] that implement PDEP and PEXT do so in microcode, with a latency of 18 cycles rather than a single cycle. As a result it is often faster to use other instructions on these processors.<p>There&#x27;s no feature flag for &quot;technically supported, but slow, don&#x27;t use it&quot;; you have to check the CPU model for that.<p>All that said, the <i>right</i> fix here would have been to release this as Open Source, and then people could contribute optimizations for many different processors. But that would have required a decision to rely on winning in hardware quality, rather than sometimes squeezing out a &quot;win&quot; via software even in generations where the hardware quality isn&#x27;t as good as the competition.
评论 #30938838 未加载
评论 #30938210 未加载
评论 #30938082 未加载
dang大约 3 年前
Related:<p><i>Intel&#x27;s “cripple AMD” function (2019)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24307596" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24307596</a> - Aug 2020 (104 comments)<p><i>Intel&#x27;s “Cripple AMD” Function</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21709884" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21709884</a> - Dec 2019 (10 comments)<p><i>Intel&#x27;s &quot;cripple AMD&quot; function (2009)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7091064" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7091064</a> - Jan 2014 (124 comments)<p><i>Intel&#x27;s &quot;cripple AMD&quot; function</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1028795" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1028795</a> - Jan 2010 (80 comments)
Certified大约 3 年前
Last time this came up on Hacker News I discovered SolidWorks 2021 was using an older MKL library that supports the MKL_DEBUG_CPU_TYPE=5 environment variable. I&#x27;m on an AMD cpu and measured a small solidworks fps and rebuild time improvement with the flag enabled
评论 #30936362 未加载
mhh__大约 3 年前
This could arguably dated 2009 as that is when it was originally discovered (approx.). <a href="https:&#x2F;&#x2F;www.agner.org&#x2F;optimize&#x2F;blog&#x2F;read.php?i=49" rel="nofollow">https:&#x2F;&#x2F;www.agner.org&#x2F;optimize&#x2F;blog&#x2F;read.php?i=49</a>
评论 #30936225 未加载
holdenk大约 3 年前
Huh I had wondered why I saw so many Python packages blacklist MKL now I know why.
评论 #30935643 未加载
midjji大约 3 年前
So blacklist intel compiler in favor or GCC and CLANG, seems entirely reasonable!
评论 #30938633 未加载
bee_rider大约 3 年前
Has anyone tried a recent version of MKL on AMD? I assume they were shunting AMD off into an AVX codepath because pre-Zen AMD lacked AVX2 (well, Excavator had I guess...).<p>If they are sending Zen down the generic AVX2 codepaths by default and those are competitive with, say, openBLAS, that seems reasonable, right?<p>Hopefully BLIS will save us all from this kind of confusion eventually.
penguin_booze大约 3 年前
This sounds to me very much like VW cheat devices: detect the current situation, and &quot;act accordingly&quot;.
Kon-Peki大约 3 年前
This has been discussed on HN before.<p>I don&#x27;t condone Intel behavior, but let&#x27;s be honest here: AMD underinvests in software and expects others to pick up the slack. That isn&#x27;t acceptable.
评论 #30935765 未加载
评论 #30936057 未加载
评论 #30935521 未加载
评论 #30935898 未加载
评论 #30936179 未加载
评论 #30935941 未加载
评论 #30935972 未加载
评论 #30935913 未加载
mechanical_bear大约 3 年前
So it appears not only is this posting from 2019, but the most recent information they reference is 2010. This seems to be no longer relevant? I’d love it if submissions on HN had a small blurb from the author explaining why their submission is interesting&#x2F;relevant.
评论 #30935699 未加载
评论 #30935646 未加载
marginalia_nu大约 3 年前
I&#x27;m getting flashbacks to the AARD code and Microsoft&#x27;s attempts to sabotage DR-DOS.
snvzz大约 3 年前
RISC is less amenable to this category of BS.<p>Looking forward to RISC-V pushing x86 into retrocomputing territory.
DSingularity大约 3 年前
&gt; After Intel had flatly denied to change their CPU dispatcher, I decided that the most efficient way to make them change their minds was to create publicity about the problem. I contacted several IT magazines, but nobody wanted to write about it. Sad, but not very surprising, considering that they all depend on advertising money from Intel.<p>Sorry to go on this tangent: but is capitalism so rotten that everything eventually corrupts? Here even outlets for discussion on topics of science and technology self-censure to maximize profit. So much for freedom of speech.<p>Where is truth these days?
评论 #30941622 未加载