News for hackers. Stuff that matters.
Re:AVX-512: First Impressions on Performance and Programmabi... by nnevatie on Monday January 19, 2026 @02:48AM (#46676034)
I found this a weird article.

If you wish to see some speedups using AVX512, without limiting yourself to C or C++, you might want to try ISPC (https://ispc.github.io/index.html).

You'll get sane aliasing rules from the perspective of performance, multi-target binaries with dynamic dispatching and a lot more control over the code generated.

Re:AVX-512: First Impressions on Performance and Programmabi... by majke on Monday January 19, 2026 @03:15AM (#46676220)
Ispc looks interesting. Does it work with amd? They hint on gpu’s , i guess mostly intel ones?
Re:AVX-512: First Impressions on Performance and Programmabi... by dataking on Monday January 19, 2026 @03:43AM (#46676411)
Yes, it works with AMD CPUs as well as various ARM ones, e.g. Apple silicon.

See for instance https://github.com/ispc/ispc/pull/2160

Re:AVX-512: First Impressions on Performance and Programmabi... by nnevatie on Monday January 19, 2026 @05:52AM (#46677478)
Yes, works well with AMD. You can compile multi-target so that you'll have e.g. SSE4.2, AVX2, AVX512 support built to your binaries and the best (widest) version is picked by the runtime automatically.
Re:AVX-512: First Impressions on Performance and Programmabi... by theowaway on Monday January 19, 2026 @04:46AM (#46676921)
ispc is something that deserves to be much more widely known about- it does an excellent job of bringing the cuda programming model to cpus
Re:AVX-512: First Impressions on Performance and Programmabi... by grumbelbart2 on Monday January 19, 2026 @06:35AM (#46677832)
Is there a way to compile it to something else than x86, like arm/aarch64?
Re:AVX-512: First Impressions on Performance and Programmabi... by nnevatie on Monday January 19, 2026 @07:12AM (#46678122)
> It currently supports multiple flavours of x86 (SSE2, SSE4, AVX, AVX2, and AVX512), ARM (NEON), and Intel® GPU architectures (Xe family).
Re:AVX-512: First Impressions on Performance and Programmabi... by shihab on Monday January 19, 2026 @12:42PM (#46682013)
Hi, I actually mentioned ISPC several times there. And although I strenuously avoided crowning one approach "better" over the other, it is worth pointing out that 1) Many of these benefits of ISPC can be had from explicit SIMD libraries like Google's Highway, and 2) ISPC (or any SIMT model) is a departure from how the underlying hardware works, and as the AI community is discovering with GPU, this abstraction can sometimes be lot more headache than its worth.