~/talk

Think Parallel: Scans

Talkat CppNorth 2024 · 2024-07-21..07-24· [c-and-cpp]
slides:none on file

Shows how the inclusive scan becomes a parallel primitive using a decoupled lookback protocol and a scan tile state object that replaces O(input) temporaries with O(tiles) metadata, converts two-pass scans into a single pass, and reduces global synchronizations. Implements parallel inclusive scan, a copy_if and a chunk_by (range-of-ranges) using tiling; reports ~3× faster scan, ~11× faster copy_if and ~9× faster chunk_by on a 64‑core CPU with a 4GB input, at the cost of duplicated tile‑level aggregates.

AI-written summary · about

  1. 0:00Introduction to parallelism
  2. 2:10Understanding the scan
  3. 5:21Parallelizing scan with tiling
  4. 12:59Decoupled lookback strategy
  5. 21:48Implementing decoupled lookback
  6. 28:41Performance and efficiency
  7. 31:41Copy-if algorithm
  8. 36:45Optimized copy-if
  9. 39:52Chunk-by algorithm
  10. 54:01Scalable chunk-by
  11. 59:16Final discussion and Q&A
~/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.