~/talk

CUDA Kernels with C++

Talkat NDC TechTown 2018 · 2018-09-27..09-30· [webassembly]
links:none on file
slides:none on file

Shows concrete C++ techniques that run on NVIDIA GPUs: a templated device_ptr type and device_memory class to avoid host/device pointer bugs, placement-new to construct polymorphic objects on the GPU, and using templates for zero-cost static polymorphism. Demonstrates lambdas that cross CPU/GPU with the need for lambda capture by value, confirms via Compiler Explorer and cuobjdump that static polymorphism and lambdas produce no assembly overhead, notes new/delete work on device but exceptions are unsupported.

AI-written summary · about

  1. 0:00Start
  2. 1:32Setting the Ground
  3. 2:26Vector Addition in CUDA
  4. 4:47CUDA C
  5. 6:58Compiles, but fails in runtime
  6. 7:35Let's use explicit device memory pointers
  7. 12:18Static Polymorphism
  8. 15:34Dynamic allocation in CUDA
  9. 19:28Lambda parameters!!
  10. 26:00Godbolting CUDA
  11. 29:59Runtime Templates
~/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.