> for fortran, the intel one (ifort) generally produces much faster binaries.
Unless you happen to have a AMD processor, then the Intel compiler will go out of its way to cripple performance. See https://news.ycombinator.com/item?id=30935064
Re:Can Fortran survive another 15 years?
by marshallward on Saturday May 06, 2023 @01:10PM
(#35843304)
I have not yet seen anything like this, but I have observed the Intel compiler produce different bytecode on Intel and AMD machines.
In one case, the compiler would use masking vector instructions on Intel but not on AMD. It was also the correct decision: Those instructions have very low latency on Intel, but are many times slower on AMD. On each platform, it produced the best bytecode that it could.
Everyone I met who writes fortran (mainly for quantum chemistry, solid state physics programs) uses multiple compilers to ensure the highest quality code.