News for hackers. Stuff that matters.
Re:Iguana: fast SIMD-optimized decompression by thomasahle on Thursday June 01, 2023 @02:33AM (#36148155)
> It requires: avx512-vbmi2, available only on skylake-X/Tiger-lake/AMD zen4

Isn't Avx 512 also available on Xeon which is most hosted servers, like aws.

Re:Iguana: fast SIMD-optimized decompression by powturbo on Thursday June 01, 2023 @02:35AM (#36148162)
Not only AVX-512, but AVX-512 + VBMI2
Re:Iguana: fast SIMD-optimized decompression by Aardwolf on Thursday June 01, 2023 @03:18AM (#36148381)
No modern intel consumer CPU has avx512 anymore, they only support at most the 10 year old avx2 vector instruction set, because they want to give every single consumer chip efficiency cores, those can't handle it, and even the performance cores have to be downgraded for it.

The modern AMD Zen 4 CPU's for consumers do support avx512 (including avx512_vbmi2).

Re:Iguana: fast SIMD-optimized decompression by powturbo on Thursday June 01, 2023 @04:05AM (#36148620)
> and even the performance cores have to be downgraded for it.

Old rumours, it's no longer true.

Re:Iguana: fast SIMD-optimized decompression by skavi on Thursday June 01, 2023 @04:15AM (#36148667)
not really rumors, but also not necessarily true. the performance cores on consumer intel parts no longer have AVX-512 enabled. This is because it’s tough to implement on the smaller efficiency cores, and scheduling is more annoying with heterogeneous ISAs.
Re:Iguana: fast SIMD-optimized decompression by powturbo on Thursday June 01, 2023 @04:35AM (#36148765)
I understand downgrading as thermal throtlling.
Re:Iguana: fast SIMD-optimized decompression by Aardwolf on Thursday June 01, 2023 @04:46AM (#36148799)
I did mean have the feature removed, I edited the comment (replaced "downgraded" with "have this feature removed". I actually originally typed "crippled" but wanted to phrase it more mildly). What I mean is to avoid the heterogeneous cores they chose to disable it in the performance cores rather than e.g. emulate or double pump it in the efficiency cores.

And they chose to give you efficiency cores + performance cores without avx512 on all consumer CPU's, rather than, what would be my preference, sell some with only performance cores with avx512 like their previous gen CPUs. I'd be ok with efficiency cores on a laptop, sure, but not on a desktop machine.

But AMD already gives plenty fast cores with avx512 now so I'm satisfied, I'm simply not an intel user anymore. Of course intel's choice still affects me anyway since the less consumers have avx512, the less software will make use of it.

Re:Iguana: fast SIMD-optimized decompression by pjc50 on Thursday June 01, 2023 @06:25AM (#36149343)
So .. what's the vector set that people should be targeting for wide compatibility these days?
Re:Iguana: fast SIMD-optimized decompression by powturbo on Thursday June 01, 2023 @06:32AM (#36149389)
Ideally, dynamic detecting cpu isa (sse/avx2/avx512) and respectively dispatching, used in most of my projects for ex. [1] and [2]

- [1] https://github.com/powturbo/Turbo-Range-Coder

- [2] https://github.com/powturbo/Turbo-Base64

Re:Iguana: fast SIMD-optimized decompression by adgjlsfhk1 on Thursday June 01, 2023 @12:18PM (#36153362)
honestly you can probably stop supporting pre avx2 for a lot of use cases. avx2 is 2014 so those machines are pretty much at end of life. this also has the advantage that it lets you assume native fma hardware
Re:Iguana: fast SIMD-optimized decompression by duped on Thursday June 01, 2023 @10:28AM (#36151514)
You can use function multiversioning (1) to provide multiple implementations of the same function for different targets that is selected at runtime.

(1) https://releases.llvm.org/7.0.0/tools/clang/docs/AttributeRe...

Re:Iguana: fast SIMD-optimized decompression by jeffbee on Thursday June 01, 2023 @10:53AM (#36151869)
Odd how you completely dodged the question, as asked. Every EC2 instance based on an Intel CPU has AVX512 since the release of the C/M5 family in 2017.
Re:Iguana: fast SIMD-optimized decompression by bugboy73 on Thursday June 01, 2023 @04:30AM (#36148743)
All major cloud providers (AWS, Azure and GCP) provide instance-types that support AVX512-VBMI2. Iguana targets large amounts of that are decompressed often and speed is of the essence. Those are typical server scenarios, so the AVX512-VBMI2 requirement isn't really an issue in common-case scenarios.

DISCLAIMER: I work for Sneller