~/talk

Design Patterns for Handling/Reporting Errors in C++ - Parallel Algorithms & Executors

Talkat CppCon 2020 · 2020-09-14..09-18· [concurrency, software-architecture]
links:none on file
slides:none on file

C++17 parallel algorithms and forthcoming P0443 executors cannot safely propagate exceptions across parallel boundaries, so the talk shows concrete patterns borrowed from MPI: turn exceptions into values, replace failing for_each with transform_reduce that aggregates status bits and total memory needed (example: domain decomposition using a fixed-size memory pool and a result struct that sums bytes required), explicitly avoid deadlocks by always participating in synchronizations, and use atomic updates or nonblocking checks for out‑of‑band error reporting.

AI-written summary · about

  1. 0:00Introduction
  2. 1:38Outline
  3. 4:03Parallel Algorithms
  4. 5:34Exceptions
  5. 7:36Domain Decomposition
  6. 8:51Parallelizing Domain Decomposition
  7. 10:11Errors in Domain Decomposition
  8. 12:32mpi
  9. 14:05mpi is hostile
  10. 17:53Reduce over error information
  11. 19:09deadlock
  12. 22:33nonblocking barrier
  13. 25:11atomic updates
  14. 25:57Summary
  15. 26:36Questions
~/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.