~/talk

Parallelism in Numerical Python Libraries

Talkat PyData NYC 2022 · 2022-11-09..11-11· [python]
slides:none on file

Shows which libraries actually parallelize (NumPy linear algebra vs elementwise ops), links NumPy to BLAS/MKL/OpenBLAS, and demonstrates threadpoolctl and environment variables like OMP_NUM_THREADS to control threads. Compares multiprocessing vs multithreading, Numba/Cython/Numba JIT examples, PyTorch numpy-view behavior, and scikit‑learn nested parallelism with concrete timings (42 s single‑thread vs 8 s with tuned threads) and discusses oversubscription, memory‑mapping, and which backends (pthread/OpenMP/rayon) are used.

AI-written summary · about

  1. 0:00Parallelism in Python libraries
  2. 1:49How libraries implement it
  3. 3:54NumPy linear algebra parallel
  4. 6:00NumPy parallel config
  5. 7:05Just-in-time compilation for parallelism
  6. 9:29SciPy threading and processing
  7. 14:04Pandas parallel group-by
  8. 16:29UMAP parallel with Numba
  9. 18:13Ahead-of-time vs just-in-time compilation
  10. 19:58Polars parallel-by-default
  11. 20:40scikit-learn forests threading
  12. 21:00scikit-learn search processing
  13. 22:45Memory handling multi-processing
  14. 24:11Nested parallelism OpenMP Loki
  15. 27:02Challenges combining APIs
  16. 29:32Parallelism default or opt-in
  17. 30:57Unified parallel config
  18. 32:25Parallelism in numerical Python
  19. 32:45Q&A library-specific
~/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.