~/talk

Decomposing a Problem for Parallel Execution

Talkat CppCon 2014 · on Tuesday, 2014-09-09· at 15:15· Newton· [rust]
slides:none on file

Shows concrete implementations: star counting and the n‑body simulation parallelized with Cilk Plus and compared to TBB/OpenMP; per-thread reducers remove atomic increment contention while atomics and fine-grained mutexes cause cache ping‑pong; switching from triangular to full pair traversal sometimes beats locking on many cores; a recursive tiled, cache‑oblivious divide‑and‑conquer decomposition with coarsening (thresholds ~16–64) is built and saturates CPUs; spawn cost measures ~5–10× a function call and work‑stealing adds scheduler overhead.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45Outline
  3. 1:31Principles
  4. 2:06Parallelism
  5. 3:19Silk Plus
  6. 6:10Counting Stars
  7. 7:17Parallelization
  8. 9:02Atomic Variables
  9. 13:33Reduction Operations
  10. 19:37End Body Problem
  11. 23:13General Framework
  12. 24:50Calculate Force
  13. 26:30Parallelize
  14. 26:54Naive Floor
  15. 29:25Graph
  16. 30:11Going parallel
  17. 32:09Race
  18. 32:41Mutex
  19. 34:12Atomics
  20. 35:45Atomic float
  21. 36:48counterintuitive solution
  22. 39:04new solution
  23. 39:16general problem
  24. 41:44cache
  25. 42:13why is this a specialist issue
  26. 42:44how to solve
  27. 43:48tiling
  28. 44:29nbody
  29. 45:02triangular traversal
  30. 46:19recursive tiling
  31. 47:48recursive tiling algorithm
  32. 48:41cache oblivious
  33. 52:33Spawn scope
  34. 56:02Data structure
  35. 58:52Creativity
  36. 59:31Exceptions
~/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.