~/lightning

Lightning Talk: Use SIMD Pairwise Reduction in C++!

Lightningat C++Online 2024 · 2024-02-28..03-02· [c-and-cpp]
slides:none on file

Experiments adding 10 billion doubles show scalar sequential accumulation runs at about 12% efficiency and produces wildly different sums when inputs are permuted. A Kahan-like rolling error reduces bias, but the robust fix is SIMD pairwise reduction: recursive pairwise summation implemented with SIMD yields correct, repeatable results and runs ~3.5 billion ops/sec versus ~800k ops/sec for the scalar baseline, so it both fixes accuracy and dramatically increases throughput.

AI-written summary · about

  1. 0:00The summation inconsistency
  2. 1:13Floating point error analysis
  3. 2:22Sequential summation risks
  4. 4:03Pairwise summation solution
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.