Repository navigation
Add ARM SVE infrastructure and SVE-optimized paths for min/max aggregation - #122860
Conversation
|
Workflow [PR], commit [3617848] Summary: ✅
AI ReviewSummaryAdds runtime SVE detection and target-specific compilation helpers, then dispatches Missing context / blind spots
Final VerdictStatus: ✅ Approve — no source changes requested. Current-head CI validation remains outstanding. |
|
Changes from #97473:
|
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes10 object files changed (+87.08 KiB total), 0 added.
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units230 translation units recompiled, 1472 s compile time in total, 230 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.07 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
|
📊 Cloud Performance Report ✅ AI verdict: no significant changes detected. K_source=6 K_base=30 flagged=0/65 clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
On AArch64, the default copy is used. SVE versions of these kernels were measured and showed no improvement over NEON, except for some hash functions in `src/Functions/FunctionsHashing.h`.
|
@rienath, the AI bot has approved, and the performance numbers are back in the dashboard. |
rienath
left a comment
There was a problem hiding this comment.
A few nits, but otherwise looks good. Thanks for taking the effort to reopen it after such long time!
@groeneai once this PR merges, please create a follow-up that rename USE_MULTITARGET_CODE to USE_X86_64_MULTITARGET_CODE and ping me. Not doing this in current PR to prevent unnecessary conflicts
|
Will do: once this merges, I will open the |
|
@rienath CH Inc sync is failing, but I can't view the logs. Could you check from your end and let me know if anything needs fixing on my side? |
|
Opened #128073 for the rename. |
Since ClickHouse#122860 the macro is 1 only on x86_64, and AArch64 has its own `USE_ARM_MULTITARGET_CODE`. Whole-word rename, no other change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Improve performance of min, max, argMin, argMax and their -If variants on AArch64 CPUs with SVE (e.g., AWS Graviton3/Graviton4) via runtime-dispatched SVE implementations.
Description
Add
DECLARE_ARM_SVE_SPECIFIC_CODEfor AArch64. It compiles the enclosed block with SVE enabled, and its usage is guarded byUSE_ARM_MULTITARGET_CODE. SVE is detected at runtime and enabled only on Linux and FreeBSD (Darwin does not support SVE).Add
MULTITARGET_FUNCTION_ARM_SVEand extendMULTITARGET_FUNCTION_X86_V4_V3toMULTITARGET_FUNCTION_X86_V4_V3_ARM_SVE, andMULTITARGET_FUNCTION_X86_V4toMULTITARGET_FUNCTION_X86_V4_ARM_SVE, so these functions also get an SVE version on AArch64.Add SVE dispatchers for findExtreme (
min/maxaggregation). Performance results onc8g.4xlargeusing the arithmetic_operations_in_aggr_func test: pastila.Non-SVE AArch64 CPUs and x86 builds are unaffected.
Related: #116581
Related: #97473
This PR is a joint contribution by:
Abhishek Jain (@abhijain1204fujitsu)
Workflow [PR]
Sync PR [sync-upstream/pr/122860]
Version info
26.11.1.848-master(included in26.11and later)