~/talk

Accelerating GPU Algorithms in pure Python

Talkat PyData NYC 2024 · 2024-11-06..11-08· [python]
links:none on file
slides:none on file

Claims that pure Python kernels JIT‑compile to the same code and match CUDA C++ performance, demonstrated with a copy, tiled matrix transpose, and batched softmax. Uses Numba CUDA JIT, device arrays, shared and register memory, warp/block indexing and reductions plus CUDA Cooperative / Cub‑style primitives (beta) to get memory coalescing and hide latency. Shows concrete launch parameters, a surprising warp size of 32, temporary storage and linked binaries, and working kernels that achieve speed‑of‑light throughput.

AI-written summary · about

  1. 0:00Introduction
  2. 2:05Why write GPU kernels in pure Python
  3. 5:41First GPU kernel with Numba CUDA
  4. 10:11Memory access patterns on GPUs
  5. 14:00GPU memory types and trade-offs
  6. 16:54CUDA Cooperative algorithms for efficiency
  7. 22:31Matrix transposition with CUDA primitives
  8. 29:19Implementing softmax with parallel reductions
  9. 33:55Key takeaways and closing remarks
~/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.