~/talk

Go Faster: Integrating CUDA in Go for GPU Acceleration

Talkat GopherCon 2025 · 2025-08-26..08-28· [go]
name:Sam Burns
links:none on file
slides:none on file

Shows how Go calls CUDA via cgo calling C.add1 and compiles CUDA with nvcc -> libadd1.so; example increments arrays with a CUDA kernel, uses 256 threads/warp-friendly and copies memory over PCIe (the transfers are the slowest part). Demonstrates a matrix multiply (2x3 × 3x2) run 250 times, launching a 16×6 thread block per multiply, and reports scaling to thousands of parallel ops on cheap hardware; recommends NVIDIA Nsight Systems and Nsight Compute for profiling.

AI-written summary · about

  1. 0:00Introduction
  2. 1:33What we will cover in this talk
  3. 2:57Introduction to GPUs and their architecture
  4. 8:27CUDA memory model
  5. 13:53Go-CUDA with CGO
  6. 22:21Matrix multiplication demo
  7. 26:16Optimizing with NVIDIA tools
  8. 29:28Summary
~/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.