92 points · by ingve · 2y ago · 35 comments
Previous release miscompiled Python [1]
Current release miscompiles bison [2]
It's also the type of compiler that defaults to -ffast-math to look good in benchmarks (well, all vendor compilers do). That breaks many packages that rely on signalling NaNs, or use e.g. Kahan summation for stable math with IEEE floats.
It's caught in the Spack package manager because it's probably one of the few package managers that lets users pick their own compiler for a full software stack.
[1] https://github.com/spack/spack/issues/38724 and https://github.com/python/cpython/issues/106424
[2] https://github.com/spack/spack/issues/37172#issuecomment-181...
First issue was resolved, the bison issue is still pending.
> It was a compiler bug. The test now passes when cpython is built with an internal build. The next compiler release (likely 2024.0) should have the fix.
So I wouldn't recommend running FreeBSD on oneAPI in production just yet, but I give them some credit & celebrations for reaching a milestone.
Also note that before Intel oneAPI there was the now deprecated Intel Classic Compiler (icc), which also had bugs, since 2003.
In my opinion it's unlikely that a closed source vendor compiler will ever be on the same level as gcc and clang.
It will never be tested as much, and it's hard to make actionable bug reports for closed source software.
Being based on LLVM is of course a good choice... hopefully fewer bugs.
Fwiw icc once had a reputation for being fast but I never thought high of their software. Only hands on experience I had was with Intel Media SDK where even basic stuff, like finding a legal download, hardware requirements and installation guidance was tough. And then each iteration both software and hardware was deprecated faster than Google can dream to abandon their products.
Plenty of bugs in gcc and llvm. I'm really sure a closed source compiler could be higher quality. Probably not in the C++ world, but I expect there's an ADA compiler out there that gets the answer right whatever the source code is.
Not sure if they're still doing that, but in the early days of Clear Linux they were using -ffast-math on everything they compiled, as a way to give their distro a big performance boost over competition, too.
But in benchmarks you sometimes see like a 4x speedup compared to ubuntu, which is obviously not due to superior compilers.
For example:
https://github.com/phoronix-test-suite/phoronix-test-suite/i...
Actually you only need to have a relatively complete linux under /compat/linux. You could even chroot into that and do the oneapi install.
The trillion dollar question is: can you get the intel discrete gpu to work, compiling for and running on the gpu?
see https://techreport.com/news/does-intels-compiler-cripple-amd...
[update] and https://old.reddit.com/r/Amd/comments/440ze8/amd_cpus_and_in...
[0]https://medium.com/@edlyuu/zig-c-c-compiler-wtf-is-zig-c-790...
We might even get a new and more robust libc - maybe one that even supports static compilation.
How much benefit did Intel expect to reap from rewriting an LLVM x64 compiler backend from the ground up?
And on their own hardware the compiler is often significantly better.[2] This was part of their competitive advantage.
2x better is also a lot. It means that you only have to buy half as many servers. Even much smaller improvements are often worthwhile.
[1]: https://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler#Release... [2]: https://www.intel.com/content/www/us/en/developer/tools/onea...
I specifically drew the line at 2x.
>It means that you only have to buy half as many servers.
That's what I said in my initial comment: "Whether that means requiring half as much hardware to do the same job or requiring half as much manpower to use..."
But even if I didn't already point that out, I'm curious how you would react in your everyday life if all the people you interact with were as insufferably pedantic as you.
How is this significantly better than the existing tools for compiling C into GPU and FPGA code?
It would help if Intel published some kind of chalk talk with a live demo showing how much faster you can build HPC applications using their new toolkit.
I'm not summarily writing it off, but I need a little convincing before I put 20+ hours into trying it out myself.