Skip to content

Comment on How to Bypass Matlab’s ‘Cripple AMD CPU’ Function

Comments

This is hardly the first time this has happened.

In this case their math library didn't do a CPUID feature test, but rather a vendor name test. It would be equivalent to testing website compatibility by doing a user agent check with just the browser name (e.g. navigator.userAgent.indexOf("Netscape"), etc)

ICC also historically generated intentionally bad code for non-intel platforms - deliberately making function loaded depend on intel vs. everyone else rather than by feature set.

Yes, which is why I posted this story to raise awareness. It's shocking to me how even many software developers don't know about this.

https://www.agner.org/optimize/blog/read.php?i=49

Nvidia is also pretty good at this, shipping FPU optimized PhysX library when SSE was widespread.

Nice!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.