Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908556 - profiles: CPU_FLAGS_X86: add AVX512VNNI, VPCLMULQDQ flag
Summary: profiles: CPU_FLAGS_X86: add AVX512VNNI, VPCLMULQDQ flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Profiles (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-06-16 01:09 UTC by Sam James
Modified: 2024-02-19 07:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-16 01:09:09 UTC
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).
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-16 01:10:58 UTC
Need VPCLMULQDQ too, which is separate.
Comment 2 Larry the Git Cow gentoo-dev 2023-06-16 01:13:32 UTC
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(+)
Comment 3 Sv. Lockal 2024-01-18 17:09:40 UTC
Relevant PR in cpuid2cpuflags: https://github.com/projg2/cpuid2cpuflags/pull/25
Comment 4 Larry the Git Cow gentoo-dev 2024-01-22 14:08:17 UTC
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(-)
Comment 5 Larry the Git Cow gentoo-dev 2024-02-19 07:50:45 UTC
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(-)