Earlier quoted context omitted.
Noob question- must one write avx512 assembly directly by hand, or is this something a c compiler would do for you?
Potentially both. Most compilers have vectorization optimizations if you compile for an architecture that supports it. However, a lot of software is compiled on one machine to be run on potentially many possible architectures, so they target a very lowest common denominator arch like x86-64. This will have some SIMD instructions but (I don't think) AVX-512. So if a developer wants to ensure those instructions are use…
Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
11–20 of 70 posts
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#12Earlier quoted context omitted.
Most of what's interesting about avx512 is the new instructions; the wider vectors are just icing on the cake. You would need to rewrite your code regardless.
I wonder to what extent compilers even emit avx512 instructions apart from the common ones (load, store, shuffle, arithmetic) in case you don’t want to manually optimize for sse / avx / avx2 / avx512.
Compiler autovectorizers also aren't very good at producing fast AVX512 code, so most of the benefit would probably come from using optimized libraries like Intel's MKL or simdjson.
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#13AVX-512 is wider, but also needs special instructions to leverage the hardware. This is unlike RISC-V V extension, where the same code will run and utilize the hardware, regardless of vector unit width.
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#14AVX-512 is wider, but also needs special instructions to leverage the hardware. This is unlike RISC-V V extension, where the same code will run and utilize the hardware, regardless of vector unit width.
Most of what's interesting about avx512 is the new instructions; the wider vectors are just icing on the cake. You would need to rewrite your code regardless.
That said, many of the avx512 instructions are simply extended width AVX2/avx2 instructions. The interesting things about it are really the increased width and the additional registers. Not many of the new instructions that are not bitwidtg extended versions of the old ones are particularly interesting since Intel had already implemented most of the interesting things for smaller vector widths.
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#15> These results suggest that AMD Zen 4 is matching Intel Ice Lake in AVX-512 performance. Given that the Zen 4 microarchitecture is the first AMD attempt at supporting AVX-512 commercially, it is a remarkable feat. Um... Ice Lake shipped over three years ago. I mean, there's a real question as to whether or not "senselessly wide SIMD" is a good or bad feature in a datacenter part, and how or whether AMD should attemp…
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#16Earlier quoted context omitted.
Most of what's interesting about avx512 is the new instructions; the wider vectors are just icing on the cake. You would need to rewrite your code regardless.
I wonder to what extent compilers even emit avx512 instructions apart from the common ones (load, store, shuffle, arithmetic) in case you don’t want to manually optimize for sse / avx / avx2 / avx512.
https://github.com/openzfs/zfs/pull/14234#issuecomment-13345...
A bug report has been filed with GCC for one of the issues. LLVM is much better here, but not perfect, or at least that has been my experience when trying to have the compiler generate assembly for an explicitly vectorized fletcher4 implementation.
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#17Earlier quoted context omitted.
Most of what's interesting about avx512 is the new instructions; the wider vectors are just icing on the cake. You would need to rewrite your code regardless.
Noob question- must one write avx512 assembly directly by hand, or is this something a c compiler would do for you?
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#18Earlier quoted context omitted.
Most of what's interesting about avx512 is the new instructions; the wider vectors are just icing on the cake. You would need to rewrite your code regardless.
Noob question- must one write avx512 assembly directly by hand, or is this something a c compiler would do for you?
I am not sure the really interesting AVX-512 instructions have intrinsics yet. For those it's asm or nothing.
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#19> These results suggest that AMD Zen 4 is matching Intel Ice Lake in AVX-512 performance. Given that the Zen 4 microarchitecture is the first AMD attempt at supporting AVX-512 commercially, it is a remarkable feat. Um... Ice Lake shipped over three years ago. I mean, there's a real question as to whether or not "senselessly wide SIMD" is a good or bad feature in a datacenter part, and how or whether AMD should attemp…
The Ice Lake chips being benchmarked against are server chips, while the 7950X Zen 4 chip used is a consumer chip. So while Ice Lake has been out for a while, it’s also several times more expensive. It’s also worth noting that it took Intel several generations of trying AVX512 to get it working well, so AMD doing it first try really is impressive (even if they did cheat by just having AVX512 be double pumped AVX2).
Re: Transcoding Unicode with AVX-512: AMD Zen 4 vs. Intel Ice Lake
#20I saw this once before, and both times, it's pretty shocking. Is this really something that needs to be inside the CPU itself? I don't want my CPU doing this. I would rather just take the performance hit and keep the CPU "dumb".
Are you saying you don't want your CPU to have SIMD/vector capabilities, or you want it to have a limited SIMD instruction set without the extra flexibility that AVX-512 brings, or have you wildly misinterpreted the headline (twice?) to assume that AVX-512 adds special-purpose instructions for Unicode conversions?