Skip to content

Conversation

@RenjiSann
Copy link
Collaborator

@RenjiSann RenjiSann commented Dec 8, 2025

This MR fixes the GNU cksum.sh by correctly taking in account the GLIBC_TUNABLES env var

Fixes #9518

@RenjiSann RenjiSann force-pushed the fix-hardware-detection branch 2 times, most recently from 41dd915 to 70f9707 Compare December 8, 2025 17:43
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

GNU testsuite comparison:

Congrats! The gnu test tests/cksum/cksum is no longer failing!

@RenjiSann RenjiSann force-pushed the fix-hardware-detection branch from 70f9707 to 6a734c6 Compare December 9, 2025 09:24
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

GNU testsuite comparison:

Congrats! The gnu test tests/cksum/cksum is no longer failing!

@RenjiSann RenjiSann force-pushed the fix-hardware-detection branch from 6a734c6 to e1fef5d Compare December 9, 2025 09:42
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

GNU testsuite comparison:

Congrats! The gnu test tests/cksum/cksum is no longer failing!

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

GNU testsuite comparison:

Congrats! The gnu test tests/cksum/cksum is no longer failing!

@RenjiSann RenjiSann self-assigned this Dec 10, 2025
@RenjiSann RenjiSann requested a review from sylvestre December 10, 2025 00:47
@naoNao89
Copy link
Contributor

My string approach worked but was naive. Your enum-based design with TryFrom validation is the right way: type-safe, O(log n) lookups, feature alias support. Excellent work

            avx512: detect_avx512() && !disabled.contains(&"AVX512F".to_string()),
            avx2: detect_avx2() && !disabled.contains(&"AVX2".to_string()),
            pclmul: detect_pclmul() && !disabled.contains(&"PMULL".to_string()),
            vmull: detect_vmull() && !disabled.contains(&"VMULL".to_string()),
            sse2: detect_sse2() && !disabled.contains(&"SSE2".to_string()),
            asimd: detect_asimd() && !disabled.contains(&"ASIMD".to_string()),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cksum: Hardware detection fails to take GLIBC_TUNABLES env var into account

2 participants