News for hackers. Stuff that matters.
Re:Intel's “cripple AMD” function (2019) by gpapilion on Saturday August 29, 2020 @08:47AM (#24315712)
I think it’s a matter of features and performance. The poster says he can use gcc but the performance is 2.5x slower.
Re:Intel's “cripple AMD” function (2019) by Hello71 on Saturday August 29, 2020 @10:16AM (#24316258)
that's an incredible margin, and sounds suspiciously like they didn't enable optimizations on gcc, or set icc to optimize for a specific processor and gcc to generic, or something like that.
Re:Intel's “cripple AMD” function (2019) by dragontamer on Saturday August 29, 2020 @11:07AM (#24316580)
Hmm, OpenMP is a wildcard here.

At which point, its not just the compiler (which GCC is pretty good at), but also the threading implementation (which I can believe that GCC has an inferior Windows-threading OpenMP implementation).

I don't really use either tool. But OpenMP + GCC on Windows doesn't sound like it'd be fast to me.

--------

MSVC only has OpenMP 2.0 support (OpenMP is all the way up to 5.0 now).

OpenMP, despite being a common interface, also is pretty reliant on many implementation details for performance. One way of doing things on GCC could be faster than another, while it could be the opposite on ICC. Its quite possible that their codebase is tailored for ICC, and that recompiling it under GCC (with a different OpenMP implementation) results in weaker performance.

I wouldn't expect 250% performance difference in normal code however. GCC and ICC aren't that far off under typical circumstances.