Repository navigation
perf: Add AVX2 SIMD acceleration for Kronecker operator - #120874
Conversation
|
Workflow [PR], commit [41cec9d] Summary: ✅
AI ReviewSummaryThis PR adds AVX2 implementations for the exact Kronecker Hadamard path used by Missing context / blind spots
Final Verdict✅ No new inline findings to post on the current patch. LLVM Coverage ReportMeasured on commit 41cec9d.
Changed lines: Changed C/C++ lines covered: 40/43 (93.02%) · Uncovered code |
994aa6f to
8644124
Compare
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
|
📊 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
|
8644124 to
a88ec3a
Compare
a88ec3a to
43adb7f
Compare
a95a16d to
8b968c4
Compare
8b968c4 to
0fd8b0e
Compare
86a0727 to
e0dd3ca
Compare
e1268cb to
3267d55
Compare
3267d55 to
c8d0360
Compare
c8d0360 to
41cec9d
Compare
c26d4c7
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Speed up Kronecker kernels using AVX2 SIMD instructions (1.9x to 2.5x higher throughput and 50% to 60% lower median latency).
Follows up on #119064
Detailed Description
This PR adds AVX2 SIMD optimizations for Kronecker kernels to support non-power-of-two dimensions (m=12 and 20):
Testing
Benchmark Environment
clickhouse-benchmarkBenchmark Results
Ran 10,000 queries using
clickhouse-benchmarkonlocalhost:9000with release build to compare the scalar baseline against the AVX2 SIMD implementation:Benchmark Results
Test Case 1: Dimension 2560 (m = 20)
1. Throughput Comparison
2. Latency Percentiles Comparison
Test Case 2: Dimension 1536 (m = 12)
1. Throughput Comparison
2. Latency Percentiles Comparison
Workflow [PR]
Sync PR [sync-upstream/pr/120874]
Version info
26.10.1.437-master(included in26.10and later)