News for hackers. Stuff that matters.
Re:Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice... by Iwan-Zotow on Thursday January 05, 2023 @10:43PM (#34270697)
You should use Intel intrinsics - generally, they are supported by all compilers.

E.g. https://www.intel.com/content/www/us/en/develop/documentatio...

[dead]
Re:Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice... by janwas on Friday January 06, 2023 @04:07AM (#34272605)
It would be simpler to use the portable intrinsics from github.com/google/highway (disclosure: I am the main author). You include a header, and use the same functions on all platforms; the library provides wrapper functions which boil down to the platform's intrinsics.
Re:Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice... by Iwan-Zotow on Friday January 06, 2023 @08:15PM (#34283908)
Well, there is SIMD proposal for C++23 with kind-of-reference implementation. But I don't know how well it works for AVX0512
Re:Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice... by janwas on Saturday January 07, 2023 @05:22AM (#34286843)
From what I have seen, this is unfortunately not very useful: it mainly only includes operations that the compiler is often able to autovectorize anyway (simple arithmetic). Support for anything more interesting such as swizzles seems nonexistent. Also, last I checked, this was only available on GCC 11+; has that changed?
Re:Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice... by Iwan-Zotow on Sunday January 08, 2023 @08:57PM (#34305809)
I think proposed Vc lib is tested under clang as well.
Re:Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice... by janwas on Monday January 09, 2023 @01:37AM (#34307506)
Here is my source: https://github.com/VcDevel/std-simd

Ah, but this repo mentions that the GCC 11 implementation apparently also works with clang: https://github.com/VcDevel/Vc. Thanks!