~/lightning

C++ Sequential Considered Harmful

Lightningat ACCU 2024 · 2024-04-17..04-20· [c-and-cpp]
slides:none on file

Adds 10 billion 0-to-1 random numbers with a plain for loop, std::accumulate and std::reduce and they all agree but the result is wrong; pruning or permuting the inputs changes the answer because the compiler emits the same xmm-register add sequence. Using bottom-up pairwise summation (split, sum pairs, SIMD at the leaves) fixes accuracy, reproduces across permutations, and runs about 6x faster than the naive STL approach. Requests a new pair-wise transform_reduce style algorithm and links to GitHub resources.

AI-written summary · about

~/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.