Skip to content

perf(vec): optimize vec_dot with AVX2+FMA and OpenMP parallel reduction - #14

Merged
aajll merged 10 commits into
masterfrom
autoresearch/vec-dot-2026-05-20
May 20, 2026
Merged

aajll merged 10 commits into
masterfrom
autoresearch/vec-dot-2026-05-20

Conversation

@aajll

@aajll aajll commented May 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

aajll added 10 commits May 20, 2026 14:21
…P simd reduction for ≥1M elements

Result: {"status":"keep","total_us":41323}
…/8), added prefetching

Result: {"status":"keep","total_us":40136.5}
…m sizes dramatically (256K: 111→30µs, 1M: 223→90µs)

Result: {"status":"keep","total_us":39547}
…h — 39475 vs 39547 (0.2% improvement)

Result: {"status":"keep","total_us":39475}
…ivate) — 39354 vs 39475 (0.3% improvement)

Result: {"status":"keep","total_us":39354}
…54 (0.5% improvement) but hurts medium sizes

Result: {"status":"keep","total_us":39147}
… improvement), better medium sizes too

Result: {"status":"keep","total_us":39015}
…9015 (1.2% improvement), AVX2+FMA synergy with chunking

Result: {"status":"keep","total_us":38531}
@aajll
aajll merged commit d92b180 into master May 20, 2026
4 checks passed
@aajll
aajll deleted the autoresearch/vec-dot-2026-05-20 branch May 20, 2026 16:04
@aajll aajll mentioned this pull request May 20, 2026
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.

1 participant