News for hackers. Stuff that matters.
Re:SIMD Everywhere: 0.5.0 by Const-me on Tuesday August 04, 2020 @09:50AM (#24049914)
> the question is: how should we write code today?

The only thing that matters today is how fast the code works on today’s hardware. To illustrate, see how I have emulated neon’s vst3q_s16 with SSE: https://github.com/Const-me/DtsDecoder/blob/master/Utils/sto... However, not all of them can be emulated in a fast enough manner.

> specifying the memory-moves explicitly, and then working on a "pshufb compiler/optimizer" of sorts is what we need.

I’ll consider that approach when I’ll see that compiler/optimizer working, and producing output comparable to manually-written code. Until then I think that’s a “sufficiently smart compiler” class of problems. These are rarely ever solved, IMO. For example, we don’t have generally useful auto-vectorizers in C compilers despite two decades of R&D, even the best of them (clang, intel) are still very limited.

There are no comments on this comment yet.