zlib-ng-2.1.x supports AVX512VNNI. We don't have a CPU_FLAGS_X86_ flag for it right now, so I can't wire it up in the ebuild. I don't know if cpuid2cpuflags properly detects it as I don't have any HW for it. We could try Intel's SDE which I found easy to setup to test it? (Maybe even add it to CI for cpuid2cpuflags).
Need VPCLMULQDQ too, which is separate.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88caec6a38285facc6c7682acd456452cc799333 commit 88caec6a38285facc6c7682acd456452cc799333 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-06-16 01:11:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-06-16 01:11:43 +0000 sys-libs/zlib-ng: add 2.1.2 No VNNI or VPCLMULQDQ yet, see linked bug. Bug: https://bugs.gentoo.org/908556 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/zlib-ng/Manifest | 1 + sys-libs/zlib-ng/files/zlib-ng-2.1.2-cmake.patch | 35 +++++++++ sys-libs/zlib-ng/zlib-ng-2.1.2.ebuild | 92 ++++++++++++++++++++++++ 3 files changed, 128 insertions(+)
Relevant PR in cpuid2cpuflags: https://github.com/projg2/cpuid2cpuflags/pull/25
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21e744543289f63ecba8b7df82fc3a34eb9fab79 commit 21e744543289f63ecba8b7df82fc3a34eb9fab79 Author: Sv. Lockal <lockalsash@gmail.com> AuthorDate: 2024-01-21 17:39:41 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-01-22 14:08:00 +0000 profiles/desc: add descriptions of vpclmulqdq and new avx512 flags Adds description from https://github.com/projg2/cpuid2cpuflags/pull/25 Bug: https://bugs.gentoo.org/908556 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34943 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/desc/cpu_flags_x86.desc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10e9c22324657fb001096cc0f1eb7aaf762d2596 commit 10e9c22324657fb001096cc0f1eb7aaf762d2596 Author: Sv. Lockal <lockalsash@gmail.com> AuthorDate: 2024-02-14 20:14:11 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-19 07:50:09 +0000 sys-libs/zlib-ng: support avx512_vnni and vpclmulqdq USE flags This gives 2.5x speedup for adler32, 4x speedup for crc32 over previous best flags. Bug: https://bugs.gentoo.org/908556 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35327 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/zlib-ng/{zlib-ng-2.1.6.ebuild => zlib-ng-2.1.6-r1.ebuild} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)