Skip to content

cksum: satisfy AVX requirement for pclmul support - #16900

Merged
sylvestre merged 1 commit into
uutils:mainfrom
AFaria20s:cksum/require-avx-for-pclmul
Nov 29, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
AFaria20s:cksum/require-avx-for-pclmul

Conversation

@AFaria20s

Copy link
Copy Markdown
Contributor

PCLMULQDQ is only reported as usable when AVX is also present, since the current implementation relies on VEX-encoded instructions.

Add AVX to the detected hardware features so the cksum debug output and the PCLMUL gate account for it.

Closes #16899

Comment thread src/uucore/src/lib/features/hardware.rs Resolved
@codspeed

codspeed Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will improve performance by 3.31%

1 warning, 1 note

⚠️ 123 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

ℹ️ 1 benchmark has no flamegraph

The flamegraph wasn't generated: most of the time was spent in runtime internals, which would leave nothing useful to analyze.

See affected benchmarks

⚡ 1 improved benchmark
✅ 414 untouched benchmarks
⏩ 70 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ CPU Simulation ls_recursive_deep_tree[(200, 2)] 3.1 ms 3 ms +3.31%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing AFaria20s:cksum/require-avx-for-pclmul (bc1aaa7) with main (887b9e6)2

Open in CodSpeed

Footnotes

  1. 70 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (7b68df0) during the generation of this report, so 887b9e6 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@sylvestre
sylvestre force-pushed the cksum/require-avx-for-pclmul branch from 281a9d0 to 588bf9f Compare November 28, 2026 09:54
PCLMULQDQ is only reported as usable when AVX is also present, since the
current implementation relies on VEX-encoded instructions.

Add AVX to the detected hardware features so the cksum debug output and
the PCLMUL gate account for it.

Closes uutils#16899
@sylvestre
sylvestre force-pushed the cksum/require-avx-for-pclmul branch from 588bf9f to bc1aaa7 Compare November 29, 2026 00:06
@sylvestre
sylvestre merged commit 4471b18 into uutils:main Nov 29, 2026
196 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

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: --debug reports pclmul support where the accelerated path cannot run

2 participants