From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3139E384AB47; Tue, 23 Apr 2024 18:11:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3139E384AB47 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713895882; bh=vRemcvkPikm9CcmwygWEowhcVp9xNLFNL+EKPVL5HQg=; h=From:To:Subject:Date:From; b=wBWJ9x9KJDz8ag95/I3LxT4Xu6qoZgCaJ04xDMuV8xhEAjorBPGWwhu4rH2z5Lixy WSptZ0uGeVDt0Z5PWSyMN2lLjcnkF2gkTSbHpEkM/Wu3NTJQbtbeUJ+FmAVrDbOWNE TdDQ1JuHkeEbYAzEEGRI72guRHeExW3lZjd0y8AA= From: "mikulas at artax dot karlin.mff.cuni.cz" To: glibc-bugs@sourceware.org Subject: [Bug string/31675] New: glibc.cpu.hwcaps doesn't work as documented Date: Tue, 23 Apr 2024 18:11:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: string X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikulas at artax dot karlin.mff.cuni.cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31675 Bug ID: 31675 Summary: glibc.cpu.hwcaps doesn't work as documented Product: glibc Version: 2.37 Status: UNCONFIRMED Severity: normal Priority: P2 Component: string Assignee: unassigned at sourceware dot org Reporter: mikulas at artax dot karlin.mff.cuni.cz Target Milestone: --- If I disable AVX512 and AVX2 with "export GLIBC_TUNABLES=3Dglibc.cpu.hwcaps=3D-AVX512F,-AVX2,-AVX512VL", glibc uses __memcpy_avx_unaligned_erms version of memcpy that uses AVX2 instructions. We need to add "AVX_Fast_Unaligned_Load" to suppress AVX2. If I set: "export GLIBC_TUNABLES=3Dglibc.cpu.hwcaps=3D-AVX512F,-AVX2,-AVX512VL,-AVX_Fast_Unal= igned_Load", then glibc will use the SSE3 version of memcpy. The need to set "AVX_Fast_Unaligned_Load" should be either documented or fi= xed. The documentation says "The glibc.cpu.hwcaps=3D-xxx,yyy,-zzz... tunable all= ows the user to enable CPU/ARCH feature yyy, disable CPU/ARCH feature xxx and z= zz where the feature name is case-sensitive and has to match the ones in sysdeps/x86/include/cpu-features.h.", but the file "cpu-features.h" doesn't contain "AVX_Fast_Unaligned_Load". --=20 You are receiving this mail because: You are on the CC list for the bug.=